postfix - how to get "domain not found" to NOT retry for 5 days

Discussion in 'Server Operation' started by CNBarnes, Sep 17, 2008.

  1. CNBarnes

    CNBarnes New Member

    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 [email protected].

    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
     
  2. CNBarnes

    CNBarnes New Member

    Followup to my own message

    The log file shows this:

    Sep 17 11:38:29 vmmail postfix/smtp[5799]: 60ABD305DA: to=<[email protected]>, 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 <[email protected]>: 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.
     
  3. falko

    falko Super Moderator Howtoforge Staff

    You can try this:

    Code:
    unknown_address_reject_code = 554
    unknown_hostname_reject_code = 554
     
  4. CNBarnes

    CNBarnes New Member

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


    Sep 18 12:44:55 vmmail postfix/smtp[7620]: D1FD530324: to=<[email protected]>, 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 <[email protected]>: Recipient address rejected: Domain not found (in reply to RCPT TO command))
     
  5. CNBarnes

    CNBarnes New Member

    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?
     
  6. falko

    falko Super Moderator Howtoforge Staff

    I'd say yes. :)
     
  7. CNBarnes

    CNBarnes New Member

    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:

    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?
     
  8. CNBarnes

    CNBarnes New Member

    bump

    So does anyone have an argument for/against having this sort of bounce be a 450 vs 550 type?
     
  9. Bill_KC

    Bill_KC New Member

    postfix - how to get "host not found" to NOT retry for 5 days

    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=<[email protected]>, 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.
     

Share This Page