OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Watchdog timeout with big virtual list

From: Andrea Gelmini (andrea.gelminigmail.com)
Date: Tue May 13 2008 - 08:04:50 CDT


Hi all,
   I've googled a lot, but I didn't find a working solution, so I'm
bothering you...
   I've got a simple postfix installation (I mean: no anti-spam/virus,
custom transport, and so on),
   with the only purpose to deliver a mailing list to ~100.000 emails.
   Postfix version is 2.5.1 (2.5.1-2ubuntu1 the one in Ubunty Hardy,
server flavor).
   In main.cf I modified this settings:
virtual_alias_domains = ...other my domain...
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_expansion_limit = 1000000
daemon_timeout = 12h

   And /etc/postfix/virtual is so:
ginomydomain: 1example.com,
 2example2.com,
 ...
 100000example3.com

   now, here what happens:

I run a test email:
    May 13 13:09:28 [postfix/pickup] 6507044B2: uid=0 from=<root>

I see "cleanup -z -t unix -u -c" process crunching, but after a while:

    May 13 13:25:45 [postfix/pickup] fatal: watchdog timeout
    May 13 13:25:46 [postfix/master] warning: process
/usr/lib/postfix/pickup pid 31566 exit status 1
    May 13 13:25:46 [postfix/pickup] AEBB144AE: uid=0 from=<root>

And now I've got two "cleanup -z -t unix -u -c" working, and after a while:

    May 13 13:42:25 [postfix/pickup] fatal: watchdog timeout
    May 13 13:42:26 [postfix/master] warning: process
/usr/lib/postfix/pickup pid 31633 exit status 1
    May 13 13:42:26 [postfix/master] warning: /usr/lib/postfix/pickup:
bad command startup -- throttling
    May 13 13:43:26 [postfix/pickup] BBF0B44AF: uid=0 from=<root>

So I see three "cleanup -z -t unix -u -c".
Well, I stopped postfix and cleaned the queue, because I was afraid to
flood users mailbox.

Now, If I split /etc/postfix/virtual with 50.000 addresses a time,
everything works like a charm.
But it's same email, and I wouldn't like waste resources as bandwidth.

Thanks a lot for your time,
Andrea Gelmini