Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th September 2008, 18:26
CNBarnes CNBarnes is offline
Junior Member
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to CNBarnes Send a message via AIM to CNBarnes Send a message via MSN to CNBarnes Send a message via Yahoo to CNBarnes
Question postfix - how to get "domain not found" to NOT retry for 5 days

I have poured over the postfix man pages, but can't figure out the correct setting for the postfix/main.cf file.

Problem: one of my users sends email to user@invaliddomain.com.

Rather than rejecting the message (bouncing it back) immediately, postfix tries for 5 days to deliver to the non-existant domain, then bounces. I am sure this is a simple 1 liner, but danged if I can find it...

TIA
Reply With Quote
Sponsored Links
  #2  
Old 17th September 2008, 18:42
CNBarnes CNBarnes is offline
Junior Member
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to CNBarnes Send a message via AIM to CNBarnes Send a message via MSN to CNBarnes Send a message via Yahoo to CNBarnes
Default

Followup to my own message

The log file shows this:

Sep 17 11:38:29 vmmail postfix/smtp[5799]: 60ABD305DA: to=<cbarnes@physics.tam.edu>, relay=smtp-relay.tamu.edu[165.91.22.120]:25, delay=0.04, delays=0.02/0/0.01/0.01, dsn=4.1.2, status=deferred (host smtp-relay.tamu.edu[165.91.22.120] said: 450 4.1.2 <cbarnes@physics.tam.edu>: Recipient address rejected: Domain not found (in reply to RCPT TO command))


I suspect changing the value of this error condition to 550 is what I want to do, but I am not sure what the error condition "name" is.
Reply With Quote
  #3  
Old 18th September 2008, 18:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You can try this:

Code:
unknown_address_reject_code = 554
unknown_hostname_reject_code = 554
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 18th September 2008, 20:03
CNBarnes CNBarnes is offline
Junior Member
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to CNBarnes Send a message via AIM to CNBarnes Send a message via MSN to CNBarnes Send a message via Yahoo to CNBarnes
Default

I put it in.. .the logs still show a 450.


Sep 18 12:44:55 vmmail postfix/smtp[7620]: D1FD530324: to=<cbarnes@physics.tam.edu>, relay=smtp-relay.tamu.edu[165.91.22.120]:25, delay=88614, delays=88614/0/0.01/0.04, dsn=4.1.2, status=deferred (host smtp-relay.tamu.edu[165.91.22.120] said: 450 4.1.2 <cbarnes@physics.tam.edu>: Recipient address rejected: Domain not found (in reply to RCPT TO command))
Reply With Quote
  #5  
Old 19th September 2008, 16:44
CNBarnes CNBarnes is offline
Junior Member
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to CNBarnes Send a message via AIM to CNBarnes Send a message via MSN to CNBarnes Send a message via Yahoo to CNBarnes
Default

Hmm. It appears that the 450 message is not coming from my server (physics.tamu.edu), but instead smtp-relay.tamu.edu (the server relaying for us).

I assume changing the error condition setting on that server is what I need to do?
Reply With Quote
  #6  
Old 19th September 2008, 18:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I'd say yes.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 19th September 2008, 18:50
CNBarnes CNBarnes is offline
Junior Member
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to CNBarnes Send a message via AIM to CNBarnes Send a message via MSN to CNBarnes Send a message via Yahoo to CNBarnes
Default

I talked to the sysadmins of the guys who run the other server, and it is indeed their server that is generating the 450.

Their response was:
Quote:
Domain lookup failures are transient (ie., 400-level) by RFC. If, for instance, your DNS cache was down, your network was down, or the remote site was having DNS problems or moving their domain, you would want the mail to queue on the sending side until the problem was resolved.

There's (virtually) no way for the SMTP server to know if the DNS failure is due to network issues or a typo. So it will queue until the name resolves or the TTL times out (which I think is four days for us).

Honestly, I can see their argument - some DNS lookups will be transient (eg. simply lost contact with your local DNS server) where you don't want a 550 level failure response. Otoh, taking 5 days for a domain lookup to fail on a domain that does not exist is also clearly a problem.


So... what is the solution to this dilemma?
Reply With Quote
  #8  
Old 29th September 2008, 23:01
CNBarnes CNBarnes is offline
Junior Member
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to CNBarnes Send a message via AIM to CNBarnes Send a message via MSN to CNBarnes Send a message via Yahoo to CNBarnes
Default

bump

So does anyone have an argument for/against having this sort of bounce be a 450 vs 550 type?
Reply With Quote
  #9  
Old 24th October 2008, 20:38
Bill_KC Bill_KC is offline
Junior Member
 
Join Date: Oct 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default postfix - how to get "host not found" to NOT retry for 5 days

Quote:
Originally Posted by falko View Post
You can try this:

Code:
unknown_address_reject_code = 554
unknown_hostname_reject_code = 554
I have a exact same situation with the exception that I do not have an error code 450. My mail.log entry looks like this:

Oct 24 13:53:09 vegas postfix/smtp[26081]: 27DC750870C: to=<gmartin@sysxxxxx.com>, relay=none, delay=90919, delays=90898/0.68/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=sysxxxxx.com type=MX: Host not found, try again)

What entry can i include in my main.cf so that mails are sent back to the sender if the host or domain/host can't be found and not linger in the retry queue for 5 days?

Thanks Bill KC.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Mail System Error - Returned Mail tristanlee85 General 16 16th March 2008 09:40
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 20:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.