outbound is not working getting the error as Temporary lookup failure (in reply to RCPT TO command))

powersupport

Active Member
Jan 18, 2020
244
2
38
29
HI,

We set up a proxmox mail gateway and configured, now we are tryng to configure outbound from a server to pmg, but it seems not working, getting the error from the local server as below
tail -f /var/log/maillog
Jul 14 09:15:28 readyspace postfix/smtpd[19754]: connect from localhost[::1]
Jul 14 09:15:28 readyspace postfix/smtpd[19754]: TLS SNI localhost from localhost[::1] not matched, using default chain
Jul 14 09:15:28 readyspace postfix/smtpd[19754]: CE65D10040A26: client=localhost[::1], sasl_method=PLAIN, sasl_username=test@test.com
Jul 14 09:15:28 readyspace postfix/cleanup[19761]: CE65D10040A26: message-id=<4cd39dc71e7920cf5f7c30e87ba5381c@ttest.com>
Jul 14 09:15:28 readyspace spf[19764]: Starting the spf filter...
Jul 14 09:15:28 readyspace spf[19764]: SPF status: PASS
Jul 14 09:15:28 readyspace psa-pc-remote[930]: PASS during call 'spf' handler
Jul 14 09:15:28 readyspace check-quota[19765]: Starting the check-quota filter...
Jul 14 09:15:28 readyspace psa-pc-remote[930]: SKIP during call 'check-quota' handler
Jul 14 09:15:28 readyspace postfix/qmgr[19595]: CE65D10040A26: from=<test@test.com>, size=584, nrcpt=1 (queue active)
Jul 14 09:15:28 readyspace postfix/smtpd[19754]: disconnect from localhost[::1] ehlo=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=6
Jul 14 09:15:29 readyspace dovecot: imap-login: Login: user=<test@readyspace.host>, method=PLAIN, rip=::1, lip=::1, mpid=19770, TLS, session=<KRL7JRXHxMMAAAAAAAAAAAAAAAAAAAAB>
Jul 14 09:15:29 readyspace dovecot: service=imap, user=test@test.com, ip=[::1]. Logged out rcvd=471, sent=740
Jul 14 09:15:29 readyspace postfix/smtp[19768]: CE65D10040A26: to=<srdcg@gmail.com>, relay=pmg-n1.domaintest.com[103.3.164.252]:26, delay=1.1, delays=0.16/0.01/0.68/0.24, dsn=4.3.0, status=deferred (host pmg-n1.domaintest.com[hostIP] said: 451 4.3.0 <srdcg@gmail.com>: Temporary lookup failure (in reply to RCPT TO command))
Jul 14 09:15:30 readyspace dovecot: imap-login: Login: user=<test@test.comt>, method=PLAIN, rip=::1, lip=::1, mpid=19774, TLS, session=<pt8NJhXHyMMAAAAAAAAAAAAAAAAAAAAB>
Jul 14 09:15:30 readyspace dovecot: service=imap, user=test@test.com, ip=[::1]. Logged out rcvd=74, sent=813
Jul 14 09:15:32 readyspace dovecot: imap-login: Login: user=<test@test.com>, method=PLAIN, rip=::1, lip=::1, mpid=19777, TLS, session=<C1gqJhXH3MMAAAAAAAAAAAAAAAAAAAAB>
Jul 14 09:15:32 readyspace dovecot: service=imap, user=ttest@test.com, ip=[::1]. Logged out rcvd=318, sent=3269
Jul 14 09:15:34 readyspace dovecot: imap-login: Login: user=<test@test.comt>, method=PLAIN, rip=::1, lip=::1, mpid=19781, TLS, session=<iIFSJhXH5sMAAAAAAAAAAAAAAAAAAAAB>
Jul 14 09:15:34 readyspace dovecot: service=imap, user=test@test.com, ip=[::1]. Logged out rcvd=130, sent=864

Can anyone advice on this?


Thank you
 
Last edited:
Hi,

Please note that our DNS server is working fine without any issues and we could find the MX and TXT records are propagating and configured correctly.


We also found the log in PMG below


Code:
Jul 14 22:24:45 pmg-n1 postfix/smtpd[28123]: connect from domain.com[103.X.X.X]
Jul 14 22:24:45 pmg-n1 postfix/smtpd[28123]: warning: smtpd_client_event_limit_exceptions: non-null host address bits in "103.X.X.X/24", perhaps you should use "103.X.X.0/24" instead
Jul 14 22:24:46 pmg-n1 postfix/smtpd[28123]: warning: mynetworks: non-null host address bits in "103.X.X.X/24", perhaps you should use "103.X.X.0/24" instead
Jul 14 22:24:46 pmg-n1 postfix/smtpd[28123]: NOQUEUE: reject: RCPT from domain.com[103.X.X.X]: 451 4.3.0 <test@test.com>: Temporary lookup failure; from=<ssdc@test1.com> to=<test@test.com> proto=ESMTP helo=<test.local>
Jul 14 22:24:46 pmg-n1 postfix/smtpd[28123]: warning: smtpd_client_event_limit_exceptions: non-null host address bits in "103.X.X.X/24", perhaps you should use "103.X.X.0/24" instead
Jul 14 22:24:46 pmg-n1 postfix/smtpd[28123]: disconnect from Domain.com[103.X.X.X] ehlo=1 mail=1 rcpt=0/1 data=0/1 rset=1 quit=1 commands=4/6

Please advise on the error and how to resolve the issue.

Thank You
 
Please note that our DNS server is working fine without any issues and we could find the MX and TXT records are propagating and configured correctly.
Just to confirm, you did a nslookup, dig, or other DNS lookup tool on the PMG server it self to confirm it could find test.com's MX record? What about test.local and rDNS for the relaying server? Not on PMG it self, but I have seen that error in postfix logs when it could not lookup a rDNS on a IPv6 IP .
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!