小编Sim*_*son的帖子

Postfix 拒绝某些虚拟用户的中继

我使用 Postfix 作为 MTA 和中继。希望从远程系统发送电子邮件的用户进行身份验证,Postfix 将其交给 Dovecot,这很有效。但是如何限制哪些用户可以使用 SMTP+身份验证,而不限制对 POP 或 IMAP 的访问?

对我来说,块是在 Dovecot 的 SASL 身份验证中还是通过 Postfix 在表中查找都没有关系。

对 SMTP 使用 Postfix 2.9.6,对 POP、IMAP 和 SASL 使用 Dovecot 2.0.19。虚拟用户存储在 MySQL 5.5.40 中。

root@mx1:~# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
mailbox_size_limit = 0
message_size_limit = 51200000
mydestination = localhost, mx1.mydomain.tld
myhostname = virtmx.mydomain.tld
mynetworks = /etc/postfix/mynetworks
myorigin = /etc/mailname
policy-spf_time_limit = 3600s
readme_directory …
Run Code Online (Sandbox Code Playgroud)

mysql postfix dovecot smtp-auth sasl

6
推荐指数
1
解决办法
1170
查看次数

标签 统计

dovecot ×1

mysql ×1

postfix ×1

sasl ×1

smtp-auth ×1