添加配置位后:
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 将电子邮件发送到同一台机器上的 dovecot。
有任何想法吗?
答案1
我通常按照如下方式进行:
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:
...
我没有在传输和路由器部分使用收件人检查。它运行完美。