Hello,

I've been looking for examples on this and I am still stuck.

I have the following configuration for a local server that acts as the mail relay for my local machines (as defined in virtual_domains):

table aliases file:/etc/mail/aliases
table vdomains file:/etc/mail/virtual_domains
table vusers file:/etc/mail/virtual_users

listen on socket

listen on lo0
listen on vio0

action "relay" relay host smtp://vps
action receive mbox virtual <vusers>

match from any for domain <vdomains> action receive
match from any for any action "relay"

This ends up sending mail from my local machines (such as daily output) to my vps, which is fine, but I would like the emails from some hosts in this domain to be rewritten before sending to the relay.

E.g. email from users on workstation.localnet should be rewritten as us...@bogus.net such that the smtp server on the vps (Postfix in this case) can do the correct processing (DKIM++) on relayed emails before the are e.g. attempted delivered to gmail.com.

Would appreciate pointers to pages that I have missed.

Tor

Reply via email to