postfix 怎么设置拒绝接收qq邮件,请详细点
新建立一个/usr/prima/postfix/conf/access2文件,在这个文件中写入要拒收的地址。
然后编辑/usr/prima/postfix/conf/main.cf,找到如下:
smtpd_sender_restrictions = hash:/usr/prima/postfix/conf/access
修改为下边的样子:
smtpd_sender_restrictions = hash:/usr/prima/postfix/conf/access hash:/usr/prima/postfix/conf/access2
然后重新加载postfix:
../sbin/postmap hash:access2
/etc/init.d/postfix reload
嘿嘿,答案是网上搜到的……你试试看吧……
postfix如何禁止接收某个域的邮件
smtpd_restriction_classes = local_only, local_only1
local_only = check_recipient_access hash:/etc/postfix/local_domains,reject
local_only1 = check_sender_access hash:/etc/postfix/local_domains,reject
smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/local_senders,
check_recipient_access hash:/etc/postfix/local_recipients,
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unauth_destination,
reject_unauth_pipelining,
reject_rhsbl_sender,
reject_unknown_sender_domain,
reject_invalid_hostname
注1:从第5行开始前面空一格.
2) 新增local-domains , local_senders , local_recipients三个文件
local_domains文件内容为:
domain.com OK
192.168.0.1 OK
local_senders文件内容为:
kently@domain.com local_only
local_recipients文件内容为:
kently@domain.com local_only1
3) postmap hash:/etc/postfix/local_domains
postmap hash:/etc/postfix/local_senders
postmap hash:/etc/postfix/local_recipients
4) postfix reload
帮你网上找了下,把指定的域名放到“local_domains”下, 只能接收指定域名的用户放到local_recipients,只能发送给指定域名的用户放到local_senders 试下吧
linux的postfix怎么样禁用mailrelay功能,防止被relay?
你的意思是你的邮件不被relay到另一个机器,而是自己通过DNS解析MX记录而对邮件进行操作吗?
postfix 怎么设置拒绝接收qq邮件,请详细点新建立一个/usr/prima/postfix/conf/access2文件,在这个文件中写入要拒收的地址。然后编辑/usr/prima/postfix/conf/mai
试下吧linux的postfix怎么样禁用mailrelay功能,防止被relay?你的意思是你的邮件不被relay到另一个机器,而是自己通过DNS解析MX记录而对邮件进行操作吗?
stfix/conf/access hash:/usr/prima/postfix/conf/access2然后重新加载postfix:../sbin/postmap hash:access2 /etc/init.d/postfix re
ocal-domains , local_senders , local_recipients三个文件local_domains文件内容为: domain.com OK 1