[wellylug] Mutt & exim4 freeze outgoing mail ..

Cliff Pratt enkidu at cliffp.com
Thu Jan 18 20:06:20 NZDT 2007


Adam Bogacki wrote:
> See below.
> 
>> Message: 3
>> Date: Mon, 15 Jan 2007 19:41:34 +1300
>> From: Cliff Pratt <enkidu at cliffp.com>
>> Subject: Re: [wellylug] Mutt & exim4 freeze outgoing mail ..
>> To: Wellington Linux Users Group <wellylug at lists.wellylug.org.nz>
>> Message-ID: <45AB221E.9040005 at cliffp.com>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> Adam Bogacki wrote:
>>> Hi,
>>>
>>> I'm getting the following in /var/log/exim4/mainlog but am at a loss how
>>> to get smtp working.
>>>
>>>
>>>> 2007-01-15 13:02:18 1H6FIo-0001zL-4g <= logcheck at DEBCONFvisiblenameDEBCONF U=logcheck
>> P=local S=766
>>>> 2007-01-15 13:02:18 1H6FIo-0001zL-4g ** root at debconfvisiblenamedebconf: Unrouteable
>> address
>>>> 2007-01-15 13:02:18 1H6FIo-0001zP-T4 <= <> R=1H6FIo-0001zL-4g U=Debian-exim P=local
>> S=1631
>>>> 2007-01-15 13:02:18 1H6FIo-0001zL-4g Completed
>>>> 2007-01-15 13:02:19 1H6FIo-0001zP-T4 ** logcheck at debconfvisiblenamedebconf: Unrouteable
>> address
>>>> 2007-01-15 13:02:19 1H6FIo-0001zP-T4 Frozen (delivery error message)
>>>> 2007-01-15 13:16:53 1H6FWv-00026V-6z <= afb at paradise.net.nz U=adam P=local S=603
>> id=20070115001653.GA5028 at paradise.net.nz
>>>> 2007-01-15 13:16:53 1H6FWv-00026V-6z ** adamfb at gmail.com: Unrouteable address
>>>> 2007-01-15 13:16:53 1H6FWv-00026X-Fj <= <> R=1H6FWv-00026V-6z U=Debian-exim P=local
>> S=1395
>>>> 2007-01-15 13:16:53 1H6FWv-00026V-6z Completed
>>>> 2007-01-15 13:16:53 1H6FWv-00026X-Fj ** afb at paradise.net.nz: Unrouteable address
>>>> 2007-01-15 13:16:53 1H6FWv-00026X-Fj Frozen (delivery error message)
>>>> 2007-01-15 13:18:20 Start queue run: pid=8137
>>> The relevant part of /etc/exim4/exim4.conf seems to be
>>>
>>>
>>>>  38 # This sets a macro DC_minimaldns if dc_minimaldns=true. If
>>>>      39 # dc_minimaldns=false, this expands to an empty line.
>>>>      40 .ifndef DC_minimaldns
>>>>      41 DC_minimaldns=DEBCONFminimaldnsDEBCONF
>>>>      42 .endif
>>>>      43 
>>>>      44 # Create other macros from Debconf. Macros created here are used in
>>>>      45 # other places in exim config.
>>>>      46 .ifndef DC_visiblename
>>>>      47 DC_visiblename=DEBCONFvisiblenameDEBCONF
>>>>      48 .endif
>>> My .muttrc has
>>> set sendmail="/usr/sbin/exim4"
>>>
>>> .. and incoming mail works fine.
>>>
>>> What am I missing here ?
>>>
>> What's the distro? Seems to be a Debian type one, but usually the Debian
>>   exim4 conf file resides in /var/lib/exim4/config-autogenerated or
>> something... It is generated from a number of macros and a template file.
>>
>> One problem is that you haven't set the 'visiblename' macro.
>>
>> Cheers,
>>
>> Cliff
> 
> 
> Ubuntu Edgy Eft. I had it working but my ISP rang to say they were receiving 
> mail from 'root'. Ahem. I fixed that .. but now this. 'visiblename' seems to be
> the problem. I set what seemed the appropriate option in 
> /etc/exim4/exim4.conf.template and saved it as /etc/exim4/exim4.conf ..
> - clearly it wasn't.  
>
Um, that probably the wrong thing to do. I've refreshed my memory of the 
Debian way of maintaining the conf file. Please see the man page for 
update-exim4.conf. The /etc/exim4/exim4.conf.template should remain as 
/etc/exim4/exim4.conf.template. There shoudl *not* be a 
/etc/exim4/exim4.conf file if you want to use the Debian scheme.

/etc/exim4/update-exim4.conf.conf is where you make the main changes and 
set the macro definitions. In particular there is a 
'dc_use_split_config='true' variable that decides whether or not the 
configuration process uses /etc/exim4/exim4.conf.template file or the 
/etc/exim4/conf.d split files.

Once you have made the changes you desire, you then run 
'update-exim4.conf' which generates the 
/var/lib/exim4/config.autogenerated file. THIS file is the one that is 
by default used by exim.

You can short circuit this rigmarole by copying 
/var/lib/exim4/config.autogenerated to /etc/exim4/exim4.conf and exim 
should then use that. However this makes redundant the template and the 
conf.d files, so you will henceforth have to make change directly to the 
/etc/exim4/exim4.conf file.

Cheers,

Cliff




More information about the wellylug mailing list