小编fso*_*lsa的帖子

Postfix 阻止本地用户发送

在 Postfix 中,如何禁止本地用户向任何地方发送电子邮件,例如 joe@mail.example.com?

sender_access用以下几行写了一个文件

# cat sender_access
joe REJECT
joe@mail.example.com REJECT
Run Code Online (Sandbox Code Playgroud)

并作为散列加载postmap hash:sender_access,然后我main.cf在行中添加

smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access
Run Code Online (Sandbox Code Playgroud)

最后我重新启动了 postfix。但用户仍然写入活动队列。也许在 conf.d 文件中有其他一些选项干扰。

这是我的postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_percent_hack = no
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
mydestination = mail.example.com, localhost.neencloud.it, , localhost, mail.example.com
myhostname = mail.example.com …
Run Code Online (Sandbox Code Playgroud)

postfix

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

标签 统计

postfix ×1