Debian 12 bookworm
Sponsored Link

Mail Server : Virtual Domain Setting2023/07/07

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.
For example,
present domain name ⇒
new domain name ⇒
a User [debian] has an email address [],
a User [bookworm] has an email address [],
the user [bookworm] uses the same name for before [@] with [debian].
[1] Configure Virtual Domain.
vi /etc/postfix/
# add to the end of the file

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

systemctl reload postfix

[2] Set new account on Email client and verify possible to send emails normally.
Matched Content