procmail
[Top] [All Lists]

Weird problem with procmail

2008-03-07 10:32:07
Hi,

For mail that comes into my secondary MX, I use the following to
sort mail to valid addresses from that to invalid ones:

:0
* ^To.*glidos\.net
{
   VALID=`cat /etc/postfix/virtual | sed -n -e 
's/^\((_dot_)*(_at_)glidos(_dot_)net\).*$/\1/p' | sed -e 's/ /|/g'`

   :0:
   * ? formail -x To: -c | egrep -i ${VALID}
   .Glidos.Glidos/

   :0:
   .Stuff.Invalid/
}


Used to work fine, but as the number of addresses stored in "virtual"
has increased, it fails to match some of the later ones. It's as
thought there's a line length limit. I tried splitting the content
of "VALID" into two and checking each part separately. That didn't
help, so maybe its nothing to do with line length limits.

Anyone, any ideas?

Cheers,
        Paul.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>