On 2013-01-06 6:53 PM, Christian Boltz <pos...@cb...> wrote:
> The more interesting question is if there are better headers to identify
> those mails - "bounce" in the From might be a good hint, but a
> mailinglist header is better ;-)
> Therefore (the headers of) some example mails would be helpful.
Well, since sometimes these trigger and sometimes they don't, it is
easier for me to find them in the logs - this doesn't give you the
headers, but it shows you what the logs are seeing - for example, this
one should have matched on the 'bounce', but it didn't:
Jan 7 07:40:07 myhost postfix/qmgr[6122]: 125D8AE0063:
from=<bounce-b_p7u18bgm62k2lkqip6d7150c3k======@bounces.livingsocial.com>,
size=99193, nrcpt=2 (queue active)
Jan 7 07:40:07 myhost postfix/virtual[13259]: 125D8AE0063:
to=<val...@ex...>, relay=virtual, delay=0.38,
delays=0.31/0/0/0.07, dsn=2.0.0, status=sent (delivered to maildir)
Jan 7 07:40:07 myhost postfix-25/smtpd[13256]: disconnect from
relay-eu1.maildistiller.com[5.135.34.120]
Jan 7 07:40:07 myhost postfix-25/smtpd[13256]: connect from
myhost.example.com[127.0.0.1]
Jan 7 07:40:07 myhost postfix-25/smtpd[13256]: C5D5AAE4E7E:
client=myhost.example.com[127.0.0.1]
Jan 7 07:40:07 myhost postfix/cleanup[13219]: C5D5AAE4E7E:
message-id=<201...@ex...>
Jan 7 07:40:07 myhost postfix/qmgr[6122]: C5D5AAE4E7E:
from=<val...@ex...>, size=1443, nrcpt=1 (queue active)
Jan 7 07:40:07 myhost postfix-25/smtpd[13256]: disconnect from
myhost.example.com[127.0.0.1]
Jan 7 07:40:07 myhost postfix/qmgr[6122]: 125D8AE0063: removed
Jan 7 07:40:07 myhost postfix/pipe[13261]: 125D8AE0063:
to=<valid-user#exa...@au...>,
orig_to=<val...@ex...>, relay=vacation, delay=0.84,
delays=0.31/0.01/0/0.52, dsn=2.0.0, status=sent (delivered via vacation
service)
Jan 7 07:40:10 myhost postfix/smtp[13237]: C5D5AAE4E7E:
to=<bounce-b_p7u18bgm62k2lkqip6d7150c3k======@bounces.livingsocial.com>,
relay=filtered.maildistiller.com[5.135.34.120]:25, delay=2.8,
delays=0.1/0/2.5/0.25, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as
7611EA2)
Jan 7 07:40:10 myhost postfix/qmgr[6122]: C5D5AAE4E7E: removed
> I'm not sure if I want this in the GUI -IMHO it's somthing that should
> only be editable by the server admin.
Well, yeah, but it should only be in the GUI when an Admin is logged in
(not a normal user)... just a field where the Admin could add strings
like 'bounce', 'twitter', etc, with a selector on which of the headers
to match on (ie, 'All', 'From', 'Envelope', etc...)...
What I'm doing now is just much more error prone...
|