Fix for smtpd offline enqueue

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fix for smtpd offline enqueue

Nathanael Rensen-3
The smtpd enqueue -S option does not take an argument.

An email enqueued offline with only the -t option (e.g. vi recovery)
results in the options "-S -t" passed to smtpd enqueue. The -t is
ignored resulting in:

debug: smtpd: scanning offline queue...
debug: smtpd: enqueueing offline message /var/spool/smtpd/offline/1430502211.RW2ASq5x3b
debug: smtpd: offline scanning done
sendmail: no recipients
warn: smtpd: couldn't enqueue offline message /var/spool/smtpd/offline/1430502211.RW2ASq5x3b; smtpctl exited abnormally

Index: enqueue.c
===================================================================
RCS file: /cvs/src/usr.sbin/smtpd/enqueue.c,v
retrieving revision 1.91
diff -u -p -r1.91 enqueue.c
--- enqueue.c 27 Feb 2015 12:17:36 -0000 1.91
+++ enqueue.c 2 May 2015 04:09:25 -0000
@@ -186,7 +186,7 @@ enqueue(int argc, char *argv[])
  save_argv = argv;
 
  while ((ch = getopt(argc, argv,
-    "A:B:b:E::e:F:f:iJ::L:mN:o:p:qRS:tvV:x")) != -1) {
+    "A:B:b:E::e:F:f:iJ::L:mN:o:p:qRStvV:x")) != -1) {
  switch (ch) {
  case 'f':
  fake_from = optarg;

Reply | Threaded
Open this post in threaded view
|

Re: Fix for smtpd offline enqueue

Gilles Chehade-7
On Sat, May 02, 2015 at 12:27:46PM +0800, Nathanael Rensen wrote:
> The smtpd enqueue -S option does not take an argument.
>

committed, thanks

--
Gilles Chehade

https://www.poolp.org                                          @poolpOrg