Discussion:
Exim4 return-path header
(too old to reply)
Eddy
2004-08-24 22:40:06 UTC
Permalink
Hi,

I use Exim4 with Sarge and have a little configuration problem regarding
mail headers.

What should I do in order to have "Return-path" and "Sender" headers added
by Exim to be exactly the same as the "From" header created by my mail
client ?

If my question isn't clear enough, please read on for more explanations.

I have several email addresses and I can choose the one to use from my
mail client (usually kmail) ; that address is written in the "From"
header. But then Exim add "Return-path" and "Sender" headers containing
***@debian. Thus my mail headers are like these :
From : ***@real.provider
Return-path : ***@debian
Sender : ***@debian

but what I want is
From : ***@real.provider
Return-path : ***@real.provider
Sender : ***@real.provider

I know I can add
eddy : ***@real.provider
in the /etc/email-addresses
but then when I'll chose (from within my mail client) to use
***@other.provider the headers will be
From : real.address*2*@other.provider
Return-path : ***@real.provider
Sender : ***@real.provider
while in that case I'd rather have
From : real.address*2*@other.provider
Return-path : real.address*2*@other.provider
Sender : real.address*2*@other.provider

Writing
eddy: use_whatever_is_in_the_from_path
in /etc/email-addresses won't work (would it?) but that's basicly what I'd
like to achieve.

Please don't tell me to RTFM, I've done that and am lost.
I found out that adding myself to the trusted users suppress the "Sender"
header entirely but the 'bad' "Return-path" persists.

I've tried to use "return_path_add = false" or "return_path_remove =
true" in the exim config files but it didn't work. (Anyway, I suppose I
do need a return-path, don't I ? )

Thanks for any help.
--
Eddy (remove shadoko from the address)

"En essayant continuellement, on finit par réussir
Donc : plus ça rate, plus on a de chance que ça marche"
Les Shadoks
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Miquel van Smoorenburg
2004-08-24 23:50:08 UTC
Permalink
Post by Eddy
Hi,
I use Exim4 with Sarge and have a little configuration problem regarding
mail headers.
What should I do in order to have "Return-path" and "Sender" headers added
by Exim to be exactly the same as the "From" header created by my mail
client ?
Make sure your mail client calls exim with the correct options
to set this header. I'm not sure if kmail can do that, the right
incantation for mutt is 'set envelope_from'.

Alternatively, let exim listen on port 25 on localhost, and tell
kmail to use SMTP server localhost:25 to deliver mail. Probably
kmail will use the same address for MAIL FROM: and From: and
that will solve your problem nicely.

Mike.
--
The question is, what is a "manamanap".
The question is, who cares ?
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Eddy
2004-08-25 14:30:11 UTC
Permalink
Post by Miquel van Smoorenburg
Post by Eddy
What should I do in order to have "Return-path" and "Sender" headers
added by Exim to be exactly the same as the "From" header created by
my mail client ?
Make sure your mail client calls exim with the correct options
to set this header. I'm not sure if kmail can do that, the right
incantation for mutt is 'set envelope_from'.
Alternatively, let exim listen on port 25 on localhost, and tell
kmail to use SMTP server localhost:25 to deliver mail. Probably
kmail will use the same address for MAIL FROM: and From: and
that will solve your problem nicely.
Thanks a lot Mike.

I didn't find what to do with your first suggestion but the second one
(using smtp to localhost) works perfectly. I never thought about it
because I thought that using sendmail was equivalent to an smtp to
localhost. Obviously it is not.

Just a little sidenote for non English Kmail users : Kmail complained when
contacting smtp localhost that the server didn't accept 8 bit messages
and wanted me to use Quoted Printable instead (I hate QP cause I want my
messages to be readable by a basic text editor).
Yet telneting to localhost showed that exim4 responds well to my ehlo
command (of course it does !). I finally found a work around here :
http://lists.debian.org/debian-qt-kde/2004/04/msg00357.html
and added "accept_8bitmime = true" to my
/etc/exim4/exim4.conf.template
--
Eddy (remove shadoko from address)

"En essayant continuellement, on finit par réussir
Donc : plus ça rate, plus on a de chance que ça marche"
Les Shadoks
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Adam Funk
2004-08-25 19:30:06 UTC
Permalink
Post by Eddy
I use Exim4 with Sarge and have a little configuration problem
regarding mail headers.
What should I do in order to have "Return-path" and "Sender" headers
added by Exim to be exactly the same as the "From" header created by
my mail client ?
I messed unsuccessfully with various options when I started using Exim
and settled on the following: set KMail to use SMTP to localhost
instead of using the sendmail command. (You have to have the SMTP port
open, at least for localhost, in order for this to work.)
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Loading...