小编Mik*_*der的帖子

如何通过 GPO 设置 Internet Explorer 主页?

我需要通过 GPO 为整个域设置默认主页。IE 主页政策位于何处?

internet-explorer group-policy

16
推荐指数
2
解决办法
35万
查看次数

使用 mailx 时,Postfix 不会拒绝收件人地址

我在使用 postfix 时遇到问题,无法拒绝黑名单中某个地址的外发电子邮件。

这是我的配置/etc/postfix/main.cf

smtpd_recipient_restrictions = 
      check_recipient_access hash:/etc/postfix/bad_recipients, permit_mynetworks, reject_unauth_destination, permit
Run Code Online (Sandbox Code Playgroud)

文件/etc/postfix/bad_recipients

phongdang@chotot.vn REJECT
Run Code Online (Sandbox Code Playgroud)

然后我使用命令:

postmap /etc/postfix/bad_recipients 
Run Code Online (Sandbox Code Playgroud)

创建 bad_recipients.db

并重新启动后缀: /etc/init.d/postfix restart

然后我尝试发送邮件到 phongdang@chotot.vn:

echo "hello world" | mailx -s "Test from CLI" phongdang@chotot.vn
Run Code Online (Sandbox Code Playgroud)

邮件日志:

Nov  4 19:54:50 cent6 postfix/pickup[32452]: 851B011FD2B: uid=0 from=<root>
Nov  4 19:54:50 cent6 postfix/cleanup[32491]: 851B011FD2B: message-id=<20141104125450.851B011FD2B@cent6.5-template>
Nov  4 19:54:50 cent6 postfix/qmgr[32453]: 851B011FD2B: from=<root@cent6.5-template>, size=447, nrcpt=1 (queue active)
Nov  4 19:54:50 cent6 postfix/smtp[32493]: connect to ASPMX.L.GOOGLE.COM[2607:f8b0:400e:c02::1b]:25: Network is unreachable
Nov  4 19:54:51 cent6 …
Run Code Online (Sandbox Code Playgroud)

postfix filter mailx

4
推荐指数
1
解决办法
2134
查看次数

标签 统计

filter ×1

group-policy ×1

internet-explorer ×1

mailx ×1

postfix ×1