[Pkg-exim4-users] Package cleanup, reinstalling, & misc manual config questions

Marc Haber mh+pkg-exim4-users@zugschlus.de
Fri, 4 Mar 2005 08:10:49 +0100


On Thu, Mar 03, 2005 at 03:24:35PM -0800, Matt Weatherford wrote:
> I'm seeing odd/non-reproducable behaviour with Exim4 on Sarge

Can you outline what happens?

> I want to clear off the entire exim3/exim4 pacakage and reinstall
> with all the defaults to see if I can get a clean setup.
> 
> 1) What is the recommended way to clean off all related files?
> 
> I tried :
> 
>  dpkg --purge --force-depends exim4-daemon-light
>  dpkg --purge --force-depends exim4-base
>  dpkg --purge --force-depends exim4-config
>  dpkg --purge --force-depends exim4

you can put all four package names on a single command-line, but you
still need force-depends since you likely have packages depending on
m-t-a on your system.

> Will this get everything so I can do a reinstall
> cleanly? Are there other files elsewhere that I need to purge?

Should be. You might want to look whether the Debian-exim account is
gone, and all files belonging to it, and whether /var/spool/exim4 and
/var/lib/exim4 is gone.

> 2)  I am not getting the behaviour I expect from the config file that
> gets set up as a result of answering the debconf questions.
> (Runnning "dpkg-reconfigure exim4")
> 
> If I want to change settings by hand, what is the file that I edit?

Depends. If what you want to use is with in Debconf scope, edit
/etc/exim4/update-exim4.conf.conf. If you want to do something outside
debconf scope, you either need to edit the appropriate file in
/etc/exim4/conf.d, or /etc/exim4/exim4.conf.template, depending on
whether you have chosen split or non-split config.

> 3) After I change that file, I assume I need to do:
> 
> /usr/sbin/update-exim4.conf
> /etc/init.d/exim4 restart
> 
> Is there anything else I'm missing?

/etc/init.d/exim4 restart is enough, it invokes update-exim4.conf.

> 4) I am using exim4-* (sarge) 4.44-2
> Are there any known bugs in the autoconfig process with a clean install
> or subsequent, repeated "dpkg-reconfigure exim4" runs?

All known bugs are visible in the Debian BTS.

> 5) Is there some class of configuration that I can set up which causes
> exim4 to not use the local /etc/aliases file?   Depending on my config,
> it sometimes works, and sometimes doesnt. I want to understand this
> behavior.

/etc/aliases is used for local domains only, so choosing "no local
mail" will probably not execute the system_aliases router.

exim -bt address will show you the routing steps for an address. Add
the -d option for lots of debug output.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835