LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Postfix aliases (https://www.linuxquestions.org/questions/linux-software-2/postfix-aliases-208590/)

riotpunk 07-23-2004 01:22 AM

Postfix aliases
 
I'm trying to add aliases to a postfix server that runs multiple domains and I need to add the same aliases for multiple domains.

ie:
webmaster@domain.com: user1
webmaster@otherdomain.com: user2

It seems that the format above is incorrect, and I get the message:
postalias: warning: /etc/aliases, line 8: name must be local

How can I add those aliases?

TIA,
Pat

bigrigdriver 07-23-2004 03:39 AM

Edit /etc/postfix/recipients (or recipients-canonical, whatever it's called) to identify local recipients.

Example:
webmaster@domain.com user1
webmaster@otherdomain.com user2

Then edit /etc/postfix/main.cf. Look for the line which reads:

local_recipient_maps = hash:/etc/postfix/recipients. If it does not exist, add it.
When done, execute the command 'postfix reload' to pick up the config changes.

Source of info: Postfix FAQ


All times are GMT -5. The time now is 06:20 AM.