在添加配置位之后:
deny
message = invalid recipient
domains = +local_domains
!verify = recipient/callout=no_cache出发地:http://wiki2.dovecot.org/LMTP/Exim运行update-exim4.conf和service exim4重新启动
服务器仍在接收不存在于dovecot中的收件人的电子邮件。
我用LMTP在同一台机器上发送电子邮件。
有什么想法吗?
发布于 2016-11-16 14:12:58
我通常是这样做的:
domainlist local_domains = my.domain.com
hostlist relay_from_hosts = 127.0.0.1 : 192.168.0.0/16 : 10.0.0.0/8
domainlist relay_to_domains = my.relay1.domain.com : my.relay2.domain.com
...
begin acl
...
acl_check_rcpt:
...
# Allow authenticated users
accept authenticated = *
# Deny if sender isn't exist
accept hosts = +relay_from_hosts : \
${if exists{/etc/exim/host_whitelist} \
{/etc/exim/host_whitelist}{} }
endpass
message = sender mailbox not found
verify = sender
# Check if recipient exists in local and relay domains
accept domains = +local_domains : +relay_to_domains
endpass
message = recipient mailbox not found
verify = recipient
# Deny all others (this is the last checking rule)
deny message = relay not permitted
acl_check_predata:
...我不使用接收者检查传输和路由器部分。而且效果很好。
https://serverfault.com/questions/815157
复制相似问题