I'm awakening an old thread on mail aliasing. Regulars will remember a
time when I had trouble sending mail because my machine had no reverse dns
entry. Setting the smart host didn't work because I was behind a proxy
which didn't have a reverse dns entry either.
To solve this problem, I wrote a little perl program that would rewrite
the from lines in mails replacing invalid entries with valid entries of my
choice. My program does not handle every single scenario though (mail
bouncing is one), so I had to look for another.
Rohit suggested using Roles in pine, but that didn't help cause there were
still several invalid domains in the header causing vsnl to reject my
mails.
Enough background already...
I've just found another solution - with sendmail. This works well.
sendmail has a mail masquerading option. You've got to add lines like
this to your sendmail.cf:
# Masquerading rules
S1
Rphilip<@tellis.localdomain> $@ philip.tellis < @ iname.com>
Rphilip<@tellis.localdomain.> $@ philip.tellis < @ iname.com.>
Rtellis<@tellis.localdomain> $@ tellis < @ giasbma.vsnl.net.in>
Rtellis<@tellis.localdomain.> $@ tellis < @ giasbma.vsnl.net.in.>
just list all the aliases in this way
Now I don't understand why there are two entries for each - one with the
terminating . (signifying a root entry) and one without. Maybe it has to
do with finding the domain correctly. Any ideas?
Philip
--
The Abrams' Principle:
The shortest distance between two points is off the wall.
To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list
button and fill the appropriate information
and submit. For any other queries contact the ML maintener