Hi, Am 29.08.2011 17:50, schrieb Ralf Hildebrandt: >> I am trying to find a solution for filtering the first-senders ip/host >> information out of an email header. (I am running mailman with postfix). > > The very first? E.g. the IP of the dialup the user is sending from? >
exactly.
>> I am already doing the anonymization when sending mail for "normal"
>> users by setting smtpd_sasl_authenticated_header=yes and then using
>> header_checks to replace the part of the header where the users ip
>> address can be found with 127.0.0.1.
>
> OK. Why not do the same for the other users?
>
Right.. I'm sorry, I kind of missed the point here. I didn't understood
the meaning of Authenticated-Header exactly. Thought that there is none
for mailing lists as users don't authenticate "with passwords".
I am now using nearly the same regexp as i do for imap users. I got the
regexp from the web and modified it slightly. So far it seems to work
without any issues. I poste it here in case anyone is interested. (If
anyone sees problems or cases where it wouldn't work, please let me know :))
/^Received: from (.* \([-._[:alnum:]]+
\[[.[:digit:]]{7,15}\]\)).*?([[:space:]]+).*\(Authenticated sender:
([^)]+)\).*by (mx\.server\.net) \(([^)]+)\) with (E?SMTPS?A?) id
([A-F[:digit:]]+)(.*)/
REPLACE Received: from [127.0.0.1] (localhost
[127.0.0.1])$2(Authenticated sender: $3)${2}with $6 id $7 $8
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------ Mailman-Users mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
