Debian 9 Stretch
Sponsored Link

Virtual Domains2017/06/26

 
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.
present domain name ⇒ [srv.world]
new domain name ⇒ [virtual.host]
and user [debian] has an email address [debian@mail.srv.world]
and user [stretch], Give him an email address [debian@mail.virtual.host].
[1] Configure Postfix for Virtual Domain.
root@mail:~#
vi /etc/postfix/main.cf
# add follows to the end

virtual_alias_domains = virtual.host
virtual_alias_maps = hash:/etc/postfix/virtual
root@mail:~#
vi /etc/postfix/virtual
# add

debian@mail.virtual.host   stretch
root@mail:~#
postmap /etc/postfix/virtual

root@mail:~#
systemctl restart postfix

[2] Configure on client for new account and make sure to be able to send emails.
Matched Content