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 ⇒ []
new domain name ⇒ []
and user [debian] has an email address []
and user [stretch], Give him an email address [].
[1] Configure Postfix for Virtual Domain.
vi /etc/postfix/
# add follows to the end

virtual_alias_domains =
virtual_alias_maps = hash:/etc/postfix/virtual
vi /etc/postfix/virtual
# add   stretch
postmap /etc/postfix/virtual

systemctl restart postfix

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