On 04/06/17 09:01, Frank Timmers wrote:
Hi,

I’ve got a rule based on recipients, however for some reason it’s not matched and therefor the mail bounced. Can anyone tell me if I’m doing something wrong?

Thanks and kind regards,
/Frank.

—
smtpd.conf rule:
table recipient_whitelist file:/etc/opensmtpd/recipient_whitelist
accept recipient <recipient_whitelist> relay via smtp://127.0.0.1:10027

I think you have to do like this:

accept for domain example.com recipient <recipient_whitelist> relay via ....

—

—
/etc/opensmtpd/recipient_whitelist:
# accept all mails to these recipients
mon...@example.com <mailto:mon...@example.com>
ban...@example.com <mailto:ban...@example.com>
—

—
Output from “smtpd -dv -T lookup -T rules”:
debug: smtp: new client on listener: 0xe253a0
13e045ff1aa2603d smtp event=connected address=192.168.0.10 host=client.example.com <http://client.example.com>
debug: smtp: SIZE in MAIL FROM command
lookup: check “192.168.0.10" as NETADDR in table static:<localhost> -> 0
no rule matched
13e045ff1aa2603d smtp event=failed-command command="RCPT TO:<mon...@example.com <mailto:mon...@example.com>> ORCPT=rfc822;mon...@example.com <mailto:mon...@example.com>" result="550 Invalid recipient"
13e045ff1aa2603d smtp event=closed reason=quit
debug: smtp: 0xe1d3f0: deleting session: done

Reply via email to