[Exim] how to remove envelope-From|Return-Path?

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Janto Trappe
Data:  
Para: exim-users
Assunto: [Exim] how to remove envelope-From|Return-Path?
Hi,

i'm using mutt and exim and have some problems with multiple mail
addresses as well as the headers which exim adds to outgoing mails:

If the mail is delivered by exim to another mailserver, the
header contains a "Return-Path: " with an entry which is similar to
the mail address i've specified in /etc/email-addresses.

I don't know, whether exim creates the "Return-Path: " or just an
"envelope-From: " which the last mailserver then transforms into
the "Return-Path :". Anyway, in both cases the header finally
contains two different mail addresses if the "From: " is not
identical to the entry in /etc/email-addresses.

I want to change it but i don't know exactly how to perform this.

I've tried to set the return_path_add and the envelope_to_add in my
/etc/exim.conf to false and i also tried to comment them completly
out, but it doesn't work. I've also manipulated the headers_remove
and add_headers options but without any success.
I know there is an untrusted_set_sender and no_local_from_check
option in v3.20, which should result in the desired effect, but
i'm still using v3.12-10 and don't want to upgrade it. (I'm using
Debian potato (stable) while v3.20 is only available in the unstable
Version. I think i would get some trouble with stable and v3.20.)

In short: i would like exim to leave the headers untouched so i can
set them with mutt individually. Another alternative would be if
exim sets the "Return-Path:"/"envelope-From:" identical to
"From:".

I would be pleased if you could give me a hint where i could find
something about the right exim.conf option or a Docu which describes
a solution for my problem.

Regards,
        Janto


I've attached my exim.conf for details:

<snip>
qualify_domain = vloo
local_domains = localhost:vloo
local_domains_include_host = true
local_domains_include_host_literals = true
never_users = root
host_accept_relay = localhost
trusted_users = mail
smtp_verify = false
gecos_pattern = ^([^,:]*)
gecos_name = $1
smtp_accept_queue_per_connection = 100
freeze_tell_mailmaster = true


received_header_text = "Received: \
         ${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}\
         {${if def:sender_ident {from ${sender_ident} }}\
         ${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}\
         by ${primary_hostname} \
         ${if def:received_protocol {with ${received_protocol}}} \
         (Exim ${version_number} #${compile_number} (Debian))\n\t\
         id ${message_id}\
         ${if def:received_for {\n\tfor <$received_for>}}"
end


local_delivery:
driver = appendfile
group = mail
mode = 0660
mode_fail_narrower = false
envelope_to_add = true
file = /var/spool/mail/${local_part}

address_pipe:
driver = pipe
return_output

address_file:
driver = appendfile

address_directory:
driver = appendfile
no_from_hack
prefix = ""
suffix = ""

address_reply:
driver = autoreply

procmail_pipe:
driver = pipe
command = "/usr/bin/procmail -d ${local_part}"
return_path_add
delivery_date_add
envelope_to_add
check_string = "From "
escape_string = ">From "
user = $local_part
group = mail

remote_smtp:
driver = smtp
end

real_local:
prefix = real-
driver = localuser
transport = local_delivery

system_aliases:
driver = aliasfile
file_transport = address_file
pipe_transport = address_pipe
file = /etc/aliases
search_type = lsearch

procmail:
driver = localuser
transport = procmail_pipe
require_files = ${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
no_verify

userforward:
driver = forwardfile
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
no_verify
check_ancestor
file = .forward
modemask = 002
filter

localuser:
driver = localuser
transport = local_delivery
end

smarthost:
driver = domainlist
transport = remote_smtp
route_list = "* 192.168.XXX.XXX byname"
end

*                      *           F,2h,15m; G,16h,2h,1.5; F,4d,8h
end


*@vloo    ${lookup{$1}lsearch{/etc/email-addresses}\
                                                  {$value}fail} bcfrF


# End of Exim configuration file
<snip>

-- 
Janto Trappe           [PGP Key available upon request]
Germany