Hi,
a technical question: Is it possible to have different header_checks,
depending on the client or sender?
Example:
* I'm getting lots of legitimate mailing list messages, like from this
list,
* I'm getting lots of legitimate mail from google, lots of gmail users,
* but I'm getting lots of spam from google mailing lists ("groups"),
since google keeps allowing people to open a mailing list and put
just anyone on it, to have google blast out their spam mails. When
trying to unsubscribe, the list does not exist anymore. There's an
option to not be put on lists without consent, but just for google
accounts. For non-google mail addresses it's not possible to tell
google "don't put me on mailing lists without consent".
Unfortunately, I cannot just block them, since they are delivered
from the same mail relays as legitimate mails.
So I want to block messages containing a List-ID:-Header, but just when
coming from certain clients, such as *.google.com. Not blocking lists
mails from other clients/senders, and not blocking non-list mails from
google.
My first approach was, easy, just create an smtpd_restriction_class
listblock, have a header check
/^List-ID:/ listblock
and in listblock do a client_check with
.google.com REJECT
but had to learn, this is not possible, since header_checks run in a
different phase, during cleanup, and thus cannot trigger
smtpd_restriction_classes. header_checks are always applied to all
messages.
Is there a way to have different header checks for different clients or
senders without writing a dedicated filter?
best regards
Hadmut
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]