Hello kasak,
kasak@kasakoff.net (kasak), 2023.10.31 (Tue) 09:47 (CET):
> I already wrote similar question to opensmtpd list, but nobody replied.
> Maybe there are more subscribers here.
>
> I cannot understand how rcpt-to match directive works!
>
> White trying to understand, I have simplified config to this ( i cropped
> listen lines ):
>
> action "tomailer" relay host 172.16.0.25 tls no-verify
> action "trap" maildir "/home/kasak/spam"
>
> match from any for rcpt-to "aapot@tvema.ru" action "trap"
my rcpt-to lines look like this:
match from any for local rcpt-to <recipients> action dlvrv
^^^^^
You could increase the verbosity of OpenSMTPd:
$ smtpctl log verbose
$ for i in smtp mta expand lookup rules; do \
doas smtpctl trace $i;\
done
And show us the logs.
Marcus
> match from any for domain "tvema.ru" action "tomailer"
>
> the idea is to catch some emails to specific spoled address and to teach
> spam filter. But when I send test email there, smtpd reject it:
>
> smtp failed-command command="RCPT TO: <aapot@tvema.ru>" result="550 Invalid
> recipient: <aapot@tvema.ru>"
>
> other mails, to other mailboxes successfully go to "tomailer".
>
> please help!
>
No comments:
Post a Comment