On Dec 14, 2005, at 4:45 PM, [EMAIL PROTECTED] wrote:
Even emails to root get forwarded to relayhost now instead of getting redirected by /etc/aliases!!! How reverse order of operations so that /etc/aliases still used?
The best way is probably to stop using relayhost in main.cf and replace it with a transport map. In main.cf, place:
transport_maps = hash:/etc/postfix/transport At the end of the /etc/postfix/transport file, place the lines: localhost : your.hostname.and.domain : * : smtp:your.relay.hostThen, run 'postmap transport' to generate the .db file, restart postfix and you're golden.
The trick is to ensure that you list your local system first in the transport map, so that mail that _should_ be delivered locally will be. Everything else will then go to your relay host (the last rule in the transport map.)
Gregory -- Gregory K. Ruiz-Ade <[EMAIL PROTECTED]> OpenPGP Key ID: EAF4844B keyserver: pgpkeys.mit.edu
PGP.sig
Description: This is a digitally signed message part
-- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
