Bonjour Monsieur Gilles,
To start with, Merci Beaucoup for all the effort and patience.
I think there might an inadvertent interchanging of the comments
in your blog post titled "more on OpenSMTPD filters" [1]:
..
listen on all filter # not filtered
listen on socket # filtered
..
If I am not wrong, the first comment might be "filtered" and the second
might be "not filtered".
In terms of the filter API, I base my thoughts and queries on the python
API, blog posts, rspamd filter and the committed code in CVS.
1) What is the difference between the "report" and "filter" prefixes?
My current understanding is that "report" is oriented towards reporting
and "filter" is oriented towards writing filters.
2) How would one handle failures within external filters? Is there a
mechanism to signal to the SMTP filter chain to remove oneself?
3) Are there time limits for a filter to return response?
4) Suppose there are three filters {f1,f2,f3} in a chain. If f3 rejects
the connection, do f1 and f2 get notified?
5) Could we have the filter builtin for helo be different from the
ehlo? It might be instructional to understand that the client asked
for ehlo.
{ FILTER_EHLO, "ehlo", filter_builtins_helo },
6) Could we add the reason for rollback in tx-rollback? If I am not
wrong, a client can rollback using RSET, QUIT or HELO/EHLO within a
transaction.
7) In lka_filter.c, if a filter feeds back more than LINE_MAX, should
we handle that?
(void)strlcpy(buffer, line, sizeof buffer);
8) What if the SMTP input/output or the filter input/output contains "|"
as a character - would the separator processing still work?
I am not sure all my queries above are relevant or correct, so in case
they do not make sense, I apologize.
Dhanyavaad.
Regards,
ab
[1] - https://poolp.org/posts/2018-12-19/more-on-opensmtpd-filters/
[2] - https://poolp.org/posts/2018-11-09/opensmtpd-reporting-update/
---------|---------|---------|---------|---------|---------|---------|--
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]