пн, 23 окт. 2023 г. в 22:30, kasak <kasakof...@gmail.com>: > > i'm sorry to bother you again, but it seem that I made a trap for myself. > > I spend couple of hours changing configs and comparing smtpd behavior. > It looks like rcpt-to condition works and do not works simultaneously. > > For now I have simplified my config to contain this strings: > > action "trap" maildir "/home/kasak/spam" > match from any for rcpt-to "aa...@tvema.ru" action "trap" > > and again I'm stuck on: smtp failed-command command="RCPT > TO:<aa...@tvema.ru> ORCPT=rfc822;aa...@tvema.ru" result="550 Invalid > recipient: <aa...@tvema.ru>" > > So, it actually knows about aa...@tvema.ru, because otherwise, the > next line "for domain tvema.ru" should work (and it work on other > recipients) > > simultaneously, it count aa...@tvema.ru as invalid recipient. > > please help me, how is should be used?
I found the solution! This has not worked because I have no local user for "aa...@tvema.ru" So, I added a virtual table with mapping aa...@tvema.ru to the local user and now everything is fine!