I have a setup where I need all mails to be delivered via DNS - except malis for openSMTPd own domain (abc.com)
My smtpd.conf says: table aliases file:/etc/mail/aliases table relayhosts file:/etc/mail/relayhosts listen on lo0 listen on em0 accept from any for domain "abc.com" relay via smtp://10.77.1.106 # accept for local alias <aliases> deliver to mbox # accept from local for any relay accept from source <relayhosts> for any relay but they keep getting stuck in the local queue: 499ff3598c541f9c|local|mta|auth|[email protected]|[email protected]|[email protected]|1508330164|1508675764|1508331539|2|inflight|7|Network error on destination MXs /etc/mail/relayhosts contains the IP 10.77.1.104 - and this can relay nicely via DNS. I am able to telnet to 10.77.1.106 on port 25 and deliver mails that way... so no network error as reported. What is needed in smtpd.conf for this to work? Regards, Lars.
