SLES 12
Sponsored Link

Virtual Domain2015/11/25

 
Configure Postfix to use Virtulal Domain to send an email with another domain name different from original domain.
For example,
present domain name ⇒ srv.world
new domain name ⇒ virtual.host
a User [suse] has an email address [suse@mail.srv.world],
a User [novel] has an email address [suse@mail.virtual.host],
the user [novel] uses the same name for before [@] with [suse].
[1] Configure Virtual Domain Settings.
mail:~ #
vi /etc/postfix/main.cf
# line 750,751: uncomment

virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual
mail:~ #
vi /etc/postfix/virtual
# add follows to the end

# [virtual domain name] anything

virtual.host anything
# [virtual address] [read account name]

suse@mail.virtual.host novel
mail:~ #
postmap /etc/postfix/virtual

mail:~ #
systemctl reload postfix

[2] Set new account to Email client and make sure to be able to send emails.
Matched Content