Setup Virtual Domain Postfix

– Forward certain email recipient to another email address.
– Forward local Unix account email address to another email recipient because in the Postfix server don’t have mailbox.

Postfix on CentOS 7/RHEL 7 (also work on CentOS 6/RHEL 6)

– Edit
# vi /etc/postfix/
Edit the below parameter.

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

– Edit /etc/postfix/virtual
# vi /etc/postfix/virtual
Add the destination email domain that will forward to:

# Recipient --> forward address

– Run postmap everytime any update in the virtual file
# postmap /etc/postfix/virtual

– Reload Postfix configuration (no need to restart service)
CentOS 7: # systemctl reload postfix
CentOS 6: # service postfix reload


Leave a Reply

Your email address will not be published. Required fields are marked *