[Exim] No To: in header when email sent from command line wi…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Paul Mills
Päiväys:  
Vastaanottaja: exim-users
Aihe: [Exim] No To: in header when email sent from command line with exim 4.12.
Hi,

I have a problem with regard to exim 4.12, any help would appreciated. I
have looked around the net and searched the list for any info, without
any luck.

When I send a message from the command line as follows
exim -f jimv paulm <email.txt
The message is sent ok to paulm at the local domain from jimv etc, but
the received email has no To: Header, it does contain the Envelope-to:
With exim 3.36 this command line gives the To: in the header.

The header is as follows:-
====================================================================
Return-path: <jimv@???>
Envelope-to: paulm@???
Delivery-date: Tue, 18 Feb 2003 12:39:13 +0000
Received: from [127.0.0.1] (helo=localhost
ident=[PUnI+XL5oKuqjh/VLrnc8uzxce8SmDwg]) by maul.cant.ac.uk with esmtp
(Exim 4.12) id 18l71l-0001vX-00 for paulm@???; Tue, 18 Feb 2003
12:39:13 +0000
Received: from maul.cant.ac.uk ([127.0.0.1]) by localhost
(maul.cant.ac.uk [127.0.0.1:10024]) (amavisd-new) with ESMTP id 06006-01
for <paulm@???>; Tue, 18 Feb 2003 12:39:12 +0000 (GMT)
Received: from root by maul.cant.ac.uk with local (Exim 4.12) id
18l71k-0001vS-00 for paulm@???; Tue, 18 Feb 2003 12:39:12 +0000
Message-Id: <E18l71k-0001vS-00@???>
From: jimv@???
Date: Tue, 18 Feb 2003 12:39:12 +0000
X-Virus-Scanned: by AMaViSd-new version 20021227
X-Evolution-Source: imap://paulm@maul.cant.ac.uk/
====================================================================

My exim.conf routers and transports are as follows, all emails are first
sent to a local port to be Virus scanned by amavisd-new then in the
above case goes to the local transport, I have removed the virus_scan
transport and router and the To: header is still not shown.

begin routers

virus_scan:
        driver = manualroute
        condition = "${if eq {$interface_port}{10025} {0}{1}}"
        # if scanning incoming mails, uncomment the following line and
        # change local_domains accordingly
        # domains = +local_domains
        # transport = amavis
        transport = virus_scan


localuser:
        driver = accept
        check_local_user
        transport = local_delivery


begin transports

# SMTP transport to be used for the Exim -> amavisd path;
# by default amavisd listens on the loopback interface on port 10024
# (amavisd.conf: $inet_socket_port = "10024")

virus_scan:
        driver = smtp
        port = 10024
        allow_localhost



local_delivery:
        driver = appendfile
        file = /var/spool/mail/$local_part
        delivery_date_add
        envelope_to_add
        return_path_add
        group = mail
        mode = 0660
        route_list = "* localhost byname"
        self = send


Many Thanks

--
Paul Mills <paulm@???>
Senior Linux Systems Administrator
Red Hat Certified Engineer
Canterbury Christ Church University College
North Holmes Road
Canterbury
Kent
United Kingdom
CT1 1QU
Tel.: 01227 782751