Skip to main content
  1. Posts/

Postfix – Forwarding Virtual Mailboxes

·63 words·1 min·

Setting up Postfix to handle mail for a virtual domain and forward it to external mailboxes is pretty easy. Here’s an example for a few domains:


virtual_alias_domains = hash:/etc/postfix/mydomains
virtual_alias_maps = hash:/etc/postfix/virtual

/etc/postfix/mydomains          OK         OK         OK


Remember, each time you edit /etc/postfix/virtual, do the following:

postmap /etc/postfix/virtual /etc/postfix/mydomains
postfix reload