
17th September 2008, 18:26
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

17th September 2008, 18:42
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

18th September 2008, 18:59
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
You can try this:
Code:
unknown_address_reject_code = 554
unknown_hostname_reject_code = 554
|

18th September 2008, 20:03
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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))
|

19th September 2008, 16:44
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

19th September 2008, 18:18
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
I'd say yes.
|

19th September 2008, 18:50
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

29th September 2008, 23:01
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
bump
So does anyone have an argument for/against having this sort of bounce be a 450 vs 550 type?
|

24th October 2008, 20:38
|
|
Junior Member
|
|
Join Date: Oct 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
postfix - how to get "host not found" to NOT retry for 5 days
Quote:
Originally Posted by falko
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.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 16:00.
|
Recent comments
13 hours 36 min ago
18 hours 35 min ago
20 hours 1 min ago
20 hours 54 min ago
22 hours 38 min ago
1 day 3 hours ago
1 day 3 hours ago
1 day 6 hours ago
1 day 19 hours ago
1 day 20 hours ago