I changed the line per your recommendation to match only on the from
header, and another one that should have been matched didn't...
I'd really appreciate some help getting this line working so I can stop
replying to messages from linkedin and others I shouldn't be replying to...
Why didn't this line:
> elsif (/^from:\s+(bounce|do-not-reply|facebook|linkedin|list-|myspace|twitter)/i) { $logger->debug("Multi-string From header matching $1: $2 found; exiting"); exit (0); }
match on the string 'bounce'?
Jan 9 09:51:52 myhost postfix/qmgr[6122]: C8136AE6DBF:
from=<bou...@ic...>, size=6162, nrcpt=2
(queue active)
Jan 9 09:51:52 myhost postfix/virtual[2921]: C8136AE6DBF:
to=<val...@ex...>, relay=virtual, delay=0.33,
delays=0.27/0/0/0.06, dsn=2.0.0, status=sent (delivered to maildir)
Jan 9 09:51:52 myhost postfix-25/smtpd[2919]: disconnect from
relay-eu1.maildistiller.com[5.135.34.120]
Jan 9 09:51:52 myhost postfix-25/smtpd[2640]: connect from
myhost.example.com[127.0.0.1]
Jan 9 09:51:52 myhost postfix-25/smtpd[2640]: 7FA89AE6DC6:
client=myhost.example.com[127.0.0.1]
Jan 9 09:51:52 myhost postfix/cleanup[2920]: 7FA89AE6DC6:
message-id=<201...@ex...>
Jan 9 09:51:52 myhost postfix/qmgr[6122]: 7FA89AE6DC6:
from=<val...@ex...>, size=949, nrcpt=1 (queue active)
Jan 9 09:51:52 myhost postfix-25/smtpd[2640]: disconnect from
myhost.example.com[127.0.0.1]
Jan 9 09:51:52 myhost postfix/pipe[2970]: C8136AE6DBF:
to=<valid-user#exa...@au...>,
orig_to=<val...@ex...>, relay=vacation, delay=0.83,
delays=0.27/0.01/0/0.55, dsn=2.0.0, status=sent (delivered via vacation
service)
Jan 9 09:51:52 myhost postfix/qmgr[6122]: C8136AE6DBF: removed
Jan 9 09:52:01 myhost postfix/smtp[2967]: 7FA89AE6DC6:
to=<bou...@ic...>,
relay=filtered.maildistiller.com[5.135.34.120]:25, delay=8.5,
delays=0.12/0/6.1/2.3, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as
A913DD3)
Jan 9 09:52:01 myhost postfix/qmgr[6122]: 7FA89AE6DC6: removed
On 2013-01-07 3:52 PM, Tanstaafl <tan...@li...> wrote:
> 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...
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122412
> _______________________________________________
> Postfixadmin-devel mailing list
> Pos...@li...
> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel
>
|