menu

redirect all mail

Here is how to restrict all mails sent from your server ...

 

add to /etc/postfix/main.cf

virtual_alias_maps = pcre:/etc/postfix/redirectallmail
myorigin = /etc/mailname

add new file /etc/postfix/redirectallmail

/.*@.*/ myname@mywebsite.co.nz

add new file /etc/mailname

mywebsite.co.nz