Article View: news.software.readers
Article #31831Pre-FAQ on email addressing (Was: Re: "Tagging" From and Reply headers
From: Eli the Bearded
Date: Fri, 28 Feb 1997 00:00
Date: Fri, 28 Feb 1997 00:00
220 lines
9498 bytes
9498 bytes
This should become a FAQ, but I don't have all the answers yet.
Note crossposts and followups. If you can add information PLEASE DO.
A. Deckers <Alain.Deckers@man.ac.uk> wrote:
> rv10291@goodnet.com wrote:
>Since you're using slrn, you can easily tag the from and reply-to headers
>in your posts. Just put the following in your .slrnrc file:
Slurped up into my someday-will-be-a-FAQ.
>However, in order to receive mail addressed to the tagged addresses,
>you'll have to set up the appropriate aliases on your system. If you're
Aliases are not always needed.
>A "quick and dirty" and considerably easier way to do this would be to
>capitalise the addrress you include in your posts differently from the
>one you normally use in email, ie "From: RV10291@goodnet.com" in posts,
>and "From: rv10291@goodnet.com" in email, and filter on the
>capitalisation. However, there isn't any guarantee that the
>capitalisation will be respected by all intermediary systems between you
>and the person replying to your posts, so that might not always work.
Section 3.4.7 of RFC 822 says that case must be preserved in the
local-part of an email address. I don't know how compliant various
systems are about this, however.
The Pre-FAQ can now be obtained at
<URL:http://www.netusa.net/~eli/faqs/addressing.html>
Questions:
1) What?
2) Why?
3) With qmail, how?
4) With sendmail, how?
5) With other MTAs, how?
6) Using them in trn, how?
7) Using them in slrn, how?
8) Using them elsewhere, how?
9) Any other suggestions?
Questions and answers:
------
1) What?
Mail transfer agents (MTAs) usually deliver mail to a single location
for each user on the system. There are ways of having more than. The
simplest conceptually is a mail alias. Aliases affect the whole
machine and generally can only be set up by administrators. This is
not convient for anyone involved. So some MTAs have special ways of
creating user level aliases. To keep these from interfereing with
other aspects of mail on the machine, these addresses are the username
with a piece of punctuation and a boxname appended.
------
2) Why?
Traditionally it has been useful for special sorting of mail, eg
casanova+anna@love.org, casanova+beth@love.org, casanova+cathy@love.org,
etc. so that each of Anna, Beth, and Cathy send mail to a
particular address and it gets treated specially. These days it is
becoming popular as a way of providing special filtering (such as with
procmail) on email addresses exposed to insecure channels such as
Usenet.
------
3) With qmail, how?
Dave Sill <de5@sws5.ctd.ornl.gov> told me that with qmail all
you have to do is "touch ~/.qmail-foo" to indicate that you
want to recieve mail at <guckes-foo@math.fu-berlin.de>. Or you
can put the name of a mailbox in the file and mail will be
delivered there. If you don't have the .qmail-foo file mail
will be bounced.
This is a wholely user level configuration; it creates boxes of
the form <username-boxname@hostname.tld>.
------
4) With sendmail, how?
Phil Edwards <pedwards@cs.wright.edu talked about how to do it
with sendmail. Quoting him, becuase it doesn't paraphrase well,
"The usual setup is in ruleset 5, consisting of a couple lines
like
R$+ + * $#local $@ $&h $: $1
R$+ + $* $#local $@ $2 $: $1 + *
with another one or two later on in the same ruleset. (I'm
doing this from memory; it'll probably differ from your .cf.)
From there, it's up to your local delivery program." He suggests
using procmail as the local delivery program.
This is an admin level configuration; it creates boxes of the
form <username+boxname@hostname.tld>. Once sendmail is configured
usage of the mailboxes is user controlled.
------
5) With other MTAs, how?
Nobody responded with smail, exim, etc solutions.
------
6) Using them in trn, how?
Read the man page for your copy of trn. Near the end there is an
ENVIRNOMENT section. In this section there is a variable NEWSHEADER
described. You will want to change the value of that to include
a From: line with you new address. Here are the three generally
accepted formats for a From: line.
From: localpart@fully.qualified.domain.name (Name Field)
From: Name Field <localpart@fully.qualified.domain.name>
From: localpart@fully.qualified.domain.name
localpart will be your username+box; the fully qualified domain
name is the full name of a machine you receive mail at; the name
field has what ever "full name" you want to use. See the other
suggestions question for more information.
Note that newer versions of trn can be controlled by a user
level configuration file to do this stuff, so you don't need
to clutter the environment. Read your documentation.
------
7) Using them in slrn, how?
Add to your .slrnrc:
username "mylogin-boxname"
With newer versions of slrn, you can set them per-group with
the article_mode_hook in the .slrn.sl file.
------
8) Using them elsewhere, how?
Well, if you use sendmail directly to send mail (as I often do)
it is not so hard. Otherwise, I am not sure. Netscape and other
programs which ask you to provide your own address will doubtlessly
accept these addresses readily.
------
9) Any other suggestions?
RFC822 is a long and complex document which, among other things,
specifies how email addresses can be formatted. News and SMTP
mail use RFC822 addresses. If you change your address to one that
is equivilent but written differently, you may be able to use
procmail or another filtering tool process them.
In particular the case sensitivity (upper vs. lower) of the
localpart (that which comes before the @ reading left to right)
is at the option of the destination machine. So if your machine
is case insensitive for those addresses, you can change the
case of your name and all other mailers should preserve that
capitalization change.
Many mailers will preserve any "comments" included in an email
address. RFC822 defines a comment:
comment = "(" *(ctext / quoted-pair / comment) ")"
ctext = <any CHAR excluding "(", ")", "\" & CR, & including
linear-white-space>
quoted-pair = "\" CHAR ; may quote any char
linear-white-space = 1*([CRLF] LWSP-char) ; semantics = SPACE
; CRLF => folding
This is not very legible to the typical human. What it means is a
comment may contain any character, but some [ ( ) \ CR ] must be
backslash escaped. Mostly. There is also that bit that comments
may contain other comments; this will preclude using regular
expressions to match addresses. Basically this translates to
mean that your parenthesis must match in the normal manner or
else you should backslash escape them. So some valid comments
are
(hi-ya @pril here)
(This is \\//ictor)
(Let's (recurse (and (again (and (again (and (I'm (bored (now))))))))))
(\) whee)
And some invalid comments would be
(\ / i v a !)
()ops)
(Spiff()
Now, if that were not ugly enough, RFC822 says that you can have
whitespace or comments by any delimiter. The delimiters are
( ) < > @ , ; : \ " . [ ]
So the following are all legal and equivilent addresses:
< eli @ netusa . net >
<eli(Elijah)@netusa.net>
< eli(jah)@netusa(not associated with usa.net).net >
(Elijah) <eli@netusa.net>
< eli @ (the raw IP for mail (and thus subject to change)) [204.141.0.25] >
<eli (Pogonatus (latin for <the bearded>) @ (qz (pronounced (queasy) ) \
.little-neck (I did not want that, but RFC1480 required it) .ny (New \
F@!#$ York) .us (USA) or ) netusa (Located on Long Island) . net> (Elijah)
You might find that a lot of mailers are not RFC822 compliant trying
some of those out, especially that last one. Most mailers seem happy
to accept and preserve addresses like the second one from the top, so
that may be a good way to modify your address for filtering purposes.
Technical Details
Message-ID:
<5f5fdm$h63$1@news.netusa.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.misc.mbox.zip!not-for-mailReferences:
<c1.01.2F9rr8$063@pentium.goodnet.com> <slrn5hatbe.fgb.Alain.Deckers@nessie.mcc.ac.uk>Show Full Headers
Complete Article Headers
Message-ID: <5f5fdm$h63$1@news.netusa.net> Subject: Pre-FAQ on email addressing (Was: Re: "Tagging" From and Reply headers Date: Fri, 28 Feb 1997 00:00:00 +0000 From: Eli the Bearded <usenet-tag@qz.little-neck.ny.us> References: <c1.01.2F9rr8$063@pentium.goodnet.com> <slrn5hatbe.fgb.Alain.Deckers@nessie.mcc.ac.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.misc.mbox.zip!not-for-mail X-Deja-AN: 221974951 X-Save-Project-Gutenberg: <URL:http://www.promo.net/pg/nl/pgny_nov96.html> Followup-To: news.admin.net-abuse.email,comp.mail.misc,news.software.readers Summary: How to add submailboxes to your email address. X-From-Notes: This is sent from a valid but tagged return address. Failure X-get-a-newsreader: <blink> Organization: Some absurd concept to include an "Re: " in the subject may cause reply mail to bounce. <URL: mailto:email-policy@qz.little-neck.ny.us> -- autoresponse X-Acceptable-Email-Policy: for rules about sending mail to this account see: Newsgroups: news.admin.net-abuse.email,comp.mail.misc,comp.mail.sendmail,comp.mail.smail,comp.mail.zmail,news.software.readers,alt.fan.e-t-b X-US-Congress: Moronic Fucks.