Re: Change 451 Temp Lookup code to permanent 550 code for unknown local recipients
On Mon, March 4, 2019 5:29 am, James Brown wrote:
> 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: connect from
> 2019-03-04 15:52:01.246686+1100 localhost smtpd: warning: connect
> to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost'
> (using password: YES)
I think Postfix is temp-rejecting in this case to give you a chance to fix
this before the next sender retry attempt.
> [ Just this once, I'm going to make an exception and send HTML email. It's only
> new content is colour added to two snippets of the original text. ]
>> On Mar 4, 2019, at 12:29 AM, James Brown <[hidden email]> wrote:
>> 2019-03-04 15:52:00.949864+1100 localhost smtpd: connect from localhost[127.0.0.1]
>> 2019-03-04 15:52:01.246686+1100 localhost smtpd: 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: warning: mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf lookup error for "[hidden email]"
>> 2019-03-04 15:52:01.246747+1100 localhost smtpd: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 451 4.3.0 <[hidden email]>: Temporary lookup failure; from=<[hidden email]> to=<[hidden email]> proto=ESMTP helo=<astaro1.bordo.com.au?-?192.168.1.2?-?mail.bordo.com.au?-?mail.bordo.com.au>
> [ For anyone reading this in mutt, pine, elm, ... the "mysql" table warnings
> have been emphasized for the OP. With a bit of luck he'll realize that failure
> to access the database is not an instance of "unknown local recipient". ]
Thanks Pau and Victor. Sorry about the HTML email.
The access denied warning has now been fixed - I had not changed the password in mysql_virtual_mailbox_maps.cf. No longer getting that error - thanks!