hello misc! I'm not able to fix my problem myself and I need some help!

I want to create honeypot on my relay, and here is my conf (i have
cropped pki lines):

filter "rspamd" proc-exec "filter-rspamd"
table mailer { 172.16.0.25 }

table aliases file:/etc/mail/aliases

table honeypot file:/etc/mail/traps

listen on socket
listen on lo0
listen on egress tls pki tvema.ru hostname tvema.ru filter rspamd ciphers compat
listen on 172.16.0.1 tls pki gater filter rspamd

action "local_mail" mbox alias <aliases>
action "outbound" relay helo tvema.ru

action "tomailer" relay host 172.16.0.25 tls no-verify
action "trap" mda "/usr/local/bin/rspamc -f 1 -w 10 fuzzy_add"

match from local for local action "local_mail"

match ! from src <mailer> for rcpt-to <honeypot> action "trap"
match from any for domain "tvema.ru" action "tomailer"

match from src <mailer> for any action "outbound"
match from local for any action "outbound"

In traps file I have list of spoiled addresses for example aa...@tvema.ru
But mail is not accepted :(

Oct 16 14:28:38 gater smtpd[11899]: 55daaef921ae98d5 smtp
failed-command command="RCPT TO:<aa...@tvema.ru>" result="550 Invalid
recipient: <aa...@tvema.ru>"

This mail was not originated from "src mailer" and it looks like match
rule actually works, because otherwise it would be delivered to
"tomailer".
Now am I missing?

Reply via email to