http://blog.csdn.net/deansrk/article/details/6717911
http://blog.csdn.net/deansrk/article/details/6717720
http://bbs.linuxtone.org/thread-24070-1-1.html
http://zhumeng8337797.blog.163.com/blog/static/100768914201143051449952/
http://coolerfeng.blog.51cto.com/133059/58075
http://www.extmail.org/forum/thread-4247-1-1.html
https://www.centos.bz/2011/10/centos-5-install-extmail-webmail/
http://wiki.extmail.org/extmail_solution_for_linux_centos-5
http://www.linuxidc.com/Linux/2014-07/104094.htm
http://aceruser.blog.51cto.com/2772529/671816
http://blog.chinaunix.net/uid-23511971-id-320284.html
http://blog.chinaunix.net/uid-23511971-id-320283.html
http://blog.csdn.net/akumas/article/details/2812251
http://hebingkun.blog.51cto.com/6083382/1308155
http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece76310408b334409d6743ca0804b22818448e4635810013bf4bb50734d5bcec37a6302a44e41eff734743d093da3de95c81cd2ecd479388856672f4f9140629742ee9d5124b137902dfeae69b6e7ac6684afa2c4df5444ca225327d7b19c5a71489729e71440b4ecc20953&p=8d61c64ad4d51cf000bd9b7e0e1196&newp=8a769a479e8206ef08e2947d0a5586231610db2151d3d31e3795d408&user=baidu&fm=sc&query=/etc/amavisd%2Econf%22+does+not+exist&qid=&p1=1
ssl:
http://waringid.blog.51cto.com/65148/59685/
http://blog.chinaunix.net/uid-16979052-id-3549100.html
http://blog.163.com/qiushuhui1989@126/blog/static/27011089201310892033442/
http://blog.sina.com.cn/s/blog_6da6c1220101di0u.html
http://zhumeng8337797.blog.163.com/blog/static/10076891420101089185376/
http://www.centospub.com/make/postfix_ssl.html
如果发现c这里延时大,说明dns等操作耗时多,则建立cache dns,如果有改善则说明问题就在那里;如果b的时间长,则说明qmgr反映速度有问题,则可以看到底是队列到了上限,还是磁盘I/O速度不够。
邮件组的限制:
http://www.extmail.org/forum/thread-1797-1-1.html
功能:只允许 test@domain.com 向[email protected] 发信,而其它人没有这个权利,限制了sender伪造
1、smtp认证(这里不再说明)
2、认证用户匹配
smtpd_sender_login_maps = hash:/etc/postfix/sender_login_maps
smtpd_recipient_restrictions =
permit_mynetworks
reject_sender_login_mismatch
3、设置只能[email protected] 给[email protected] 发邮件
smtpd_restriction_classes = local_only
local_only = check_sender_access hash:/etc/postfix/local_sender, reject
smtpd_sender_restrictions = check_recipient_access hash:/etc/postfix/local_recipient
check_sender_access hash:/etc/postfix/sender #(这句是强制本地域认证# set [email protected] to [email protected] auth)
4个文件内容如下:
#more sender_login_maps
[email protected] test
#more local_sender
[email protected] OK
#more local_recipient
[email protected] local_only
#more sender
domain.com permit_mynetworks,permit_sasl_authenticated, reject
http://blog.chinaunix.net/uid-12123492-id-3045959.html
需求:
smtpd_restriction_classes = allow_to_all, allow_to_boss
allow_to_all = check_sender_access hash:/etc/postfix/local_sender_all, reject
allow_to_opt = check_sender_access hash:/etc/postfix/local_sender_boss, reject
# vi local_recipient
[email protected] allow_to_all
[email protected] allow_to_boss
# vi local_sender_all
[email protected] ok
# vi local_sender_boss
[email protected] ok
postmap hash:/etc/postfix/local_sender_all
postmap hash:/etc/postfix/local_sender_boss
postmap hash:/etc/postfix/localrecipient
postfix reload
postfix源码编译支持tls需要-DUSE_TLS选项:
make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_TLS -DUSE_CYRUS_SASL -DUSE_SASL_AUTH -I/usr/include/sasl -DHAS_LDAP' 'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm -L/usr/lib -lssl -lcrypto -lsasl2 -L/usr/lib/openldap -llber -lldap'
make makefiles 'CCARGS=-DUSE_SASL_AUTH -DHAS_MYSQL -DUSE_CYRUS_SASL -I/usr/include/mysql -I/usr/include/sasl' 'AUXLIBS=-L/usr/lib64/mysql -L/usr/lib64/sasl2 -lmysqlclient -lsasl2 -lz -lm'
对同一封邮件的收件人数目限制
通过default_destination_recipient_limit参数来控制postfix的投递代理(如
smtp进程)可以将同一封邮件发送给多少个收件人。缺省值为50。也可以用明确指出该投递代理的参数来覆盖该缺省值。如用smtpd_recipient_limit来指定smtp投递代理可以将同一封邮件发送给多少个收件人,该参数的缺省值为1000。