extmail+outlook

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

Postfix maillog邮件发送各阶段延时的日志记录

在maillog中有这样部分内容:delay=0.69, delays=0.19/0/0.12/0.3
格式为 delay=x,delays=a/b/c/d , 其中x=a+b+c+d,a表示在由queue mgr(队列管理器)控制前的延时,包括了邮件传输的时间;b表示在队列管理器控制期间的延时;c表示建立连接,包括dns/helo和tls等耗费的时间;d表示邮件传递的时间。

如果发现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

需求:

    限制A用户有权利发送到ALL@ , 但是不能发送到BOSS@
    限制B用户能发送到BOSS组 ,不能发送到 all组
 
环境是EMOS 1.6
 
实现:
   
  1. smtpd_sender_restrictions =

  2. permit_mynetworks,

  3. reject_sender_login_mismatch,

  4. reject_authenticated_sender_login_mismatch,

  5. reject_unauthenticated_sender_login_mismatch,

  6. check_recipient_access hash:/etc/postfix/local_recipient

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


 

 红色部分为新增。
 
理解:
    SMTP先检测check_recipient_access 里 local_recipient 收件人允许那些人发送,然后all匹配allow_to_all 这个(postmap -q '[email protected]'  /etc /postfix/local_recipient即可查到) 然后通过smtpd_restriction_classes 查找 allow_to_all , allow_to_all 由需要查 local_sender_all 表。 local_sender_all 表里写明,A用户可以发送。(个人字面理解)
 
   B用户发送到All 会提示Recipient address rejected: Access denied; from=<b @test.net > to=<all @test.net > proto=ESMTP
 
日志里提示fatal: restriction class `allow_to_all' needs a definition
 
是因为写smtpd_restriction_classes = allow_to_all, allow_to_boss
allow_to_all = check_sender_access hash:/etc/postfix/local_sender_all, reject(allow_to_all前面不能有空格)
 
相关资料:http://www.postfix.org/RESTRICTION_CLASS_README.html
          http://www.west263.com/www/info/17724-1.htm
          http://www.extmail.org/forum/thread-1797-1-1.html

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。

你可能感兴趣的:(extmail+outlook)