SMTP sender/recipients refused

Bug #1652183 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL4
Fix Released
Medium
Carlos de la Guardia

Bug Description

I did an update tonight. Outgoing mail from osfkarl10 started to give two flavors of errors, one for senders and one for recipients:

SMTPRecipientsRefused: {'<email address hidden>': (550, '5.1.0 <email address hidden>: Sender address rejected: User unknown in local recipient table')}

SMTPRecipientsRefused: {'<email address hidden>': (550, '5.1.0 <email address hidden>: Sender address rejected: User unknown in local recipient table')}

I turned off supervisor in the current egg and moved back to the previous buildout, then restarted supervisor. Things went back to normal.

I don't have an explanation at all. Diff doesn't show anything different for email between the karl.ini or postoffice.ini in those two files. I'm using the same repoze.sendmail. I don't know if we had hand-edited the egg in some way.

The email files that couldn't be delivered are in osfkarl10:production/88/var/mail_queue/new. Looking at it, I could see that X-Actually-From was saying that it was a user on the local box.

Changed in karl4:
status: New → In Progress
Revision history for this message
Carlos de la Guardia (cguardia) wrote :

The only hand editing I did on the egg was for fixing the request logger problem. That fix is on master too, so we can just get rid of the dirty egg.

Revision history for this message
Carlos de la Guardia (cguardia) wrote :

We haven't changed anything on email recently, have we? This never went past the discussion stage:

https://bugs.launchpad.net/karl4/+bug/1650310

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Let's move this to January.

Changed in karl4:
importance: High → Medium
milestone: 026 → 027
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

This is getting pretty urgent. I spent the last few hours investigating. Here's something I saw.

In production, the latest update works fine for email that is generated from a web form. Meaning, in the browser, you go to a blog and make a post. It goes to osfkarl11 or 12, mailout runs, and it generates an outgoing mail with no problem.

But if you do email-in, it fails. Everything works on the Dec 4 update. But anything after that, fails. mailin picks up the incoming mail, generates an outgoing mail. That outgoing mail is rejected by postoffice with the above error.

I've narrowed it down to this. osfkarl11 (meaning web form) generates:

Reply-to: "A Time for Testing: Again"
 <email address hidden>
X-Actually-From: =?utf-8?q?karl=40osfkarl11=2Egocept=2Enet?=

...while osfkarl10 (meaning, mailin) generates:

Reply-to: "A Time for Testing: Again"
 <email address hidden>
X-Actually-From:

I still can't find anything

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Turned out to be line 43/44 in karl/utilities/mailer.py in this commit:

https://github.com/karlproject/karl/commit/98d7f48bc55c0156511af6157689b67ff5b96a59

Meaning, changing from this:

self.mfrom = settings.get('envelope_from_addr', 'karl@%s' % getfqdn())

...back to the previous:

self.mfrom = settings.get('envelope_from_addr', None)

...fixed it.

Changed in karl4:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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