Dnia 17.01.2020 o godz. 13:17:07 Matus UHLAR - fantomas pisze:
> 
> The nullmx (IN MX .) is one of approaches but must be supported by
> mailservers (luckily it is supported by postfix)
> 
> but I find it cleaner to only accept mail for domains with MX than for
> everyone with A records.

I think the exactly opposite :) NullMX is for me much cleaner indication
that domain does not accept mail than lack of MX record. And most important
- it does not break anything, only adds a feature. Your preferred method
breaks the current mail handling.
NullMX seems the way to go and should be more widely adopted.

> >MX record is only a nice shortcut to avoid specifying the full
> >domain name of the mailserver in the e-mail address, and instead use only the
> >mailserver's domain part. Instead of "u...@mailserver.domain.com" you type
> >only "u...@domain.com" - that's what MX record is for. But
> >"u...@mailserver.domain.com" is still perfectly valid and mail to such
> >address *has to be* be delivered.
> 
> It might be refused, but delivery will still be tried, which leads to our
> problem (this thread).

A possible solution may be also to differentiate handling of queued messages
with regard to whether sending server can't connect to the receiving server
at all (eg. timeout, server is not reachable) or it is able to connect, but
port 25 is closed (ie. no mail service is running). In the latter case, the
behaviour could be dependent on number of messages to the same domain
staying in the queue. If there are more than certain number of them,
further messages to the same domain are outright rejected without staying in
the queue.

> >I was recently forced to add a ridiculous MX record to my domain, pointing
> >back to the same name (eg. "rafa.eu.org MX 10 rafa.eu.org")
> 
> I've seen recommendation to do this (just for sure) long ago.

Looks strange and superfluous anyway.
-- 
Regards,
   Jaroslaw Rafa
   r...@rafa.eu.org
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."

Reply via email to