nullmailer spams relay host if misconfigured

Bug #236715 reported by DarkStarSword
34
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nullmailer (Debian)
Fix Released
Unknown
nullmailer (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: nullmailer

I just got a call from our IT security officer on campus telling me my system was hammering the relay host and checking my logs it seems it was trying to connect ~20 times every second, but the relay was rejecting it because my hostname was misconfigured. This is very bad behaviour for any mailer program, expected behaviour would be for it to wait a minimum of 15 minutes before trying again. This is on Hardy Herron with nullmailer version 1:1.03-5.

My fix, as with all mailer problems was to immediately swap to postfix so this bug no longer affects me, but is most definitely still present.

Revision history for this message
In , Brian Ristuccia (brian-ristuccia) wrote :

Nullmailer retries unsuccessful deliveries forever. As a result, the queue
directory can become very large over time. Since no delivery status
notification is sent for failures, a user who accidentally misenters an
address will have a tough time figuring out what went wrong. Since the
output of mailq doesn't include the envelope addresses of the queued
messages, this problem becomes particularly troublesome to debug for users
without administrative access.

For temporary failures, some code needs to be added to check the age of the
queue file. If the queue file is older than a week (perhaps configurable in
/etc/nullmailer/queuelifetime), the temporary failure should be treated as
permanent.

For permanent failures, nullmailer should queue a bounce message from the
null envelope sender to the failed message's envelope sender. Once the
bounce has been successfully queued, nullmailer should delete the original
message be deleted from the queue. If queueing of the bounce message fails
for any reason, the original message must not be removed - to do so would
cause mail to be lost silently. As a special case, if the envelope sender of
the failed message is null, nullmailer should give the option to either move
the message from the queue to a special double bounce directory, or to
override the envelope sender of the bounce message to the special address
<#@[]> and the recipient to an administrative address (perhaps configured
using /etc/nullmailer/doublebouncehost and /etc/nullmailer/doublebounceto).
In the case of a grave misconfiguration where delivery of a message with the
special envelope sender <#@[]> fails, nullmailer should log an error and
delete the message from the queue.

--
Brian Ristuccia
<email address hidden>

Revision history for this message
In , Norbert Tretkowski (tretkowski) wrote :

tags 329192 +upstream
forwarded 329192 <email address hidden>
thanks

Hi Bruce,

yet another IMHO important bugreport (and not the last, I just had not
that much time during the last months to work on the package):

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=329192

Maybe you could take a look at it?

                Thanks, Norbert

Revision history for this message
In , Marc Herbert (marc-herbert) wrote : please increase default /etc/nullmailer/pausetime

At least this bug could be made bearable by increasing the default
pausetime. What's the point of re-trying to send a message every
minute?

Revision history for this message
DarkStarSword (darkstarsword) wrote :

Binary package hint: nullmailer

I just got a call from our IT security officer on campus telling me my system was hammering the relay host and checking my logs it seems it was trying to connect ~20 times every second, but the relay was rejecting it because my hostname was misconfigured. This is very bad behaviour for any mailer program, expected behaviour would be for it to wait a minimum of 15 minutes before trying again. This is on Hardy Herron with nullmailer version 1:1.03-5.

My fix, as with all mailer problems was to immediately swap to postfix so this bug no longer affects me, but is most definitely still present.

Revision history for this message
mcgarrydware (michael-mcgarrydware) wrote :

my nullmailer fires up about once every minute.
I am not that clever on linux but would love to know what it is trying to send

Revision history for this message
mcgarrydware (michael-mcgarrydware) wrote :

just checked my mail err log and nullmailer is actually running about 20 times a sec.
the error is
sending failed host not found

Changed in nullmailer (Ubuntu):
status: New → Incomplete
Changed in nullmailer (Debian):
status: Unknown → Confirmed
Revision history for this message
Jonathan Gossage (jgossage) wrote :

I have confirmed this problem on Ubuntu 9.10. The system will loop forever trying rapidly to send the message to a non-existent server.

Changed in nullmailer (Ubuntu):
status: Incomplete → Confirmed
C de-Avillez (hggdh2)
Changed in nullmailer (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Low
Revision history for this message
nowardev (nowardev) wrote :

to mee here on 10.04

Revision history for this message
Nick Leverton (nick-leverton) wrote :
Changed in nullmailer (Debian):
importance: Unknown → Undecided
status: Confirmed → New
importance: Undecided → Unknown
status: New → Unknown
Changed in nullmailer (Debian):
status: Unknown → Confirmed
Changed in nullmailer (Debian):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nullmailer - 1:1.13-1

---------------
nullmailer (1:1.13-1) unstable; urgency=low

  * Ack NMU, thankyou for your help with this package.
  * New upstream release (Closes: #757221, LP: #236715 by adding back-off).
  * Remove patch 07_sendquit.diff as nullmailer now does this itself.
  * B-D on automake and dh-autoreconf rather than automake1.11 and
    autotools-dev (new patch 13_fix_automake.diff).
  * B-D on libgnutls28-dev (Closes: #752308) | libgnutls-dev
  * Use pidofproc -p $PIDFILE in our initscript rather than just pidof
    (Closes: #687827, thanks to Lorenz Schori for the fix).
  * Update Standards-Version to 3.9.5 (no changes required).
  * Add documentation for the smtp, qmqp and smtpd modules (Closes: #682800).

 -- Nick Leverton <email address hidden> Thu, 07 Aug 2014 22:57:59 +0100

Changed in nullmailer (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.