Re: MUA configuration for correct From address.
On Sun, 12 Jul 1998, Shaul wrote:
> > > I am using smail and fetchmail. It is working, altough I have to add a
> > > Reply-To field becuase the recpiants can't find my machine from the Internet.
> > > Note that my machine is called rakefet. I am the user shaul. My ISP login name
> > > is beitamos and my ISP's mail server is mail.inter.net.il
> > > Hope it will help.
> >
> > Since you have got your MUA to add the reply-to, why not configure
> > it to send your correct From address instead? I cannot imagine why anyone
> > would go around with a broken from address.
>
> 1) I am adding a Reply-To by hand to every letter I am writing. I couldn't
> figured out how to do it automaticaly.
> 2) Can someone direct me on how to change the From field from my MUA ? That
> too I couldn't figured out myself. Furthermore: Isn't such a thing causes
> dificullties to smail ?
> I am using exmh 1.6 on a bo system.
> 3) I wouldn't go with a broken From address if I knew how it could be solved.
> As was pointed out many times in the past on this list, it is a bit of a
> problem - at least on bo systems.
If using smail, have a look at Daniel Martin's page (sorry, dont have the
URL... Daniel???)
Here is the relevant info:
in your /etc/smail/transports file, change the smtp section to this:
(you might want to save the old section in case of problems... just
comment it out with #'s)
---------
smtp: driver=tcpsmtp,
max_addrs=100, # limit on number of addresses
-max_chars,
inet, # use route-addr addresses for routing
remove_header="From", # Rewrite From, ID and Sender headers
insert_header="From: ${lookup:from:lsearch{maps/frommap}{$value}
{[YOUR EMAIL ADDRESS] ($from:$fullname)}}",
remove_header="Message-ID",
insert_header="Message-ID: <$id@$primary>",
remove_header="Sender",
insert_header="Sender: ${lookup:from:lsearch{maps/frommap}{$value}
{[YOUR EMAIL ADDRESS] ($from:$fullname)}}";
use_bind, # resolve MX and multiple A records
defer_no_connect, # try again if the nameserver is down
-local_mx_okay, # fail an MX to the local host
defnames # use standard domain searching
---------
(the lines with "[YOUR EMAIL ADDRESS]" are extensions of the previous
"insert_header" definitions, and of course, put in your email address :) )
make a file "/etc/smail/maps/frommap" and put in the following template,
and edit it to suit your situation (change all [...] sections):
---------
root root@[hostname] (root)
[user] [email address] ([name])
---------
thats it :) it worked for me :)
Michael Beattie (mickyb@es.co.nz)
PGP Key available, reply with "pgpkey" as subject.
-----------------------------------------------------------------------------
"Bother," said Pooh, as the rip cord came away in his hand
-----------------------------------------------------------------------------
Debian GNU/Linux.... Ooohh You are missing out!
--
Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to: