Hello everyone,

 

I'm scratching my head with a curiosity. 

I want to play a bit with a filter during the SMTP connection. I don't want
to use amavis nor spamassassin in this case, but I want something much
faster and less resource intensive.

1. I run my own public Pyzor sever (and Redis cache) with 18K fingerprints
so far.

2. I want to send the content to a TCP where a light filter will use Pyzor
client in order to accept or reject the message.

 

I read the documentation back and forth and cover some tests already in the
last 2 weeks (milter, filter, proxy, smtpd_end_of_data_restrictions,
check_policy_service, spawn). 

I know only bash which is a dead end.

 

Would be easy for me to use a script and Pipe, but I will not be able to
respond with a Reject, Defer, Redirect, OK or Hold. Not to mention if the
disk is full, the messages will be lost. queue_minfree might save the day
here.

So far, I think would be nice to have a way similar to check_policy_service,
but which would send DATA too. I think Milter/Filter are the right
directions, but I can't find a way to combine them with spawn as I did with
check_policy_service.

 

Any thoughts, suggestions, advices?

 

Thank you.

 

Marius.

Reply via email to