Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a /etc/postfix/virtual file set up to alias mail to different domains to the right local user, however I also want to use /etc/aliases to alias certain local users (mostly nobody and postmaster to root) -- I have:

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
virtual_alias_maps = hash:/etc/postfix/virtual

But it seems to be ignoring the /etc/aliases (I have nobody: root but mail to nobody@localhost still goes to /var/mail/nobody)

share|improve this question
Did you use postmap after editing the aliases file? – Khaled Nov 3 '10 at 16:39
I used it on the virtual file... do I also need to call it on the aliases file? – singpolyma Nov 3 '10 at 17:08
Running postmap on /etc/aliases gives a bunch of warnings and running postalias has no effect – singpolyma Nov 3 '10 at 17:12
paste the results of postconf (obscure the things you want hidden). See if it matches what you think it should... If not maybe this will help. – Leo Nov 3 '10 at 20:03
postconf output (hostnames redacted) : – singpolyma Nov 4 '10 at 21:52

Q: Did you run newaliases after changing the /etc/aliases/ file? A: you say “yes”.

Q: Do you have similar output for the following command?

# file /etc/aliases*
/etc/aliases:    ASCII text
/etc/aliases.db: Berkeley DB (Hash, version 9, native byte-order)
share|improve this answer
Just tried running postmap /etc/aliases followed by newaliases and then reloading postfix... no effect. – singpolyma Nov 3 '10 at 19:06
$ file /etc/aliases* /etc/aliases: ASCII text /etc/aliases.db: Berkeley DB (Hash, version 9, native byte-order) – singpolyma Nov 4 '10 at 21:45
Could the problem have something to do with me using procmail for delivery? I have: mailbox_command = procmail -a $EXTENSION – singpolyma Nov 19 '10 at 16:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.