Virtual Domain Setting2018/05/12 |
Configure for Virtulal Domain to send an email with another domain name different from original domain.
This example is for the case you use OS user accounts. If you use virtual mailbox accounts, refer to here.
For example,
present domain name ⇒ srv.world new domain name ⇒ virtual.host a User [ubuntu] has an email address [ubuntu@mail.srv.world], a User [bionic] has an email address [ubuntu@mail.virtual.host], the user [bionic] uses the same name for before [@] with [ubuntu]. |
|
[1] | Configure Virtual Domain. |
root@mail:~#
vi /etc/postfix/main.cf # add to the end of the file virtual_alias_domains = virtual.host
virtual_alias_maps = hash:/etc/postfix/virtual
root@mail:~#
vi /etc/postfix/virtual # add
ubuntu@mail.virtual.host bionic
postmap /etc/postfix/virtual root@mail:~# systemctl restart postfix |
[2] | Set new account to Email client and make sure to be able to send emails. |
Sponsored Link |