Aliases in Postfix

prox

Well-Known Member
Joined
Sep 1, 2004
Messages
323
Reaction score
1
Location
Joburg
Hi guys

In which file is user created aliases saved?

TIA
 
Default location is: /etc/postfix/aliases which you need to convert to /etc/postfix/aliases.db using one of the utilities that comes along with postfix. I can't remember which one since I do not exactly make use of them myself.
 
Ive used webmin to admin my postfix servers for ages, makes this kinda stuff a breeze. Check it out.
 
In the default config it's /etc/aliases:

Code:
# postconf | grep alias_database
alias_database = hash:/etc/aliases

The command to rebuild /etc/aliases is:

Code:
# newaliases

If it's /etc/postfix/alias[es], then you need to run:

Code:
# postmap hash:/etc/postfix/alias[es]

You do not need to restart postfix - it will figure out the time stamp has changed, and reload the file all by itself.
 
Top
Sign up to the MyBroadband newsletter
X