Temporary Lookup Failure
Hi All,
Have a CentOS 7, dovecot and postfix setup.
Can get mail via 995 SSL/TLS
Can send mail to virtual users and auto creation works using /etc/dovecot/passwd file via mail command.
Using the dovecot lmtp and can login via 465 but the user lookup fails via postfix.
in postfix main.cf have virtual_transport = lmtp:unix:private/dovecot-lmtp
in dovecot.log I am seeing no errors in dovecot-info.log no errors either
in maillog I am seeing: postfix/smtps/smtpd warning hash:/etc/postfix/virtual is unavailable open database /etc/postfix/virtual.db No such file.
Note: I did go through creating the virtual.db and associated files but figured that it cant be correct as I want lmtp to handle it and it didn't work anyways, so I removed it.
NOQUEUE reject RCPT from unknown[x.x.x.x] 451 4.3.0 user@domain
Temporary lookup failure from=user@domain to=user@domain proto=ESMTP
helo=
Tried every article I could find on the Internet to resolve this with out much luck.
Any pointers would be greatly appreciated or if you need specific config details just let me know.
Thanks, Brad
On 2016-01-17 20:24, Brad wrote:
Hi All,
Have a CentOS 7, dovecot and postfix setup.
Can get mail via 995 SSL/TLS Accessing your mails with a MUA like thunderbird works and you can login to your imap account?
Can send mail to virtual users and auto creation works using /etc/dovecot/passwd file via mail command.
Using the dovecot lmtp and can login via 465 but the user lookup fails via postfix. You can send email with thunderbird using port 465 (smtps) to other users on your server? LMTP ist used for the delivery of your mails from postfix to dovecot. Is postfix configured to use sasl auth?
in postfix main.cf have virtual_transport = lmtp:unix:private/dovecot-lmtp Looks good. is dovecot configured to create a socket there? See 10-master.conf the "service lmtp" block
in dovecot.log I am seeing no errors in dovecot-info.log no errors either
in maillog I am seeing: postfix/smtps/smtpd warning hash:/etc/postfix/virtual is unavailable open database /etc/postfix/virtual.db No such file. That is postfix. Does /etc/postfix/virtual.db exist? Note: I did go through creating the virtual.db and associated files but figured that it cant be correct as I want lmtp to handle it and it didn't work anyways, so I removed it. Have you created /etc/postfix/virtual and postmapped that file to create the /etc/postfix/virtual.db file?
NOQUEUE reject RCPT from unknown[x.x.x.x] 451 4.3.0 user@domain Temporary lookup failure from=user@domain to=user@domain proto=ESMTP helo=
-- obfuscated This is postfix. Please include the full logline no only the message. Be consistent when you obfuscate, use different replacements for different email addresses.
Tried every article I could find on the Internet to resolve this with out much luck.
Please provide configs.
Any pointers would be greatly appreciated or if you need specific config details just let me know.
Thanks, Brad
Christian
Hi Christian, Noel and Skeeved,
Found the offending postfix -o virtual map in master.cf and removed it.
Re-tested email and new error but the warning for the virtual is gone:
Sender address rejected not owned by user
NOQUEUE reject RCPT from unknown[10.10.1.102] 553 5.7.1
steve@samedomain.com
sender address rejected: not owned by user steve;
from=steve@samedomain.com to=steve@samedomain.com
proto=ESMTP helo=
Answering the rest inline
Thanks for everyones help, Brad
On 2016-01-17 20:24, Brad wrote:
Hi All,
Have a CentOS 7, dovecot and postfix setup.
Can get mail via 995 SSL/TLS Accessing your mails with a MUA like thunderbird works and you can login to your imap account? Correct from Thunderbird no auth issues or errors.
Can send mail to virtual users and auto creation works using /etc/dovecot/passwd file via mail command.
Using the dovecot lmtp and can login via 465 but the user lookup fails via postfix. You can send email with thunderbird using port 465 (smtps) to other users on your server? LMTP ist used for the delivery of your mails from postfix to dovecot. Is postfix configured to use sasl auth? No I can not send emails to other users I get the same similar error
On 01/17/2016 03:22 PM, Christian Kivalo wrote: that the user "Sender address rejected: not owned by user <user> Please check the message recipient and try again."
Not sure if LMTP is used when calling mail command from the local mail server but that appears to work only, not from the MUA.
Yes postfix is setup to use sasl auth and TLS. I would like to have all of them setup and ready and limit as needed via the firewall.
in postfix main.cf have virtual_transport = lmtp:unix:private/dovecot-lmtp Looks good. is dovecot configured to create a socket there? See 10-master.conf the "service lmtp" block
service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0666 user = postfix } } everything else is commented out inside the block
in dovecot.log I am seeing no errors in dovecot-info.log no errors either
in maillog I am seeing: postfix/smtps/smtpd warning hash:/etc/postfix/virtual is unavailable open database /etc/postfix/virtual.db No such file. That is postfix. Does /etc/postfix/virtual.db exist?
ended up being a -o rule that slipped by in master.cf
Note: I did go through creating the virtual.db and associated files but figured that it cant be correct as I want lmtp to handle it and it didn't work anyways, so I removed it. Have you created /etc/postfix/virtual and postmapped that file to create the /etc/postfix/virtual.db file? I did go through that process but was still getting at that time the Temporary lookup errors. Should I re-create these?
NOQUEUE reject RCPT from unknown[x.x.x.x] 451 4.3.0 user@domain Temporary lookup failure from=user@domain to=user@domain proto=ESMTP helo=
-- obfuscated This is postfix. Please include the full logline no only the message. Be consistent when you obfuscate, use different replacements for different email addresses. Tried every article I could find on the Internet to resolve this with out much luck.
Please provide configs. Would you like a postconf -n or all the individual files for postfix and dovecot?
Any pointers would be greatly appreciated or if you need specific config details just let me know.
Thanks, Brad
Hi Christian, Noel and Skeeved,
Found the offending postfix -o virtual map in master.cf and removed it.
Re-tested email and new error but the warning for the virtual is gone:
Sender address rejected not owned by user
NOQUEUE reject RCPT from unknown[10.10.1.102] 553 5.7.1 steve@samedomain.com sender address rejected: not owned by user steve; from=steve@samedomain.com to=steve@samedomain.com proto=ESMTP helo=
Answering the rest inline
Thanks for everyones help, Brad
On 2016-01-17 20:24, Brad wrote:
Hi All,
Have a CentOS 7, dovecot and postfix setup.
Can get mail via 995 SSL/TLS Accessing your mails with a MUA like thunderbird works and you can login to your imap account? Correct from Thunderbird no auth issues or errors. Ok, so your dovecot config seems to be ok so far.
Can send mail to virtual users and auto creation works using /etc/dovecot/passwd file via mail command.
Using the dovecot lmtp and can login via 465 but the user lookup fails via postfix. You can send email with thunderbird using port 465 (smtps) to other users on your server? LMTP ist used for the delivery of your mails from postfix to dovecot. Is postfix configured to use sasl auth? No I can not send emails to other users I get the same similar error
On 01/17/2016 03:22 PM, Christian Kivalo wrote: that the user "Sender address rejected: not owned by user <user> Please check the message recipient and try again." Do you by chance have reject_sender_login_mismatch set in postfix? This sounds as if you like to send with an emailaddress that differs from your sasl login Not sure if LMTP is used when calling mail command from the local mail server but that appears to work only, not from the MUA. You should see that in the logs when a local submitted email is delivered to your mailbox something like
On 2016-01-17 23:53, Brad wrote: postfix/lmtp[54323] C54F83AB436: to=recipient@example.net relay=$hostname[private/dovecot-lmtp] ...
Yes postfix is setup to use sasl auth and TLS. I would like to have all of them setup and ready and limit as needed via the firewall.
in postfix main.cf have virtual_transport = lmtp:unix:private/dovecot-lmtp Looks good. is dovecot configured to create a socket there? See 10-master.conf the "service lmtp" block
service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0666 user = postfix } } everything else is commented out inside the block
ok, looks the same here
in dovecot.log I am seeing no errors in dovecot-info.log no errors either
in maillog I am seeing: postfix/smtps/smtpd warning hash:/etc/postfix/virtual is unavailable open database /etc/postfix/virtual.db No such file. That is postfix. Does /etc/postfix/virtual.db exist?
ended up being a -o rule that slipped by in master.cf
Note: I did go through creating the virtual.db and associated files but figured that it cant be correct as I want lmtp to handle it and it didn't work anyways, so I removed it. Have you created /etc/postfix/virtual and postmapped that file to create the /etc/postfix/virtual.db file? I did go through that process but was still getting at that time the Temporary lookup errors. Should I re-create these?
NOQUEUE reject RCPT from unknown[x.x.x.x] 451 4.3.0 user@domain Temporary lookup failure from=user@domain to=user@domain proto=ESMTP helo=
-- obfuscated This is postfix. Please include the full logline no only the message. Be consistent when you obfuscate, use different replacements for different email addresses. Tried every article I could find on the Internet to resolve this with out much luck.
Please provide configs. Would you like a postconf -n or all the individual files for postfix and dovecot? Both: postconf -n/doveconf -n This seems to be a problem with your postfix not accepting mails due to some configuration on your side, not a problem with dovecot but the configs will probably tell The postfix problem should be taken over to the postfix mailinglist.
Any pointers would be greatly appreciated or if you need specific config details just let me know.
Thanks, Brad Christian
On 1/17/2016 4:53 PM, Brad wrote:
Hi Christian, Noel and Skeeved,
Found the offending postfix -o virtual map in master.cf and removed it.
Re-tested email and new error but the warning for the virtual is gone:
Sender address rejected not owned by user
NOQUEUE reject RCPT from unknown[10.10.1.102] 553 5.7.1 steve@samedomain.com sender address rejected: not owned by user steve; from=steve@samedomain.com to=steve@samedomain.com proto=ESMTP helo=
Please don't trim error messages; you remove important information.
This is a postfix error, nothing to do with dovecot.
Looks as if you've enabled reject_sender_login_mismatch, but the name doesn't exist in smtpd_sender_login_maps. The solution is to either remove the reject_sender_login_mismatch statement from postfix, or add the correct entry to smtpd_sender_login_maps. http://www.postfix.org/postconf.5.html#reject_sender_login_mismatch http://www.postfix.org/postconf.5.html#smtpd_sender_login_maps
If you need more help with postfix, please send those questions to the postfix-users list rather than here. Be sure to include the requested information: http://www.postfix.org/DEBUG_README.html#mail
-- Noel Jones
You had an /etc/postfix/virtual and then you removed it from main.cf?
Did you restart postfix or do postfix reload afterwards?
The log entry shows postfix is still looking for that map file.
On Jan 17, 2016, at 2:24 PM, Brad bradzynda42@comcast.net wrote:
Hi All,
Have a CentOS 7, dovecot and postfix setup.
Can get mail via 995 SSL/TLS
Can send mail to virtual users and auto creation works using /etc/dovecot/passwd file via mail command.
Using the dovecot lmtp and can login via 465 but the user lookup fails via postfix.
in postfix main.cf have virtual_transport = lmtp:unix:private/dovecot-lmtp
in dovecot.log I am seeing no errors in dovecot-info.log no errors either
in maillog I am seeing: postfix/smtps/smtpd warning hash:/etc/postfix/virtual is unavailable open database /etc/postfix/virtual.db No such file.
Note: I did go through creating the virtual.db and associated files but figured that it cant be correct as I want lmtp to handle it and it didn't work anyways, so I removed it.
NOQUEUE reject RCPT from unknown[x.x.x.x] 451 4.3.0 user@domain Temporary lookup failure from=user@domain to=user@domain proto=ESMTP helo=
-- obfuscated Tried every article I could find on the Internet to resolve this with out much luck.
Any pointers would be greatly appreciated or if you need specific config details just let me know.
Thanks, Brad
On 1/17/2016 1:24 PM, Brad wrote:
Hi All,
Have a CentOS 7, dovecot and postfix setup.
Can get mail via 995 SSL/TLS
Can send mail to virtual users and auto creation works using /etc/dovecot/passwd file via mail command.
Using the dovecot lmtp and can login via 465 but the user lookup fails via postfix.
in postfix main.cf have virtual_transport = lmtp:unix:private/dovecot-lmtp
in dovecot.log I am seeing no errors in dovecot-info.log no errors either
in maillog I am seeing: postfix/smtps/smtpd warning hash:/etc/postfix/virtual is unavailable open database /etc/postfix/virtual.db No such file.
This is (likely) the virtual_alias_maps rewrite map, definitely not the virtual delivery process. Find where you've defined a virtual map with # postconf | grep virtual
and remove the offending bogus definition.
-- Noel Jones
Note: I did go through creating the virtual.db and associated files but figured that it cant be correct as I want lmtp to handle it and it didn't work anyways, so I removed it.
NOQUEUE reject RCPT from unknown[x.x.x.x] 451 4.3.0 user@domain Temporary lookup failure from=user@domain to=user@domain proto=ESMTP helo=
-- obfuscated Tried every article I could find on the Internet to resolve this with out much luck.
Any pointers would be greatly appreciated or if you need specific config details just let me know.
Thanks, Brad
participants (4)
-
Brad
-
Christian Kivalo
-
Noel
-
skeeved