On Tue, 12 Jan 1999, Keith Duthie wrote:
> Hi, I'd like to get pine to set the From: header to my real email
> address, but although I can assign a different domain name, it insists
> upon using my username. I've just about given up hope of getting a
> solution involving pine, but if anyone could tell me how to fix my from
> header (either in pine, or in sendmail, or wherever) I'd be _very_
> relieved. My only other alternatives otherwise are using a different
> mail program, or manually editing the message before sendmail gets it.
>
> Thanks in advance,
> Keith Duthie
In pine you can use 'customized-hdrs' to add header entries. Then you
should add 'Reply-To:' in your header. This would be the best solution in
so far that you don't cheat by changing the originator address.
For PPP-machines this would suck big time though. Many hosts on the net
have the policy to check the sender address especially mailinglist
servers. The check will fail as your local address doesn't have a DNS
entry. The transfer would then be denied.
So if you use PPP with dynamic address you should really rewrite the From
line. The disadvantage is that locally sent mail will first be sent to
your ISP and then return on the next mail fetch. I don't have a solution
for this yet.
To rewrite the From line I suggest using sendmail's genericstable feature
which is perfectly right for this purpose. In your sendmail m4 config file
add the following lines:
FEATURE(always_add_domain)
FEATURE(masquerade_entire_domain)
GENERICS_DOMAIN(wondernet.local)
GENERICS_DOMAIN(spiral.wondernet.local)
FEATURE(genericstable, hash /etc/genericstable)
where wondernet should be changed to your local network name. I had to add
the spiral.wondernet.local entry as masquerade_entire_domain seems to have
no effect though it is said in the documents that it would have. Does
anybody know about this problem or what I do wrong?
Don't forget to compile your m4 config file and restart sendmail as long
as you don't run it from /etc/inetd.conf
--
Raoul Boenisch, Winkhauser Talweg 165, 45473 Muelheim an der Ruhr, Germany
homepage: http://www.raoul.home.pages.de/ home phone: +49 208 764257
Reply-To: [EMAIL PROTECTED]