From: Magnus Bäck (no email)
Date: Tue Nov 01 2005 - 12:59:54 EST
On Tuesday, November 01, 2005 at 18:15 CET,
Eugene Prokopiev <> wrote:
> This way is recommended by postfix documentation:
>
> smtpd_recipient_restrictions =
> permit_mynetworks, permit_sasl_authenticated, ...
>
> In this case I see:
>
> $ 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-mail.domain1.com
> 250-PIPELINING
> 250-SIZE 10240000
> 250-ETRN
> 250-AUTH PLAIN
> 250 8BITMIME
> mail from:
> 250 Ok
> rcpt to:
> 554 <>: Recipient address rejected: Access denied
That's not the default message, which is "Recipient address rejected:
Relay access denied."
> How can I see something like:
>
> 550 5.7.1 ... Relaying denied. Proper authentication
> required.
Short of changing the source code, something like this should work:
main.cf:
smtpd_recipient_restrictions =
permit_mynetworks,
permit_auth_destination,
permit_sasl_authenticated,
check_recipient_access regexp:/path/to/file,
reject
/path/to/file:
/^/ 550 Relaying denied. Proper authentication required.
-- Magnus Bäck
|
|
|