Sometime on Aug 20, S. Krishnan assembled some asciibets to say:
But if you're doing the header, wouldn't your mails show up on the recipient's system as being from the vsnl domain? Maybe I'm missing something here, but I believe that the "From" display on the recipient's client is taken from the header. Correct me if I'm
Absolutely correct. I'm rewriting the header, so my mail header shows:
From: Philip S Tellis philip.tellis@iname.com
for external mails, and
From: Philip S Tellis philip@tae.tellis.home
for local mails.
I'm also rewriting my envelope, so that I get:
1. Return-Path tellis@vsnl.net 2. my sendmail talks to vsnl's smtp server like this: HELO tellis.vsnl.net MAIL FROM: tellis@vsnl.net
What I'm currently working on is this:
If a mail is sent to both a local user and a remote user, then the mail sent to the remote user will have the local user's alias in the header instead of the local address.
eg: I send a mail to philip@konark.ncst.ernet.in, philip@tae.tellis.home
Mail received at konark:
From: philip.tellis@iname.com <--- rewritten To: philip@konark.ncst.ernet.in, philip.tellis@iname.com ^^^^^^^^^^^^^^^^^^---rewritten
Mail received at tae.tellis.home:
From: philip@tae.tellis.home To: philip@konark.ncst.ernet.in, philip@tae.tellis.home
The hardest part is finding documentation. I believe that it is all outlined in the Bat Book, but nowhere online are such rules listed. I don't have access to the Bat Book right now, but I think I can manage without it. I've already understood about 80% of sendmail.cf just by trying different settings and seeing what happens.
It's what we learnt in science class, and I'm afraid too many of us have forgotten. Don't trust anything you read. Always experiment to verify its veracity. And when there is nothing to read, experiment to find something to write.
Philip