Using both /etc/postfix/virtual *and* /etc/aliases with Postfix

emailpostfix

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)

Best Answer

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)