Mail Server : Set Virtual Domain2024/05/16 |
Configure for Virtual 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 [fedora] has an email address [fedora@mail.srv.world], a User [redhat] has an email address [fedora@mail.virtual.host], the user [redhat] uses the same name for before [@] with [fedora]. |
|
[1] | Configure Postfix. |
[root@mail ~]#
vi /etc/postfix/main.cf # add to last line of the file virtual_alias_domains = virtual.host
virtual_alias_maps = hash:/etc/postfix/virtual
[root@mail ~]#
vi /etc/postfix/virtual # add to head line of the file fedora@mail.virtual.host redhat
postmap /etc/postfix/virtual [root@mail ~]# systemctl reload postfix |
[2] | Set new account to Email client and verify possible to send emails. |
Sponsored Link |
|