> On 10/03/2020 17:16, Wietse Venema wrote: >> This is a problem with your DNS resolver WHICH IS NOT PART OF >> POSTFIX. You need to use a better DNS resolver. >> >> With a properly functioning resolver: >> >> $ host -t mx www.postfix.org <http://www.postfix.org/> >> www.postfix.org <http://www.postfix.org/> has no MX record >> >> Wietse > > You didn't understood my issue, you didn't read enough from my message or I > didn't was clear enough. > It's not a MY dns issue, in fact it's not a really dns issue. Again: > 1. I want to send mail to someb...@domain.com <mailto:someb...@domain.com> > 2. From mistake, I send message to someb...@doman.com > <mailto:someb...@doman.com> (note a missing 'i') > 3. doman.com exists, BUT it doesn't have MX record defined > 4. my message stays in queue until maximal_queue_lifetime expires and > postfix try to resend it > 5. I DON'T receive any warning about that error until maximal_queue_lifetime > expires (implicitly 5 days), and THIS is the real problem, I don't know that > my message didn't arrive at destination because I've accidentally missed a > letter from destination domain name.
In case there is no MX record the mail is delivered to the domain's ip (a/aaaa record). It's up to the domain's administrator to set a NULL MX to prevent that, but it's quite new: https://tools.ietf.org/html/rfc7505 What postfix can do: delay_warning_time (default: 0h) The time after which the sender receives a copy of the message headers of mail that is still queued bounce_queue_lifetime = 4h maximal_queue_lifetime = 1d ... man 5 postconf Best regards Gerald