[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Configuring exim4 (for use with mutt)

One of the few inputs requested by exim4-config is "hostname".

The screen, that contains this request, explains that the "hostname" is
the part of the email address that comes after the "@". As far as I can
judge exim4 uses this input in conjunction with the user's login name to
construct the "envelope_from" address.

Unfortunately this does not work on my setup because my login name on my
computer and my login name on my ISP's computer are different.

When "mutt" is used in conjunction with "sendmail" this can be fixed
with the "set envelope_from" command.  This does not work with exim4 -
as shown by the following testrun:

,----[ test6.txt ]-
| From MAILER-DAEMON Thu Jan 06 07:33:16 2005
| Return-path: <>
| Envelope-to: felixk@carrot.cabbage.patch
| Delivery-date: Thu, 06 Jan 2005 07:33:16 +1100
| Received: from Debian-exim by carrot.cabbage.patch with local (Exim 4.34)
| 	id 1CmHqG-0001cs-Ii
| 	for felixk@carrot.cabbage.patch; Thu, 06 Jan 2005 07:33:16 +1100
| X-Failed-Recipients: felix@spodzone.org.uk,
| Auto-Submitted: auto-generated
| From: Mail Delivery System <Mailer-Daemon@carrot.cabbage.patch>
| To: felixk@carrot.cabbage.patch
| Subject: Mail delivery failed: returning message to sender
| Message-Id: <E1CmHqG-0001cs-Ii@carrot.cabbage.patch>
| Date: Thu, 06 Jan 2005 07:33:16 +1100
| X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.92.7
| Status: RO
| Content-Length: 1398
| Lines: 38
| This message was created automatically by mail delivery software.
| A message that you sent could not be delivered to one or more of its
| recipients. This is a permanent error. The following address(es) failed:
|  SMTP error from remote mailer after MAIL FROM:<felixk@carrot.cabbage.patch>:
|  host mail.m.iinet.net.au []: 553 sorry, your envelope sender 
|  domain must exist (#5.7.1)
| ------ This is a copy of the message, including all the headers. ------
| Return-path: <felixk@carrot.cabbage.patch>
| Received: from felixk by carrot.cabbage.patch with local (Exim 4.34)
| 	id 1CmHZK-0001bI-4P; Thu, 06 Jan 2005 07:15:46 +1100
| Date: Thu, 6 Jan 2005 07:15:46 +1100
| From: Felix Karpfen <valid email address>
| To: felix@spodzone.org.uk
| Subject: test 6
| Message-ID: <20050105201546.GA6102@carrot.cabbage.patch>
| Reply-To: Felix Karpfen <valid email address>
| Mime-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Disposition: inline
| User-Agent: Mutt/1.5.6+20040722i
| Sender: Michael <felixk@carrot.cabbage.patch>
| Text of sent message:
| ====================
| hostname set to carrot.cabbage.patch
| envelope_from set
| -- 
| Felix Karpfen
| Public Key 72FDF9DF (DH/DSA) 

The problem can be corrected by supplying to exim4 not just my (ISP's)
hostname (as directed) but the full mailing address.  This creates
entries in "Return-path:"(envelope_from?) and in "Sender:" with a
hopelessly incorrect syntax (an address with 2 "@"), but the mail is
accepted by my ISP.

While it would not surprise me to be told that the problem is at my ISP,
he is geared to cater to Windows users and provides virtually no support
to Linux users.

As described above, I have found _a_ solution.  But I would be glad to
know if there is a more elegant solution.

Felix Karpfen
Felix Karpfen
Public Key 72FDF9DF (DH/DSA)

Reply to: