Dan Mahoney via Postfix-users: > Hello, > > We currently have myorigin = $mydomain, and mydomain = dayjob.org > on one of our border MXes, which is also the outbound MX for our > whole organization. We are a fairly large site with mxes in two > locations and many machines which send mail which may relay through > here. Mydomain feels like the *correct* origin answer. > > However, we would like our rootmail to respect our aliases file, > which tells root to go to a specific mail destination on a specific > box.
Use virtual_alias_maps, as shown below. > FreeBSD by default sends all its nightly security checks and the > like to "root" (bareword), and we globally deploy an alias file > that reroutes this to a collector on a single machine, both for > our machines that run postfix, as well as our machines that run > more simple mailers like dma. We'd like the expectations consistent > across the board. Use a virtual alias mapping from "[email protected]" to the collector email address. This is a variation on /usr/local/etc/postfix/main.cf: virtual_alias_maps = hash:/local/etc/postfix/virtual-for-root /local/etc/postfix/virtual-for-root: [email protected] [email protected] Run "postmap hash:/local/etc/postfix/virtual-for-root" after editing the file. Instead of a hash: map you could use a networked table such as *SQL or LDAP. Wietse _______________________________________________ Postfix-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
