On 2006-03-04 11:22:23 -0500, Charlie Brady wrote: > > On Sat, 4 Mar 2006, Hanno Hecker wrote: > > >- should Qpsmtpd::Address accept mails with a trailing "."? Like > > $ host -t MX perl.org. > > perl.org mail is handled by 5 mx.develooper.com. > > Why shouldn't it? That's a valid DNS name, as you've shown.
Yes, but it's not allowed by the syntax in RFC 2821/2822. That makes a
bit of sense: The "." at the end of the domain name marks the domain
name as a FQDN, so "info." ist always the top level domain "info", not
the subdomain "info" of the domain "wsr.ac.at.". Since RFC 2821 mandates
that FQDNs must always be used, the dot at the end is superfluous.
That said, the definitions of mail-addresses in RFC 2821/2 are somewhat
strange: The dot at the end is harmless and should probably be allowed
for compatibility with other protocols which use DNS names. One of these
RFCs allows single-component domain names while the other requires at
least two components. Both allow control characters in the local part
...
When I wrote Qpsmtpd::Address I tried to accept exactly the addresses
allowed by RFC 2821. Sometimes I think it would be better to be somewhat
more lenient here and add stricter checks as plugins (for example, I see
little reason to allow control characters in email addresses).
hp
--
_ | Peter J. Holzer | Ich sehe nun ein, dass Computer wenig
|_|_) | Sysadmin WSR | geeignet sind, um sich was zu merken.
| | | [EMAIL PROTECTED] |
__/ | http://www.hjp.at/ | -- Holger Lembke in dan-am
pgpviKfDJs0jQ.pgp
Description: PGP signature
