Koozali.org: home of the SME Server

fetchmail SMTP error 450 Temporary address resolution

Offline ReetP

  • *
  • 3,722
  • +5/-0
fetchmail SMTP error 450 Temporary address resolution
« on: July 13, 2017, 03:19:44 PM »
Posting this here as I don't believe it is a bug but a misconfiguration somewhere.

A friend has dungog-multipop running on his v9 server. I haven't changed it as it has worked reliably and I really can't be bothered to setup the accounts all over again ;-)

It seems to get stuck on collecting a mail from a mailbox:

 pop.outlook.com key fingerprint: F0:A8:4F:20:BD:17:72:05:FE:8E:73:51:61:2B:70:FE
 POP3< +OK The Microsoft Exchange POP3 service is ready. [RABCADYAUABSADAANQAwADEAQwBBADAAMAAwADMALgBlAHUAcgBwAHIAZAAwADUALgBwAHIAbwBkAC4AbwB1AHQAbABvAG8AawAuAGMAbwBtAA==]
 POP3> USER peter@localdomain.net
 POP3< +OK
 POP3> PASS *
 POP3< +OK User successfully logged on.
 POP3> STAT
 POP3< +OK 1 98886
 1 message for peter@localdomain.net at pop.outlook.com (98886 octets).
 POP3> LIST 1
 POP3< +OK 1 98886
 POP3> RETR 1
 POP3< +OK
 reading message peter@localdomain.net@pop.outlook.com:1 of 1 (98886 octets)Trying to connect to 127.0.0.200/25...connected.
 SMTP< 220 linux.localdomain.net ESMTP
 SMTP> EHLO linux.localdomain.net
 SMTP< 250-localdomain.net Hi Unknown [127.0.0.200]
 SMTP< 250-PIPELINING
 SMTP< 250-8BITMIME
 SMTP< 250-SIZE 15000000
 SMTP< 250 STARTTLS
 SMTP> MAIL FROM:<bounce-423_HTML-342380096-2389149-7204919-2116@bounce.email.vax.co.uk> SIZE=98886
 SMTP< 450 Temporary address resolution failure (#4.4.3)
 SMTP error: 450 Temporary address resolution failure (#4.4.3)
 SMTP> RSET
 SMTP< 250 OK
  not flushed
 POP3> QUIT

Here is the relevant part of /etc/fetchmail :

# multi-drop configuration; fetchmail retrieves all mail from a remote POP mailbox:

/usr/bin/fetchmail --syslog --verbose --auth password --fetchmailrc - <<EOF

set postmaster "postmaster@localdomain.net"
set bouncemail
set properties ""

poll pop.outlook.com
envelope "Received"
    port 995
    protocol POP3
    no dns
    localdomains localdomain.net peterhooper.org.uk
       username "peter@localdomain.net" password "somepass" is peter here
           smtphost 127.0.0.200/25
           smtpaddress localdomain.net
           ssl
           fetchall
           forcecr


I am thinking it is a mail with some bad details (it will be spam) but I can't remember how to login to his ISP webmail to clear it.

Any ideas on how I can force it to be retrieved?

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: fetchmail SMTP error 450 Temporary address resolution
« Reply #1 on: July 14, 2017, 09:13:24 PM »
I think this might be easier to work around at the qpsmtpd level. Work out why qpsmtpd is giving the 450 response. Get qpstpd to accept the message, then delete it. I've heard you are good with whitelists. :-)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: fetchmail SMTP error 450 Temporary address resolution
« Reply #2 on: July 14, 2017, 10:56:15 PM »
FWIW, I get a NXDOMAIN response if I lookup bounce.email.vax.co.uk.

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: fetchmail SMTP error 450 Temporary address resolution
« Reply #3 on: July 14, 2017, 11:15:50 PM »
Ahhh - OK.

So fetchmail pushes it to  qpsmtpd, and it is qpsmtpd that is throwing the error - sorry. Never did understand how this works :-)

So I could just whitelist the domain, let it pass, and then dump the listing ?
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: fetchmail SMTP error 450 Temporary address resolution
« Reply #4 on: July 15, 2017, 12:17:43 AM »
So I could just whitelist the domain, let it pass, and then dump the listing ?

You could try that. I don't know whether that will get past the attempt to resolve the domain or not. Like I said, I think you know more about whitelisting than I do!

Or you could blacklist the domain, so that you get a 5xx response. I don't know what fetchmail will do then - but you will find out!
« Last Edit: July 15, 2017, 12:19:58 AM by CharlieBrady »

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: fetchmail SMTP error 450 Temporary address resolution
« Reply #5 on: July 15, 2017, 12:42:26 AM »
:-) Thanks for that Charlie.

Actually I'm not really up to speed on the new whitelisting. Must try harder.

I'll give it a whirl and see what happens
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation