Postfix catch-all and forward to another email


Install Postfix:

sudo apt-get install postfix

Create /etc/postfix/virtual:

Save and run:

postmap /etc/postfix/virtual

Append to /etc/postfix/

virtual_alias_maps = hash:/etc/postfix/virtual

Edit inet_interfaces in /etc/postfix/

inet_interfaces = all
inet_protocols = ipv4

Add to mydestination all used domain like

mydestination = $myhostname, localhost.$mydomain, localhost,,,

Restart Postfix:

service postfix reload



No Comments
Back to top