Difference between revisions of "Postfix"
(Created page with '==About== category:softwarePostfix is an open-source Mail Transfer Agent for POSIX systems. It is fully supported by Webmin and is part of the Dovecot…') |
(aliases) |
||
Line 2: | Line 2: | ||
[[category:software]][[Postfix]] is an [[open-source]] [[Mail Transfer Agent]] for [[POSIX]] systems. It is fully supported by [[Webmin]] and is part of the [[Dovecot]] stack. | [[category:software]][[Postfix]] is an [[open-source]] [[Mail Transfer Agent]] for [[POSIX]] systems. It is fully supported by [[Webmin]] and is part of the [[Dovecot]] stack. | ||
==Notes== | ==Notes== | ||
+ | ===aliases=== | ||
+ | To set up aliases, either edit the file specified by the [[/main.cf/alias_maps|alias_maps]] setting in [[etc/postfix/main.cf|main.cf]] ([[etc/aliases|/etc/aliases]] by default) and then run [[newaliases]] (or "postalias /etc/aliases") to update the database, or else use [[Webmin]] ("Mail Aliases" icon, then click on the "Create a new alias" link). | ||
+ | |||
+ | '''Note''': Webmin seems to automatically run newaliases when you add or modify an individual alias, but ''not'' when you use it to edit the [[etc/aliases|/etc/aliases]] file directly. Changes made to /etc/aliases will not take effect until the database is updated. | ||
+ | ===catch-all=== | ||
To set up a catch-all address, edit [[/main.cf|main.cf]] and set the following parameters: | To set up a catch-all address, edit [[/main.cf|main.cf]] and set the following parameters: | ||
* local_recipient_maps = | * local_recipient_maps = |
Revision as of 14:37, 20 June 2010
About
Postfix is an open-source Mail Transfer Agent for POSIX systems. It is fully supported by Webmin and is part of the Dovecot stack.
Notes
aliases
To set up aliases, either edit the file specified by the alias_maps setting in main.cf (/etc/aliases by default) and then run newaliases (or "postalias /etc/aliases") to update the database, or else use Webmin ("Mail Aliases" icon, then click on the "Create a new alias" link).
Note: Webmin seems to automatically run newaliases when you add or modify an individual alias, but not when you use it to edit the /etc/aliases file directly. Changes made to /etc/aliases will not take effect until the database is updated.
catch-all
To set up a catch-all address, edit main.cf and set the following parameters:
- local_recipient_maps =
- luser_relay = whereToSend
The syntax for whereToSend is explained here.
Examples:
- luser_relay = $user@anotherdomain.org
- forwards all email addressed to "invaliduser@firstdomain.org" to "invaliduser@anotherdomain.org"
- luser_relay = youraddress@anotherdomain.org
- forwards all email addressed to invalid users to "youraddress@anotherdomain.org".