Ubuntu 14.04
Sponsored Link

Virtual Domain2014/05/03

Configure for Virtulal Domain to send an email with another domain name different from original domain.
present domain name ⇒ srv.world
new domain name ⇒ virtual.host
and user "trusty" has an email address "trusty@mail.srv.world"
and user "ubuntu", Give him an email address "trusty@mail.virtual.host"
[1] Configure for Virtula Domain
vi /etc/postfix/main.cf
# add at the last line

virtual_alias_domains = virtual.host
virtual_alias_maps = hash:/etc/postfix/virtual
vi /etc/postfix/virtual
# add

trusty@mail.virtual.host   ubuntu
postmap /etc/postfix/virtual

/etc/init.d/postfix restart

 * Stopping Postfix Mail Transport Agent postfix
 * Starting Postfix Mail Transport Agent postfix
[2] Configure on client for new account and make sure to be able to send emails.
Matched Content