I have an old instance that uses virtual <vmap> to rewrite *sender* addresses. Reading the 6.4-STABLE version of the smtpd.conf(5) manpage, I can't see how to accomplish my goal any more - it looks impossible.

I don't want to upgrade a working mail relay server to something that might be broken, so I'm seeking assistance first.

THe purpose of this system is purely to relay mail from internal, semi-broken-ish systems out to our Office365 tenant, but I need to clean up bogus MAIL FROM / "From:" headers first, lest they be flagged as spam.

In general, I think I'm asking how to use virtual <map> with the "relay" action in the new syntax - the manual tells me this is impossible!?

Thanks,
-Adam


Old smtpd.conf:

===start===
listen on 0.0.0.0
listen on ::
table aliases db:/etc/opensmtpd/aliases.db
table vmap db:/etc/opensmtpd/vmap.db
table localnets { 192.168.10.0/24, 192.168.100.0/24, 192.168.157.0/24, 192.168.158.0/24, 192.168.101.0/24, 10.158.0.0/16 } accept from local for any relay via smtp://XXX-ca.mail.protection.outlook.com hostname remote.XXX.ca accept from source 192.168.158.63 for domain 192.168.158.63 virtual <vmap> deliver to lmtp localhost:25 accept from source 192.168.100.63 for domain 192.168.100.63 virtual <vmap> deliver to lmtp localhost:25 accept from source 192.168.158.63 for any relay via smtp://XXX-ca.mail.protection.outlook.com as sys...@xxx.ca hostname remote.XXX.ca accept from source 192.168.100.63 for any relay via smtp://XXX-ca.mail.protection.outlook.com as sys...@xxx.ca hostname remote.XXX.ca accept from source <localnets> for any relay via smtp://XXX-ca.mail.protection.outlook.com hostname remote.XXX.ca
===end===

old vmap:
===start===
ilom-alert@192.168.100.63:      sys...@xxx.ca
sys...@xxx.ca:   sys...@xxx.ca
sys...@ad.xxx.ca: sys...@xxx.ca
root@XXX.local: sys...@xxx.ca
===end===


--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Reply via email to