9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Gabriel Diaz Lopez de la Llave <gabidiaz@ipsoluciones.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] rewriting From:
Date: Thu,  3 Apr 2003 17:55:09 +0200	[thread overview]
Message-ID: <1049385309.1074.58.camel@perro> (raw)
In-Reply-To: <955b04dd781fc8ef726c1f33aef706db@plan9.bell-labs.com>

Hello,


I hope the following lines have some utility:

RFC-821 says that CNAME is supposed to be rewritten but

RFC-1123 says:

 5.2.2  Canonicalization: RFC-821 Section 3.1

  The domain names that a Sender-SMTP sends in MAIL and RCPT
  commands MUST have been  "canonicalized," i.e., they must be
  fully-qualified principal names or domain literals, not nicknames
  or domain abbreviations.  A canonicalized name either
  identifies a host directly or is an MX name; it cannot be a
  CNAME.

I take a look to rfc 2476 "message submission" and says

"
8.7.  Resolve Aliases

   The MSA MAY resolve aliases (CNAME records) for domain names, in the
   envelope and optionally in address fields of the header, subject to
   local policy.

   NOTE:  Unconditionally resolving aliases could be harmful.  For
   example, if www.example.net and ftp.example.net are both aliases for
   mail.example.net, rewriting them could lose useful information.

8.8.  Header Rewriting

   The MSA MAY rewrite local parts and/or domains, in the envelope and
   optionally in address fields of the header, according to local
   policy.  For example, a site may prefer to rewrite 'JRU' as '
   J.Random.User' in order to hide logon names, and/or to rewrite '
   squeeky.sales.example.net' as 'zyx.example.net' to hide machine names
   and make it easier to move users.

   However, only addresses, local-parts, or domains which match specific
   local MSA configuration settings should be altered.  It would be very
   dangerous for the MSA to apply data-independent rewriting rules, such
   as always deleting the first element of a domain name.  So, for
   example, a rule which strips the left-most element of the domain if
   the complete domain matches '*.foo.example.net' would be acceptable

"
On Thu, 2003-04-03 at 18:03, David Presotto wrote:
> I've noticed over the years that if the domain name in a From: address has
> a CNAME, then it gets rewritten by most sendmails.  Anyone know if there
> is an RFC that covers the subject?
>

Gabriel
-



  reply	other threads:[~2003-04-03 15:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-03 16:03 David Presotto
2003-04-03 15:55 ` Gabriel Diaz Lopez de la Llave [this message]
2003-04-03 17:07   ` David Presotto
2003-04-03 17:09   ` Lyndon Nerenberg {VE6BBM}
2003-04-03 22:08     ` Geoff Collyer
2003-04-03 16:52 ` Lyndon Nerenberg {VE6BBM}
2003-04-04 13:25 ` Martin Neitzel
2003-04-04 14:01   ` David Presotto
2003-04-04 14:10     ` Lucio De Re
2003-04-04 14:03   ` David Presotto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1049385309.1074.58.camel@perro \
    --to=gabidiaz@ipsoluciones.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).