Skip site navigation (1)Skip section navigation (2)
Date:      10 Aug 2001 10:57:02 +0100
From:      Wayne Pascoe <wayne.pascoe@realtime.co.uk>
To:        wayne.pascoe@realtime.co.uk
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Gnus and exim - Machine name appears in headers
Message-ID:  <86pua4i6fl.fsf@pan.home.penguinpowered.org.uk>
In-Reply-To: <86ae1cji9r.fsf@pan.home.penguinpowered.org.uk>
References:  <86ae1cji9r.fsf@pan.home.penguinpowered.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Wayne Pascoe <wayne.pascoe@realtime.co.uk> writes:

> Hi all,
> 
> I am using gnus in xemacs as my mail client and exim as my MTA.
> When I do a mailq on the server after sending a message from gnus, I
> get something along the lines of the following :
> 
>  3m  1.1K 15U3fP-0006JC-01 <waynep@pan.domain.com>
>           recipient@somedomain.com
> 
> My problem is that the address that should show up in place of
> waynep@pan.domain.com is wayne.pascoe@domain.com
> Because it is using the user@host value here, I am not able to mail
> certain servers. I get the following kinds of messages in my exim
> mainlog: 
> 
> 2001-08-07 11:01:02 15U3fP-0006JC-01 SMTP error from remote mailer
> after RCPT TO:<recipient@somedomain.com>: host smtp1.somedomain.com
> [64.40.111.31]: 450 <waynep@pan.domain.com>: Sender address
> rejected: Domain not found

Ok, this is a solution in case anyone else gets whacked with this kind
of problem. The problem is mostly that *nix mailers behave as they
should, not how Outlook express does :) This means that by default the
envelope from address is user@hostname. 

What I have done to get around this is to add a rewrite rule to my
exim.conf file as follows :

*@pan.domain.com      ${lookup{$1}lsearch{/etc/mail/email-addresses}\
                                                  {$value}fail} bcfrF
This goes in the rewrite section
The contents of /etc/mail/email-addresses are quite simply
waynep:  wayne.pascoe@realtime.co.uk

This means that all outgoing mail is re-written with a returnable
envelope-from address.

Hope that helps someone .

-- 
- Wayne Pascoe 
E-mail: wayne.pascoe@realtime.co.uk
Phone : +44 (0) 20 7544 4668

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86pua4i6fl.fsf>