Re: Question about exim forwarding



On Monday 27 February 2006 08:57 am, Aaldijk Arno wrote:
Hi,

My problem is that email forwarded by exim from root to my private email
address still shows "To: root@localhost" in its address header, instead
of To: "my.name@xxxxxxxxx" in its To: header. Because of this, some of
my emails do not get delivered.

How can I configure exim4 to make it work like that?

I am successfully using gmail as an smtp smarthost, as per the
instructions found here: http://wiki.debian.org/GmailAndExim4
I want all emails to root forwarded to my email address, and this works
only partially at the moment.

My /etc/aliases contains the following entry:
root: arno.aaldijk@xxxxxxxxx

My /etc/mailname contains:
localhost


dpkg-reconfigure exim4-config

and in one of the questions (it might be the first one related to
hostname/domainname) you need to put in domain.fi (instead of the default of
'localhost') and it should work.





This test mail: echo "my test" | mail -s "test message"
arno.aaldijk@xxxxxxxxx

Results in the following message: (domain names changed)
<...>
Received: from localhost ( [62.78.229.194])
by mx.domain.com with ESMTP id
l22sm36093nfc.2006.02.27.06.46.12;
Mon, 27 Feb 2006 06:46:12 -0800 (PST)
Received: from root by localhost with local (Exim 4.50)
id 1FDjda-0000Qb-1Z
for arno.aaldijk@xxxxxxxxx; Mon, 27 Feb 2006 16:46:10 +0200
To: arno.aaldijk@xxxxxxxxxx
Subject: test message
Message-Id: <E1FDjda-0000Qb-1Z@localhost>
<...>

If I send email like this:
echo "my test" | mail -s "test message" root

The message does in fact arrive at the destination, but looks like the
following (and triggers spam filters)
<...>
Received: from localhost ( [62.78.229.194])
by mx.gmail.com with ESMTP id
d2sm3352990nfe.2006.02.27.06.49.30;
Mon, 27 Feb 2006 06:49:31 -0800 (PST)
Received: from root by localhost with local (Exim 4.50)
id 1FDjgn-0000Ql-4n
for root@localhost; Mon, 27 Feb 2006 16:49:29 +0200
To: root@xxxxxxxxxxxxxxxx
Subject: test message
Message-Id: <E1FDjgn-0000Ql-4n@localhost>
<...>

Thanks for any help.

Arno Aaldijk

--


anoop
aaryal@xxxxxxxxxxxxxxxx


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Outbound Mail Header
    ... After that I sent a test message but it is still laced with the fqdn. ... Messages from root are often excluded from masquerading. ... will print the contents of your 'E' class of exposed users. ...
    (comp.mail.sendmail)
  • Re: [SLE] Re: Postfix Null Client configuration
    ... > as root and sent a test message to root. ... The sendmail null client hands ... The postfix null client tries to use the relay host ...
    (SuSE)
  • Question about exim forwarding
    ... My problem is that email forwarded by exim from root to my private email ... root@localhost" in its address header, ... Subject: test message ...
    (Debian-User)
  • Re: ERRPT and ERRLOG problem
    ... Re: ERRPT and ERRLOG problem ... Also check your root crontab file to see what your cleanup procedures are. ... # errlogger 'test message' ... OPERATOR NOTIFICATION ...
    (AIX-L)