Comment 26 for bug 1510266

Revision history for this message
Paul Everitt (paul-agendaless) wrote : Re: [Bug 1510266] Stop trigger Nagios alarm when outgoing mail gets a transient error

Crap, you’re right, it’s on master but I didn’t put that into the egg. :(

—Paul

> On Jan 4, 2016, at 1:02 AM, Carlos de la Guardia <email address hidden> wrote:
>
> Pretty strange. SMTPDataError is a subclass of SMTPResponseException, so
> it should be caught inside the queue code. Are we 100% sure the
> ignore_transient=True part is there?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1510266
>
> Title:
> Stop trigger Nagios alarm when outgoing mail gets a transient error
>
> Status in KARL4:
> In Progress
>
> Bug description:
> We have a bunch of things going on with mailin/mailout that need some
> attention. Several of these issues do a log.error which then causes
> Nagios to tell me KARL is in a critical error state. [wink]
>
> This is the first one. For outgoing mail, gocept's queue is setup to
> do address verification for each outgoing message, with a cache. If
> the remote mail server doesn't answer in time, gocept's mail server
> gives KARL (repoze.sendmail) a warning. That then triggers, I believe,
> a log.error in KARL, which triggers Nagios to think KARL is broken.
>
> It isn't a severe error. repoze.sendmail tries again in 3 hours and
> always is able to deliver. (Unfortunately, that 3h setting is not
> easily configurable, but correct me if I am wrong on that.)
>
> Ideally this would generate a log.warning or something in KARL. We can
> know about it, but not go crazy.
>
> Some extra notes:
>
> - The full traceback is below
>
> - The .ini files that configure OSF are in a separate package
> (osideploy) which Fabric uses to generate
>
>
> Error while sending mail from to x@y.com
>
> Traceback (most recent call last):
> File "/srv/osfkarl/production/72/eggs/repoze.sendmail-2.3-py2.7.egg/repoze/sendmail/queue.py", line 209, in _send_message
> self.mailer.send(fromaddr, toaddrs, message)
> File "/srv/osfkarl/production/72/eggs/repoze.sendmail-2.3-py2.7.egg/repoze/sendmail/mailer.py", line 75, in send
> connection.sendmail(fromaddr, toaddrs, message)
> File "/usr/lib/python2.7/smtplib.py", line 746, in sendmail
> raise SMTPDataError(code, resp)
> SMTPDataError: (450, '4.1.1 id=25378-35 - Temporary MTA failure on relaying, from MTA(smtp:[127.0.0.1]:10025): 450 4.1.1 <x@y.com>: Recipient address rejected: unverified address: Address verification in progress')
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/karl4/+bug/1510266/+subscriptions