>
>That is odd. With a trusted user, the -f option should set the
>return-path address. Have you tried the experiment of running Exim as
>root with the -f option to see if it works? For example
>
> exim -f some.rubbish@??? <your address>
> test message
> .
Thank you for the very explicit suggestions, very quickly.
Yes, when executing Exim from the command line with the -f parameter, it
works as expected. That is, if the user is trusted by exim, the envelope
FROM is the value in the -f parameter. If not a trusted user, then the
user name is placed in the envelope FROM.
>
>If that works, try doing it as the smartlist user. In other words, try
>to nail down whether Exim is behaving as you are expecting. You could
>also run it with -d9 to see if it is running smartlist (assuming you are
>piping to it) as the user you expect.
>
Ok, I did that and I copied the log at the bottom. My reading of the log
is that user ANNOUNCE has called Exim, and that it looks like the -f
parameter was passed in correctly from Smartlist. However ...
If I run it without ANNOUNCE being a trusted user, then it goes out as
ANNOUNCE.
I have tried toggling the Never_users=Root flag.
Sections of the Exim configuration that I though might be relevant are also
below.
The address being delivered to is via a BCC header, if it makes any difference.
Thanks again for any hints on what needs to change for this to work for me.
mark
######################################################################
# TRANPORTS CONFIGURATION #
######################################################################
# This transport is used for local delivery to user mailboxes.
local_delivery:
driver = appendfile;
file = /var/spool/mail/${local_part}
user=root
# This transport is used for handling pipe addresses generated by alias
# or .forward files. It has a conventional name, since it is not actually
# mentioned elsewhere in this configuration file.
address_pipe:
driver = pipe;
ignore_status,
# return_output
# return_fail_output
######################################################################
# DIRECTORS CONFIGURATION #
######################################################################
# This director handles aliasing using a traditional /etc/aliases file.
system_aliases:
driver = aliasfile;
file = /etc/aliases.exim,
search_type = lsearch,
user = announce
# This director handles forwarding using traditional .forward files.
# If you want it also to allow mail filtering when a forward file
# starts with the string "# Exim filter", uncomment the "filter" option.
userforward:
no_verify,
driver = forwardfile;
file = .forward,
# filter
# This director matches local user mailboxes.
localuser:
driver = localuser,
transport = local_delivery;
end
########################################################################
smartlist log generated by -d9
procmail: Locking "dist.lock"
procmail: Executing
"choplist,32,8,64,0,200000,4,dist,/usr/sbin/sendmail,-d9,-oem,-odb,-oi,-om,-fdom
ain-name-request@???"
procmail: Assigning "LASTFOLDER=choplist 32 8 64 0 200000 4 dist
/usr/sbin/sendmail -d9 -oem -odb -oi -om
-fdomain-name-request@???"
procmail: Unlocking "dist.lock"
>From mdm@??? Thu Mar 27 13:33:38 1997
Subject: test message to the masses
Folder: choplist 32 8 64 0 200000 4 dist /usr/sbin/sendmail -d9 -oem 781
Debug level set to 9
set_process_info: 29342 1.59 accepting a local non-SMTP message from
<domain-name-request@???>
Sender: domain-name-request@???
Recipients:
mdm@???
search_tidyup called
>>Original headers:
Message-Id: <v03020909af6029eeb426@???>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 27 Mar 1997 07:43:15 -0600
To: domain-name@???
From: mark david mcCreary <mdm@???>
Subject: test message to the masses
X-Unsubscribe: send a blank message to domain-name-off@???
Precedence: bulk
rewrite_one_header: type=T:
To: domain-name@???
rewrite_one_header: type=F:
From: mark david mcCreary <mdm@???>
search_tidyup called
>>Final headers:
P Received: from announce by dispatch.mail-list.com with local (Exim 1.59 #3)
id 0wAFJC-0007dG-00; Thu, 27 Mar 1997 13:33:38 +0000
I Message-Id: <v03020909af6029eeb426@???>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 27 Mar 1997 07:43:15 -0600
T To: domain-name@???
F From: mark david mcCreary <mdm@???>
Subject: test message to the masses
X-Unsubscribe: send a blank message to domain-name-off@???
Precedence: bulk
Data file written for message 0wAFJC-0007dG-00
Writing spool header file
LOG: MAIN
<= mdm@??? U=announce P=local S=1027
id=v03020909af6029eeb426@???
fork /usr/local/exim/bin/exim -d9 -Mc 0wAFJC-0007dG-00
Debug level set to 9
set_process_info: 29343 1.59 delivering specified messages
delivering message 0wAFJC-0007dG-00
set_process_info: 29343 1.59 delivering 0wAFJC-0007dG-00
Opened spool file 0wAFJC-0007dG-00-H
user=announce uid=506 gid=509 sender=mdm@???
sender_local=0 resent=no
recipients_count=1
Delivery address list:
mdm@???
unique=mdm@???
mdm@???: queued for routing
After directing:
Local addresses:
Remote addresses:
Failed addresses:
Addresses to be routed:
mdm@???
Deferred addresses:
routing mdm@???, domain internet-tools.com
lookuphost router called for mdm@???: dns lookup:
route_domain = internet-tools.com
DNS lookup of internet-tools.com (MX) succeeded
Local interface address is 127.0.0.1
Local interface address is 206.109.113.139
local host in list - removed hosts:
dispatch.mail-list.com 206.109.113.139 20
red.hex.net 204.155.154.2 30
fully qualified name = internet-tools.com
returned hosts:
transport.mail-list.com 206.109.113.140 10
lookuphost router succeeded
routed by lookuphost router:
deliver to mdm@???
transport: smtp
host transport.mail-list.com [206.109.113.140] MX=10
search_tidyup called
>>> Local deliveries >>>
search_tidyup called
>>> Remote deliveries >>>
smtp transport entered
transport.mail-list.com [206.109.113.140] status = usable
set_process_info: 29343 1.59 delivering 0wAFJC-0007dG-00 to
transport.mail-list.com [206.109.113.140] (mdm@???)
Connecting to transport.mail-list.com [206.109.113.140] ... connected
SMTP response timeout = 300
SMTP<< 220 transport.mail-list.com ESMTP Sendmail 8.8.4/8.8.4; Thu, 27
Mar 1997 13:36:18 GMT
SMTP>> HELO dispatch.mail-list.com
SMTP response timeout = 300
SMTP<< 250 transport.mail-list.com Hello dispatch.mail-list.com
[206.109.113.139], pleased to meet you
SMTP>> MAIL FROM:<mdm@???>
SMTP response timeout = 300
SMTP<< 250 <mdm@???>... Sender ok
SMTP>> RCPT TO:<mdm@???>