On 26-Nov-98 Lenz Grimmer wrote:
On Thu, 26 Nov 1998, Eric Lee Green wrote:
Part 3: Questions. 4) How can I make mail from "eric@england.local.net" be re-written as being mail from "el_green@bellsouth.net"? ("local.net" is my home network and "bellsouth.net" is my ISP).
Not sure about this one, but I think you have to put this in the Variable FROM_HEADER in /etc/rc.config.
"FROM_HEADER" is new to me -- and it would depend on the mail software knowing what to do with it. "man sendmail" does not talk about it. Maybe "smail" knows about it. One solution is to use an MUA (Mail User Agent, i.e. your "email program") which allows you to configure an arbitrary "From:" header, possibly also a "Reply To:" header, to read "el_green@bellsouth.net". XFMail makes this easy. I'm not in touch with recent pine, elm, mutt etc mailers so don't now what they allow in this respect. Your outgoing mail may still, however, retain traces somewhere in its headers which identify it as really coming from "eric@england.local.net", and some people's mailers may incorrectly cause replies to be sent to that address. Another solution, more radical, involves two steps. The first is to set up a user "el_green" who does mail. The second is to configure sendmail so that it sends mail "masquerading" as "bellsouth.net". This involves editing a line in /etc/sendmail.cf to read # who I masquerade as (null for no masquerading) (see also $=M) DMbellsouth.net (It may possibly work even better if you can use the full name of the bellsouth mailhost machine (whatever that is), e.g. something like # who I masquerade as (null for no masquerading) (see also $=M) DMmailhost.bellsouth.net but don't simply take my word for it) For instance, mine says: # who I masquerade as (null for no masquerading) (see also $=M) DMnessie.mcc.ac.uk (This is because I have an account on nessie, with userid efh, so user efh on my home machine sends out mail appearing to have been sent by efh@nessie.mcc.ac.uk. Independently of that, my XFMail sets "From:" to be "Ted.Harding@nessie.mcc.ac.uk" which is one of my aliases there; that is where "Reply"s generally get sent to, and then delivered to efh@nessie. I then pull up mail from nessie with POP3, deal with it off-line at home, etc. Likewise my wife is user "cb" on both the home machine and nessie.) The advantage of the second solution is that it will (or should) work with any MUA: I used to use elm, which didn't offer much in the way of customising headers, and this technique worked fine. It's probably not needed with XFMail, but I stick with it all the same. Hope this helps, Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding@nessie.mcc.ac.uk> Date: 26-Nov-98 Time: 12:47:59 -------------------------------------------------------------------- - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e