FreeBSD 14
Sponsored Link

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 ⇒
new domain name ⇒
a User [freebsd] has an email address [],
a User [openbsd] has an email address [],
the user [openbsd] uses the same name for before [@] with [freebsd].
[1] Configure Postfix.
root@mail:~ #
vi /usr/local/etc/postfix/
# add to last line

virtual_alias_domains =
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
root@mail:~ #
vi /usr/local/etc/postfix/virtual
# add to first line openbsd
root@mail:~ #
postmap /usr/local/etc/postfix/virtual

root@mail:~ #
service postfix reload

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