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