ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: ALT Linux Community <community@altlinux.ru>
Subject: [Comm] Как правильно потребовать авторизоваться по SMTP
Date: Mon, 31 Oct 2005 20:37:39 +0300
Message-ID: <43665663.5000508@stc.donpac.ru> (raw)

Здравствуйте!

В документации постфикса рекомендуют писать так:

smtpd_recipient_restrictions =
	permit_mynetworks, permit_sasl_authenticated, ...

Это работает, но пользователь, не пожелавший авторизоваться, получает:

$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.domain1.com ESMTP Postfix
ehlo user1.domain1.com
250-athlon.ewsd.donpac.ru
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-AUTH PLAIN
250 8BITMIME
mail from: user1@domain1.com
250 Ok
rcpt to: user2@domain2.com
554 <user2@domain2.com>: Recipient address rejected: Access denied

А хотелось бы увидеть нечто вроде (так сделано на соседнем сендмайле):

550 5.7.1 user2@domain2.com... Relaying denied. Proper authentication 
required.

Как?

-- 
С уважением, Прокопьев Евгений


                 reply	other threads:[~2005-10-31 17:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43665663.5000508@stc.donpac.ru \
    --to=prokopiev@stc.donpac.ru \
    --cc=community@altlinux.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git