Postfix 3.4.0, using Dovecot for SASL authentication and MySQL.

I have set:

unknown_local_recipient_reject_code = 550

But when an email comes through to an unknown user, a 451 Temporary Lookup 
Failure code is given, not a 550:

2019-03-04 15:52:00.949864+1100  localhost smtpd[25337]: connect from 
localhost[127.0.0.1]
2019-03-04 15:52:01.246686+1100  localhost smtpd[12280]: warning: connect to 
mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using 
password: YES)
2019-03-04 15:52:01.246723+1100  localhost smtpd[12280]: warning: 
mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf lookup error for 
"[email protected] <mailto:[email protected]>"
2019-03-04 15:52:01.246747+1100  localhost smtpd[12280]: NOQUEUE: reject: RCPT 
from localhost[127.0.0.1]: 451 4.3.0 <[email protected] 
<mailto:[email protected]>>: Temporary lookup failure; 
from=<[email protected] <mailto:[email protected]>> 
to=<[email protected] <mailto:[email protected]>> proto=ESMTP 
helo=<astaro1.bordo.com.au 
<http://astaro1.bordo.com.au/>?-?192.168.1.2?-?mail.bordo.com.au 
<http://mail.bordo.com.au/>?-?mail.bordo.com.au <http://mail.bordo.com.au/>>

This causes the sending mail server to store the email and try several times.

This is the sort of thing the sending mail server sees:

Connected to mail.bordo.com.au <http://mail.bordo.com.au/>.
Escape character is '^]'.
220 mail.bordo.com.au <http://mail.bordo.com.au/> ESMTP Postfix
EHLO me     
250-mail.bordo.com.au <http://250-mail.bordo.com.au/>
250-STARTTLS
250-SIZE 102400000
250-AUTH PLAIN
250-AUTH=PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 NOOP
mail from: [email protected] <mailto:[email protected]>
250 2.1.0 Ok
rcpt to: [email protected] <mailto:[email protected]>
451 4.3.0 <[email protected] <mailto:[email protected]>>: Temporary lookup 
failure
Connection closed by foreign host.

How can I get it to send a permanent failure code?

Thanks,

James.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to