virtual_maibox_maps, ldap lookups, and multiple attributes

2009-02-01 Thread ben thielsen
hi- i'm using an ldap lookup map for virtual_maibox_maps and haven't been able to get the lookup to work quite the way i'd like. users exist in the ldap tree as uid=user,ou=people,ou=users,ou=accounts,dc=example,dc=com, and currently i'm using the mailLocalAddress attribute to store addr

Re: virtual_maibox_maps, ldap lookups, and multiple attributes

2009-02-01 Thread ben thielsen
On Feb 01, 2009, at 23.15, ben thielsen wrote: hi- i'm using an ldap lookup map for virtual_maibox_maps and haven't been able to get the lookup to work quite the way i'd like. users exist in the ldap tree as uid=user,ou=people,ou=users,ou=accounts,dc=example,dc=com, and

Re: virtual_maibox_maps, ldap lookups, and multiple attributes

2009-02-02 Thread ben thielsen
On Feb 01, 2009, at 23.58, Victor Duchovni wrote: On Sun, Feb 01, 2009 at 11:15:00PM -0500, ben thielsen wrote: dn: uid=user,ou=people,ou=users,ou=accounts,dc=example,dc=com mailLocalAddress: u...@foo.com - delivered to foo.com/user/Maildir/ mailLocalAddress: u...@bar.net - delivered to

Re: virtual_maibox_maps, ldap lookups, and multiple attributes

2009-02-02 Thread ben thielsen
On Feb 02, 2009, at 06.15, Reinaldo de Carvalho wrote: On Mon, Feb 2, 2009 at 1:15 AM, ben thielsen wrote: dn: uid=user,ou=people,ou=users,ou=accounts,dc=example,dc=com mailLocalAddress: u...@foo.com - delivered to foo.com/user/Maildir/ mailLocalAddress: u...@bar.net - delivered to

Re: header_checks and multi line headers

2011-04-22 Thread ben thielsen
> b...@bitrate.net: >>> postmap -q - regexp:./header_checks-ignored < test_message > > You need to tell postmap that the file contains an email message. ugh. i knew this too, and was even doing it last night when originally testing. thanks. so - given that oversight, and also switching to pcr

Re: header_checks and multi line headers

2011-04-22 Thread ben thielsen
> I copied your test message and expression. It works for me. > > postmap -hq - pcre:./header_checks-ignored< test_message > Received: from localhost (localhost [127.0.0.1]) >by mta.example.com (Postfix) with ESMTP id 76ABF40DF1 >for ; Tue, 19 Apr 2011 22:50:30 -0400 (EDT) IGNOR

Re: header_checks and multi line headers

2011-04-22 Thread ben thielsen
> i've shortened it to a very rudimentary expression and just a single line > match - it appears to be related somehow to the -h argument: > >> cat header_checks-ignored > /^Received/ IGNORE > >> postmap -q - pcre:./header_checks-ignored < test_message > Received: from localhost (localhost [12

all header_checks works with postmap -q, but not all work when processing actual mail

2011-04-24 Thread ben thielsen
given two lines in header_checks, both work when testing with postmap, but only one works when processing actual mail. it's my sense that it's related to the fact that the non working header check has to do with mail submitted via sendmail(1), but i can't figure out what i'm doing wrong. >cat

Re: all header_checks works with postmap -q, but not all work when processing actual mail

2011-04-24 Thread ben thielsen
.net ([127.0.0.1]) by localhost (mta.dipswitch.net [127.0.0.1]) (amavisd-maia, port 10024) with LMTP id 15339-07 for ; Sun, 24 Apr 2011 23:12:28 -0400 (EDT) Received: by mta.dipswitch.net (Postfix, from userid 0) id 368CE416DE; Sun, 24 Apr 2011 23:12:28 -0400 (EDT) > >cat message