[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postfix-users
Subject:    smtp_defer_if_no_mx_address_found
From:       Drew Mazurek <drew () veoci ! com>
Date:       2013-07-31 17:58:54
Message-ID: CAJUV3GzxEc-faJWVeMhiYPL+U9uFfS-zY0EkjufmZrN3uqkyYw () mail ! gmail ! com
[Download RAW message or body]

I have a question about smtp_defer_if_no_mx_address_found.  Our cloud-based
app servers handle application-specific mail that's destined for them, and
these servers aren't static -- new ones are brought up and old ones are
shut down as needed.  A special internal MX record (I'll call it
app-mx.host.com) tracks which servers are currently available to receive
mail.  app-mx.host.com does not have an associated A record because there
is no single machine that represents that domain name.

Now there should never be a case where all servers are dropped from the MX
record, but if it does occur, we'd like our Postfix instances to defer the
message and retry.  I thought smtp_defer_if_no_mx_address_found would
handle it, but testing that out, the message bounces because of the lack of
an A record (or any record for that matter).  In that case, I get the
following log message:

Jul 31 13:28:07 ip-xx-yy-zz-aa postfix/smtp[1608]: 3E9281CA4: to=<
addr@host.com>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.4,
status=bounced (Host or domain name not found. Name service error for name=
app-mx.host.com type=A: Host not found)

Is there a configuration that will do what I want -- if a domain doesn't
exist at all, Postfix will defer rather than bounce?

Thanks,
Drew

[Attachment #3 (text/html)]

<div dir="ltr"><div>I have a question about smtp_defer_if_no_mx_address_found.  Our \
cloud-based app servers handle application-specific mail that&#39;s destined for \
them, and these servers aren&#39;t static -- new ones are brought up and old ones are \
shut down as needed.  A special internal MX record (I&#39;ll call it <a \
href="http://app-mx.host.com">app-mx.host.com</a>) tracks which servers are currently \
available to receive mail.  <a href="http://app-mx.host.com">app-mx.host.com</a> does \
not have an associated A record because there is no single machine that represents \
that domain name.</div> <div><br></div><div>Now there should never be a case where \
all servers are dropped from the MX record, but if it does occur, we&#39;d like our \
Postfix instances to defer the message and retry.  I thought \
smtp_defer_if_no_mx_address_found would handle it, but testing that out, the message \
bounces because of the lack of an A record (or any record for that matter).  In that \
case, I get the following log message:</div> <div><br></div><div>Jul 31 13:28:07 \
ip-xx-yy-zz-aa postfix/smtp[1608]: 3E9281CA4: to=&lt;<a \
href="mailto:addr@host.com">addr@host.com</a>&gt;, relay=none, delay=0.01, \
delays=0.01/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name \
service error for name=<a href="http://app-mx.host.com">app-mx.host.com</a> type=A: \
Host not found)</div> <div><br></div><div>Is there a configuration that will do what \
I want -- if a domain doesn&#39;t exist at all, Postfix will defer rather than \
bounce?</div><div><br></div><div>Thanks,</div><div>Drew</div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic