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 [email protected] hostname remote.XXX.ca accept from source 192.168.100.63 for any relay via smtp://XXX-ca.mail.protection.outlook.com as [email protected] 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===
[email protected]:      [email protected]
[email protected]:   [email protected]
[email protected]: [email protected]
[email protected]: [email protected]
===end===


--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to