Hi. inet <-----> hosting.com <-----> mail.hosting.com
smtpd.conf ... listen on ext map "virtuals" { source plain "/etc/mail/virtuals.plain" } accept from all for virtual virtuals relay virtuals.plain ... postmas...@hosted.com somewh...@gmail.com I can send mail from external to local accounts on the box (and alias them) by various methods - using the ISP provided PTR name and explicitly accepting mail for that "domain", changing the hostname of the box, fiddling with DNS, so on. I can send mail from the box to external addresses (including the gmail address) if I add the appropriate rule and so on. So ... I think routing/filtering is fine - mail comes in and mail goes out. Also, the mail machine is resolving (doing lookups) okay - I can do "host" commands from there. If I send mail to the virtual domain I get "bounces" back to the originating server - recipient rejected. If I check the default log (/var/log/maillog) on the mail machine I see the mail is getting that far and the same error is there - recipient rejected. Sample from my ISP mail server: Final-Recipient: rfc822;postmas...@hosted.com Action: failed Status: 5.0.0 (permanent failure) Remote-MTA: dns; [w.x.y.z] Diagnostic-Code: smtp; 5.1.0 - Unknown address error 530-'5.0.0 Recipient rejected: postmas...@hosted.com' (delivery attempts: 0) That's a good facsimile of what's in the log on the mail machine and all the domain names and IP addresses are correct. I've checked smtpctl show (run)queue and they're empty. It seems that DNS records for both domains (the hosted and the hosting) are fine as mail sent to the hosted domain makes it the hosting machine (AKA - it hits the logs). One thing that concerns me is PTR resource records. I'm working through that at the moment but it's fair to say if I can send mail from that machine to the gmail address that's "good enough" for now right? Before I go and set up smtpd logging next week, does this look in the ballpark? I've spent a couple of days on this over the last month - walking to the shop and fiddling with the servers and walking home and sending email ... Every time I say "start logging smtpd" I say "it should work ... let me try this first" and the walking back and forth begins. If it's not an obvious error I will be more rigorous. Best wishes.