Is it possible for Postfix (on FC7) to recieve an email at [email protected] and automatically forward a copy to [email protected] and [email protected] and [email protected]? I can't use .forward files because this is a virtual server with virtual domains, there are no /home/user directorys for email accounts.
3 Answers
You can add a line to /etc/aliases
to that effect:
a: b c d
The @example.com
in your case is assumed, as I understand. Don't forget to run newaliases
Perhaps /etc/postfix/virtual
is what you need? Take a look at the manpage virtual(5).
-
Well the server is hosted by GoDaddy and runs their Simple Control Panel.. I tried adding the aliases to /etc/postfix/turbopanel/virtual-alias but it doesn't seem to allow multiple lines of the same originating address.– GaryApr 24, 2010 at 9:23
-
I don't have a similar postfix installation by hand to test this on. But if I read the manpage correctly, the format is comma-separated addresses on a single line. For example:
[email protected] [email protected], [email protected], [email protected]
– ShtééfApr 24, 2010 at 10:14
The 'transport_maps' option in the postfix main.cf is the one that should be used.
The transport_maps points to /etc/postfix/transport.db file that contains the entries.
You can add the transport entries in /etc/postfix/transport file and run the 'postmap' command which will generate the transport.db file.