Thanks a lot Wietse and Viktor for quick and util responses!.
bent smtpprox samples are so useful it's just what i was looking for.
Consider recheck doc link on this page
http://www.postfix.org/FILTER_README.html because is not upgraded (it's
ok on http://www.postfix.org/SMTPD_PROXY_README.html).
Considering you recomendation to use milters instead of After-Queue
filters, I was reading several documentation about pros/cons, and I'm
specially worried about the delay of our antispam and antivirus scanner
introduce on process. In fact I want to move to Before-Queue the
lighter functionalities of current filter. In any case I will test both
aproaches in a stress test.
Best.
El 27/1/22 a las 19:34, Wietse Venema escribió:
V?ctor Rubiella Monfort:
Hi!,
I'm working on redefine inbound mail delivery but I have some basic
"mixconceptions".
Now I have several separate inbound servers. I want to improve deploying
MX gateway postfix gateways, improve content filtering, etc.
First of all if someone can provide some links with more info about
configuration and architecture on this kind of layered aproach
(GW->postfix->dovecot) I will be very grateful :D. (something more than
official doc and "postfix the definitive guide book" :D)
Now I have an old perl script doing a lot of task in one filter script,
I want to refactor and optimize it.
See my suggestions below. They are likely more secure and more
performant. It's hard to give recommendations for writing custom
code like you do.
I'm need help on concepts for "advanced content filter". First of all,
documentation referers to Perl sample with broken link
(http://bent.latency.net/smtpprox/. )
You're looking at old documentation. The on-line doc has a link to
https://web.archive.org/web/20151022025756/http://bent.latency.net/smtpprox/
I have found quite few samples for Before-Queue filters (Milters), but
nothing advanced samples with After-Queue filtering.
I'd suggest using Milters (i.e. before-queue) where possible, many
SPAM filters have a Milter integration (examples: mimedefang,
amavis, spamass-milter).
Wietse