Copy this bookmark:



bookmark detail

postfix: aliases will be ignored - Server Fault
Instead, you probably want to use the virtual maps.

As root (or sudo)

In /etc/postfix/virtual (or where virtual is)

root hostmaster@my.domain


virtual_maps = hash:/etc/postfix/virtual

or (modern versions of postfix)

virtual_alias_maps = hash:/etc/postfix/virtual

after the virtual map has been modified

# postmap /etc/postfix/virtual
# postfix reload

Beware that all mail for "root" will be redirected to "hostmaster@my.domain".
postfix  mail  cli  linux  debian  sysadmin  reference 
october 2017 by will.brien
view in context