CentOS 5
Sponsored Link

Virtual Domain2015/01/19

Configure for Virtulal Domain to send an email with another domain name different from original domain.
This example set config as,
present domain name ⇒ srv.world
new domain name ⇒ virtual.host
and "cent" has an email address cent@mail.srv.world now
and Add user "redhat" newly and Give him an email address cent@mail.virtual.host.
[1] Config for Virtula Domain
[root@mail ~]#
vi /etc/postfix/main.cf
# add at the bottom

virtual_alias_domains = virtual.host
virtual_alias_maps = hash:/etc/postfix/virtual
[root@mail ~]#
vi /etc/postfix/virtual
# add at the head

cent@mail.virtual.host   redhat
[root@mail ~]#
postmap /etc/postfix/virtual

[root@mail ~]#
/etc/rc.d/init.d/postfix reload

Reloading postfix:
[ OK ]

[2] Configure on client for new account and verify sending emails.
Matched Content