Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Aug 2017 00:27:14 +0800
From:      "Mars G. Miro" <spry@anarchy.in.the.ph>
To:        freebsd-ports-bugs@freebsd.org
Subject:   mail/qmail's qmailsend quotes
Message-ID:  <598C8962.4080607@anarchy.in.the.ph>

next in thread | raw e-mail | index | archive | help
Hi,

    It seems that the quotes in rc.d/qmailsend prevents mailing to a
local user's Maildir/ directory.

    Current behavior:

qmails 49270  0.0  0.0 12420 1904  3  SJ   11:51AM 0:00.00 qmail-send
qmaill 49272  0.0  0.0 12372 1968  3  SJ   11:51AM 0:00.00 - splogger qmail
root   49273  0.0  0.0 12372 1848  3  SJ   11:51AM 0:00.00 -
qmail-lspawn './Maildir/'
qmailr 49274  0.0  0.0 12376 1844  3  SJ   11:51AM 0:00.00 - qmail-rspawn
qmailq 49275  0.0  0.0 12368 1840  3  SJ   11:51AM 0:00.00 - qmail-clean

    Logs:

Aug 10 11:18:58 XXXXXXX qmail: 1502378338.555999 new msg 5542608
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.556039 info msg 5542608: bytes
294 from <mars@XXXXXXX.domain.name> qp 48744 uid 1000
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.601856 starting delivery 7:
msg 5542608 to local mars@XXXXXXX.domain.name
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.601880 status: local 1/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.646321 new msg 5542612
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.646353 info msg 5542612: bytes
405 from <mars@XXXXXXX.domain.name> qp 48747 uid 1000
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.689306 starting delivery 8:
msg 5542612 to local './Maildir/'@XXXXXXX.domain.name
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.689325 status: local 2/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.689333 delivery 7: success:
did_0+1+0/qp_48747/
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.689371 status: local 1/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.689406 end msg 5542608
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.690543 delivery 8: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.690626 status: local 0/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.731800 bounce msg 5542612 qp 48750
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.731826 end msg 5542612
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.731963 new msg 5542617
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.731990 info msg 5542617: bytes
978 from <> qp 48750 uid 87
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.773434 starting delivery 9:
msg 5542617 to local mars@XXXXXXX.domain.name
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.773455 status: local 1/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.815822 new msg 5542609
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.815850 info msg 5542609: bytes
1089 from <> qp 48753 uid 1000
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.857254 starting delivery 10:
msg 5542609 to local './Maildir/'@XXXXXXX.domain.name
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.857273 status: local 2/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.857285 delivery 9: success:
did_0+1+0/qp_48753/
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.857316 status: local 1/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.857343 end msg 5542617
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.858485 delivery 10: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.858552 status: local 0/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.899806 bounce msg 5542609 qp 48756
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.899824 end msg 5542609
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.899952 new msg 5542638
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.899977 info msg 5542638: bytes
1574 from <#@[]> qp 48756 uid 87
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.941378 starting delivery 11:
msg 5542638 to local postmaster@XXXXXXX.domain.name
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.941395 status: local 1/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.983831 new msg 5542618
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.983851 info msg 5542618: bytes
1688 from <#@[]> qp 48759 uid 81
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.025466 delivery 11: success:
did_0+1+0/qp_48759/
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.025510 status: local 0/10
remote 0/20
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.025536 starting delivery 12:
msg 5542618 to local './Maildir/'@XXXXXXX.domain.name
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.025548 status: local 1/10
remote 0/20
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.025566 end msg 5542638
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.026777 delivery 12: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
Aug 10 11:13:00 XXXXXXX qmail: 1502377980.910953 triple bounce:
discarding bounce/5542618
Aug 10 11:13:00 XXXXXXX qmail: 1502377980.910973 end msg 5542618
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.555999 new msg 5542608
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.556039 info msg 5542608: bytes
294 from <mars@XXXXXXX.domain.name> qp 48744 uid 1000
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.601856 starting delivery 7:
msg 5542608 to local mars@XXXXXXX.domain.name
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.601880 status: local 1/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.646321 new msg 5542612
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.646353 info msg 5542612: bytes
405 from <mars@XXXXXXX.domain.name> qp 48747 uid 1000
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.689306 starting delivery 8:
msg 5542612 to local './Maildir/'@XXXXXXX.domain.name
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.689325 status: local 2/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.689333 delivery 7: success:
did_0+1+0/qp_48747/
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.689371 status: local 1/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.689406 end msg 5542608
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.690543 delivery 8: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.690626 status: local 0/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.731800 bounce msg 5542612 qp 48750
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.731826 end msg 5542612
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.731963 new msg 5542617
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.731990 info msg 5542617: bytes
978 from <> qp 48750 uid 87
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.773434 starting delivery 9:
msg 5542617 to local mars@XXXXXXX.domain.name
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.773455 status: local 1/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.815822 new msg 5542609
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.815850 info msg 5542609: bytes
1089 from <> qp 48753 uid 1000
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.857254 starting delivery 10:
msg 5542609 to local './Maildir/'@XXXXXXX.domain.name
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.857273 status: local 2/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.857285 delivery 9: success:
did_0+1+0/qp_48753/
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.857316 status: local 1/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.857343 end msg 5542617
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.858485 delivery 10: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.858552 status: local 0/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.899806 bounce msg 5542609 qp 48756
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.899824 end msg 5542609
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.899952 new msg 5542638
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.899977 info msg 5542638: bytes
1574 from <#@[]> qp 48756 uid 87
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.941378 starting delivery 11:
msg 5542638 to local postmaster@XXXXXXX.domain.name
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.941395 status: local 1/10
remote 0/20
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.983831 new msg 5542618
Aug 10 11:18:58 XXXXXXX qmail: 1502378338.983851 info msg 5542618: bytes
1688 from <#@[]> qp 48759 uid 81
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.025466 delivery 11: success:
did_0+1+0/qp_48759/
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.025510 status: local 0/10
remote 0/20
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.025536 starting delivery 12:
msg 5542618 to local './Maildir/'@XXXXXXX.domain.name
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.025548 status: local 1/10
remote 0/20
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.025566 end msg 5542638
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.026777 delivery 12: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.026841 status: local 0/10
remote 0/20
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.026864 triple bounce:
discarding bounce/5542618
Aug 10 11:18:59 XXXXXXX qmail: 1502378339.026886 end msg 5542618




    Fix:

root@XXXXXX:/usr/local/etc/rc.d# diff -ru ~/qmailsend qmailsend
--- /root/qmailsend     2017-04-14 01:23:54.000000000 -0400
+++ qmailsend   2017-08-10 11:53:14.653450000 -0400
@@ -41,7 +41,7 @@

 qmailsend_start() {
   case ${qmailsend_delivery} in
-    maildir) command_args='./Maildir/';;
+    maildir) command_args=./Maildir/;;
     mailbox) command_args='./Mailbox';;
     proc)    command_args='|preline procmail';;
     V7)      command_args='|preline -f /bin/mail -f
"${SENDER:-MAILER-DAEMON}" -d "$USER"';;
@@ -54,7 +54,7 @@
 '"${command_args}"
   fi

-  exec env - PATH="/var/qmail/bin:$PATH" ${command}
\'"${command_args}"\' splogger qmail&
+  exec env - PATH="/var/qmail/bin:$PATH" ${command} "${command_args}"
splogger qmail&
   /bin/pgrep -P $$ > ${pidfile}
 }

root@XXXXXX:/usr/local/etc/rc.d#

root@XXXXXX:/usr/local/etc/rc.d# ps auxwwd | grep qm
qmails 49293  0.0  0.0 12420 1932  3  IJ   11:53AM 0:00.00 qmail-send
qmaill 49295  0.0  0.0 12372 1968  3  IJ   11:53AM 0:00.00 - splogger qmail
root   49296  0.0  0.0 12372 1852  3  IJ   11:53AM 0:00.00 -
qmail-lspawn ./Maildir/
qmailr 49297  0.0  0.0 12376 1844  3  IJ   11:53AM 0:00.00 - qmail-rspawn
qmailq 49298  0.0  0.0 12368 1840  3  IJ   11:53AM 0:00.00 - qmail-clean
root@XXXXXX:/usr/local/etc/rc.d#


    Logs:

Aug 10 11:53:40 XXXXXXXX qmail: 1502380420.414114 new msg 5542608
Aug 10 11:53:40 XXXXXXXX qmail: 1502380420.414182 info msg 5542608:
bytes 288 from <mars@XXXXXXXX.domain.name> qp 49301 uid 1000
Aug 10 11:53:40 XXXXXXXX qmail: 1502380420.460087 starting delivery 1:
msg 5542608 to local mars@XXXXXXXX.domain.name
Aug 10 11:53:40 XXXXXXXX qmail: 1502380420.460106 status: local 1/10
remote 0/20
Aug 10 11:53:40 XXXXXXXX qmail: 1502380420.499610 delivery 1: success:
did_1+0+0/
Aug 10 11:53:40 XXXXXXXX qmail: 1502380420.499667 status: local 0/10
remote 0/20


-- 
Learned men are the cisterns of knowledge, not the fountainheads.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?598C8962.4080607>