티스토리 뷰

Debian 6 MAIL Server Virtual Domains


Virtual Domains

  Configure for Virtulal Domain to send an email with another domain name different from original domain.

This example set config as, 

present domain name ⇒ srv.world

new domain name ⇒ virtual.host

and userA has an email address squeeze@mail.srv.world now

and Add userB newly and Give him an email address squeeze@mail.virtual.host 



1. Config for Virtula Domain


root@mail:~# vi /etc/postfix/main.cf 


# add at the last line

virtual_alias_domains = virtual.host 

virtual_alias_maps = hash:/etc/postfix/virtual 




root@mail:~# vi /etc/postfix/virtual 


# add

squeeze@mail.virtual.host UserB


root@mail:~# postmap /etc/postfix/virtual 

root@mail:~# /etc/init.d/postfix reload 

Reloading Postfix configuration...done.

저작자 표시 비영리 변경 금지
신고
댓글