Qmail
[Top] [All Lists]

unable to parse comma-delimited addresses

To: qmail@list.cr.yp.to
Subject: unable to parse comma-delimited addresses
From: "Quellyn L. Snead" <quellyn@lanl.gov>
Date: Wed, 8 Aug 2007 15:14:06 -0600 (MDT)
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
Importance: Normal
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
Reply-to: quellyn@lanl.gov
User-agent: SquirrelMail/1.4.8-6.el3.2lanl
I've noticed some odd behaviors while testing simple email to multiple
recipients with addresses delimited by comma.

This is on a system running Fedora Core 3 x86_64, with netqmail-1.05,
daemontools-0.76, dot-forward-0.71, ucspi-tcp-0.88.

sendmail compatibility links to the qmail sendmail wrapper are in place:

> [root@testbox ~]# ls -la /usr/lib/sendmail
lrwxrwxrwx  1 root root 28 Aug  8 13:39 /usr/lib/sendmail ->
../../var/qmail/bin/sendmail
> [root@testbox ~]# ls -la /usr/sbin/sendmail
lrwxrwxrwx  1 root root 28 Aug  8 13:39 /usr/sbin/sendmail ->
../../var/qmail/bin/sendmail


The issue arises when using mail to send an email to multiple recipients
with comma-delimited addresses:

> [root@testbox etc]# mail -s "TEST" djo@lanl.gov,quellyn@lanl.gov
> TEST from testbox; multiple recipients, comma-delimited
> Cc:
> [root@testbox etc]#

Delivery fails, apparently because the addresses aren't being parsed:

> Jul 26 17:35:39 testbox qmail-send: 1185492939.859429 new msg 3424863
> Jul 26 17:35:39 testbox qmail-send: 1185492939.859534 info msg 3424863:
bytes 285 from <root@testbox.lanl.gov> qp 13672 uid 0
> Jul 26 17:35:39 testbox qmail-send: 1185492939.863493 starting delivery
6438: msg 3424863 to remote djo@lanl.gov,quellyn@lanl.gov
> Jul 26 17:35:39 testbox qmail-send: 1185492939.863515 status: local 0/10
remote 1/20
> Jul 26 17:35:40 testbox qmail-send: 1185492940.033020 delivery 6438:
failure: 128.165.4.101_does_not_like_recipient./Remote_host_sai
> d:_553_5.1.3_<"djo@lanl.gov,quellyn"@lanl.gov>..._
Invalid_route_address/Giving_up_on_128.165.4.101./
> Jul 26 17:35:40 testbox qmail-send: 1185492940.033307 status: local 0/10
remote 0/20
> Jul 26 17:35:40 testbox qmail-send: 1185492940.039267 bounce msg 3424863
qp 13674
> Jul 26 17:35:40 testbox qmail-send: 1185492940.039327 end msg 3424863


But if I use a space to delimit the addresses instead:

> [root@testbox ~]# mail -s "TEST" djo@lanl.gov quellyn@lanl.gov
> TEST from testbox; multiple recipients, space-delimited.
> Cc:
> [root@testbox ~]#


Then qmail is able to successfully deliver the mail:

> Aug  8 14:37:19 testbox qmail-send: 1186605439.598514 new msg 950284
> Aug  8 14:37:19 testbox qmail-send: 1186605439.598924 info msg 950284:
bytes 287 from <root@testbox.lanl.gov> qp 2708 uid 0
> Aug  8 14:37:19 testbox qmail-send: 1186605439.598940 starting delivery
35: msg 950284 to remote djo@lanl.gov
> Aug  8 14:37:19 testbox qmail-send: 1186605439.598946 status: local 0/10
remote 1/20
> Aug  8 14:37:19 testbox qmail-send: 1186605439.598951 starting delivery
36: msg 950284 to remote quellyn@lanl.gov
> Aug  8 14:37:19 testbox qmail-send: 1186605439.598956 status: local 0/10
remote 2/20
> Aug  8 14:37:19 testbox qmail-send: 1186605439.848139 delivery 35:
success:
128.165.4.104_accepted_message./Remote_host_said:_250_2.0.0_l78KbJ5D012186_Message_accepted_for_delivery/
> Aug  8 14:37:19 testbox qmail-send: 1186605439.848188 status: local 0/10
remote 1/20
> Aug  8 14:37:19 testbox qmail-send: 1186605439.857186 delivery 36:
success:
128.165.4.103_accepted_message./Remote_host_said:_250_2.0.0_l78KbJJw016563_Message_accepted_for_delivery/
> Aug  8 14:37:19 testbox qmail-send: 1186605439.857218 status: local 0/10
remote 0/20
> Aug  8 14:37:19 testbox qmail-send: 1186605439.857223 end msg 950284


I repeated this test on a machine which runs sendmail. The comma-delimited
addresses were correctly separated and both deliveries succeeded.


Additionally, I can use qmail-inject directly and that seems to work as I
would expect:

> [quellyn@testbox SOURCES]$ echo "To: quellyn@lanl.gov,djo@lanl.gov" |
/var/qmail/bin/qmail-inject

> Aug  8 14:53:10 testbox qmail-send: 1186606390.298140 new msg 950284
> Aug  8 14:53:10 testbox qmail-send: 1186606390.298354 info msg 950284:
bytes 222 from <quellyn@testbox.lanl.gov> qp 2785 uid 11859
> Aug  8 14:53:10 testbox qmail-send: 1186606390.298363 starting delivery
43: msg 950284 to remote djo@lanl.gov
> Aug  8 14:53:10 testbox qmail-send: 1186606390.298369 status: local 0/10
remote 1/20
> Aug  8 14:53:10 testbox qmail-send: 1186606390.298375 starting delivery
44: msg 950284 to remote quellyn@lanl.gov
> Aug  8 14:53:10 testbox qmail-send: 1186606390.298381 status: local 0/10
remote 2/20
> Aug  8 14:53:10 testbox qmail-send: 1186606390.548071 delivery 44:
success:
128.165.4.101_accepted_message./Remote_host_said:_250_2.0.0_l78KrAaJ012124_Message_accep
ted_for_delivery/
> Aug  8 14:53:10 testbox qmail-send: 1186606390.548114 status: local 0/10
remote 1/20
> Aug  8 14:53:10 testbox qmail-send: 1186606390.557863 delivery 43:
success:
128.165.4.103_accepted_message./Remote_host_said:_250_2.0.0_l78KrAXr020106_Message_accep
ted_for_delivery/
> Aug  8 14:53:10 testbox qmail-send: 1186606390.557900 status: local 0/10
remote 0/20
> Aug  8 14:53:10 testbox qmail-send: 1186606390.557905 end msg 950284

In all other respects my qmail implementation seems to be performing as
expected ... but I am quite new to running a mail server.

Does anyone have any ideas of what might be going on here? I can only
think that there is something about qmail's sendmail wrapper that is not
emulating some sendmail-ish behavior which the mail utility is expecting,
but this seems like a very simple scenario which someone else would have
surely seen by now.

Thank you for any help you can give,
Quellyn Snead



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