postfix 用户群发邮件的设置
时间:2010-12-20 来源:lynnteng0
公司内某用户aa([email protected])需要给全公司的编辑发送群发邮件([email protected]),因此需要给该用户设置能够群发的权限。
1、/etc/postfix/main.cf
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
2、/etc/postfix/local_sender //添加允许群发的用户
[email protected] ok
如果允许domain.com域的所有用户都能够群发,则设置如下:
domain.com ok
3、/etc/postfix/sender_login_maps
[email protected] aa
4、/etc/postfix/local_recipient //添加群账号
[email protected] local_only
5、生成hash表
postmap hash:/etc/postfix/sender_login_maps
postmap hash:/etc/postfix/local_sender
postmap hash:/etc/postfix/local_recipient
所有设置好之后,重启postfix
/etc/init.d/postfix restart
1、/etc/postfix/main.cf
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
2、/etc/postfix/local_sender //添加允许群发的用户
[email protected] ok
如果允许domain.com域的所有用户都能够群发,则设置如下:
domain.com ok
3、/etc/postfix/sender_login_maps
[email protected] aa
4、/etc/postfix/local_recipient //添加群账号
[email protected] local_only
5、生成hash表
postmap hash:/etc/postfix/sender_login_maps
postmap hash:/etc/postfix/local_sender
postmap hash:/etc/postfix/local_recipient
所有设置好之后,重启postfix
/etc/init.d/postfix restart
相关阅读 更多 +