[SOLVED] Mail relay from internal to internal server failed

BJ78945

Active Member
Apr 15, 2015
75
12
28
Hi,

I setup some relay domains and transports. Sending from external to the mailboxes is fine but when I send from the mailbox to a different domain on the same mailserver pmg doesn't relay back to the internal server. The internal mail server is configured to send all mails to pmg instead of dropping directly to the mailbox (For spam and virus check)

Code:
Jan 24 14:24:12 mx2 postfix/smtpd[1100514]: connect from INTERNALMAILSERVER[IPv6]
Jan 24 14:24:12 mx2 postfix/smtpd[1100514]: NOQUEUE: client=INTERNALMAILSERVER[IPv6]
Jan 24 14:24:12 mx2 pmg-smtp-filter[1053820]: 4133761EEA87C1DB21: new mail message-id=<4E0AF847-B539-41EA-B970-3296A4B66563@DOMAINA>#012
Jan 24 14:24:18 mx2 pmg-smtp-filter[1053820]: 4133761EEA87C1DB21: SA score=0/5 time=6.042 bayes=0.00 autolearn=no autolearn_force=no hits=BAYES_00(-1.9),DKIM_SIGNED(0.1),DKIM_VALID(-0.1),DKIM_VALID_AU(-0.1),DKIM_VALID_EF(-0.1),SPF_FAIL(0.001),SPF_HELO_NONE(0.001)
Jan 24 14:24:18 mx2 postfix/smtpd[1100532]: connect from localhost[127.0.0.1]
Jan 24 14:24:18 mx2 postfix/smtpd[1100532]: 3886741338: client=localhost[127.0.0.1], orig_client=INTERNALMAILSERVER[IPv6]
Jan 24 14:24:18 mx2 postfix/cleanup[1100533]: 3886741338: message-id=<4E0AF847-B539-41EA-B970-3296A4B66563@DOMAINA>
Jan 24 14:24:18 mx2 postfix/qmgr[426187]: 3886741338: from=<user@DOMAINA>, size=7465, nrcpt=1 (queue active)
Jan 24 14:24:18 mx2 postfix/smtpd[1100532]: disconnect from localhost[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 commands=5
Jan 24 14:24:18 mx2 pmg-smtp-filter[1053820]: 4133761EEA87C1DB21: accept mail to <otheruser@DOMAINB> (3886741338) (rule: default-accept)
Jan 24 14:24:18 mx2 pmg-smtp-filter[1053820]: 4133761EEA87C1DB21: processing time: 6.12 seconds (6.042, 0.036, 0)
Jan 24 14:24:18 mx2 postfix/smtpd[1100514]: proxy-accept: END-OF-MESSAGE: 250 2.5.0 OK (4133761EEA87C1DB21); from=<user@DOMAINA> to=<otheruser@DOMAINB> proto=ESMTP helo=<INTERNALMAILSERVER>
Jan 24 14:24:18 mx2 postfix/smtpd[1100514]: disconnect from INTERNALMAILSERVER[IPv6] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Jan 24 14:24:18 mx2 postfix/smtp[1100534]: 3886741338: to=<otheruser@DOMAINB>, relay=none, delay=0.08, delays=0.02/0.02/0.05/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=DOMAINB type=AAAA: Host not found)
Jan 24 14:24:18 mx2 postfix/qmgr[426187]: 3886741338: removed


I don't understand this line

Code:
Jan 24 14:24:18 mx2 postfix/smtp[1100534]: 3886741338: to=<otheruser@DOMAINB>, relay=none, delay=0.08, delays=0.02/0.02/0.05/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=DOMAINB type=AAAA: Host not found)

Postfix shouldn't lookup AAAA Record for DOMAINB. In transports there is DOMAINB listed with INTERNALMAILSERVER. Also the transport file must be right because mails from external servers works well.

EDIT: there was a typing error on the internal server in the alias map. So no problem with pmg. Sometime it is better to look double time on the domain and mailbox names.
 
Last edited:

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 your own in 60 seconds.

Buy now!