Mail Server : Virtual Domain Setting2021/09/14 |
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.
For example,
present domain name ⇒ srv.world new domain name ⇒ virtual.host a User [debian] has an email address [debian.srv.world], a User [bullseye] has an email address [debian.virtual.host], the user [bullseye] uses the same name for before [@] with [debian]. |
|
[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
debian@mail.virtual.host bullseye
postmap /etc/postfix/virtual root@mail:~# systemctl restart postfix |
[2] | Set new account to Email client and verify possible to send emails normally. |
Sponsored Link |
|