一个简单的使用文本保存所有数据的postfix例子
http://groups.google.com/groups? ... U.edu.tw&rnum=2
第2 ��
寄件者:"Ebbinge, Onno" (EbbingeO@logica.com)
主旨:SOLVED: virtual-mailbox domains
这是仅有的一条留言
View: Original Format
新闻群组:mailing.postfix.users
日期:2002-12-03 06:53:39 PST
Thanks to Viktor and Russell !!!
Posftfix virtual-mailbox domains (postfix 1.1.11-?):
* In main.cf:
transport_maps = hash config_directory/transport_maps.hash
virtual_mailbox_base = /var/mail
virtual_mailbox_maps = hash config_directory/virtual_mailbox_maps.hash
virtual_uid_maps = static:1003
virtual_gid_maps = static:6
* The files:
# cat transport_maps.hash
domain.tld local:
virtual-domain1.tld virtual:
virtual-domain2.tld virtual:
# cat virtual_mailbox_maps.hash
virtual-domain1.tld anything
virtual-domain2.tld anything
foo@virtual-domain1.tld virtual-domain1.tld/foo
bar@virtual-domain1.tld virtual-domain1.tld/bar
bar@virtual-domain2.tld virtual-domain2.tld/bar
* The uid/gid mapping:
uid 1003 = postfix
gid 6 = mail
* The mailboxes (make them: touch/chown/chmod):
-rw-rw-r-- 1 postfix mail 0 Dec 3 15:27
/var/mail/virtual-domain1.tld/foo
-rw-rw-r-- 1 postfix mail 0 Dec 3 15:27
/var/mail/virtual-domain1.tld/bar
-rw-rw-r-- 1 postfix mail 0 Dec 3 15:27
/var/mail/virtual-domain2.tld/bar
* restart the postfix system
# postmap transport_maps.hash
# postmap virtual_mailbox_maps.ha
# postfix reload
DONE.
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
回应留言
--------------------------------------------------------------------------------
基本上我自己弄的是一样的。不过自己的老出warning,比较郁闷。。:( |