I'm using postfix for my email. I know I can use /etc/aliases and newaliases command to redirect certain email, eg I can redirect root@example.com to user@example.com by putting root: user
in my /etc/aliases and then running newaliases
. However I'd like to do the equivilant of *: user
, so that all email to example.com will get sent to user@example.com.
How do I do this?
Best Answer
luser_relay = user@example.com
in yourmain.cf
is what you want.To disable user checking and accept all mails you need to add the
local_recipient_maps =
option. Documentation