1 message in net.sourceforge.lists.courier-users[courier-users] Mails hanging in a queue
FromSent OnAttachments
Grzegorz JanoszkaAug 29, 2005 3:00 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Mails hanging in a queueActions...
From:Grzegorz Janoszka (Grze@pro.onet.pl)
Date:Aug 29, 2005 3:00:13 am
List:net.sourceforge.lists.courier-users

I have some dynamic mail aliases to deliver some messages to many recipients (some important announces etc), but mail sent to them hangs:

mailq shows:

1.0K 0000FBEA.4309BD5E.00006A4C Aug 22 13:56 poczta biu@domain.pl al@domain.pl

1.0K 00003F60.4309B368.00006196 Aug 22 13:13 poczta biu@domain.pl al@domain.pl

And logs now:

Aug 29 06:36:33 poczta courierd: started,id=00003FB6.4309B01A.00005B36,from=<biu@domain.pl>,module=local,host=alias!all!1!1!/etc/courier/aliasdir!!,addr=<alias> Aug 29 06:36:33 poczta courierd: Waiting. shutdown time=none, wakeup time=Mon Aug 29 06:36:56 2005, queuedelivering=6, inprogress=1 Aug 29 06:36:33 poczta courierlocal: No such file or directory Aug 29 06:36:33 poczta courierlocal: id=00003FB6.4309B01A.00005B36,from=<biu@domain.pl>,addr=<al@domain.pl>: Unable to read message file. Aug 29 06:36:33 poczta courierlocal: id=00003FB6.4309B01A.00005B36,from=<biu@domain.pl>,addr=<al@domain.pl>,status:
deferred Aug 29 06:36:33 poczta courierlocal: No such file or directory Aug 29 06:36:33 poczta courierlocal: id=00003FB6.4309B01A.00005B36,from=<biu@domain.pl>,addr=<al@domain.pl>:
Unable to read message file. Aug 29 06:36:33 poczta courierlocal: id=00003FB6.4309B01A.00005B36,from=<biu@domain.pl>,addr=<al@domain.pl>,status:
deferred

I have not modified the queue.

The logs just after sending mail:

Aug 22 12:59:38 poczta courierd: newmsg,id=00003FB6.4309B01A.00005B36: dns; localhost (localhost [127.0.0.1]) Aug 22 12:59:38 poczta courierd: started,id=00003FB6.4309B01A.00005B36,from=<biu@domain.pl>,module=local,host=alias!all!1!1!/etc/courier/aliasdir!!,addr=<alias> Aug 22 12:59:38 poczta courierd: Waiting. shutdown time=none, wakeup time=Mon Aug 22 13:02:14 2005, queuedelivering=12, inprogress=2

The dymanic alias is made so:

poczta:~# head /etc/courier/aliasdir/.courier-all |/usr/local/bin/check-mail-from user1 user2 user4 user5 user6 user9

The first line is the script that checks who sent the mail:

poczta:~# cat /usr/local/bin/check-mail-from #!/bin/sh

if [ "$SENDER" = "biu@domain.pl" ] then exit 0 fi

exit 99

All mails sent to al@domain.pl should be checked if sender is "biu@domain.pl" and then this mail should be sent to all recipients (sometimes 500 addresses). If that mail is sent by some other user, that mail should be blackholed.

But that doesn't work - all mails sent to al@domain.pl remain in mail queue and don't go to any of recipients. I have checked and the check-mail-from script works and returns 0 (some debugging in it).

What can be wrong? Or how can I make that a mail from a special address gets to many recipients and from others doesn't?