Re: [exim] Easy way to Purge and re-install exim4? [Ubuntu 6…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Magnus Holmgren
Date:  
À: exim-users
Sujet: Re: [exim] Easy way to Purge and re-install exim4? [Ubuntu 6.06]
On onsdagen den 16 april 2008, Michael Kubler wrote:
> today after making a minor config change, and was suddenly getting :
> > root@downpenguin :/etc/exim4# update-exim4.conf
> > *chmod: invalid mode: `644\r'*
> > Try `chmod --help' for more information.


Sounds like you managed to change the line endings
of /etc/exim4/update-exim4.conf.conf from LF to CRLF.

> The same *chmod: invalid mode: `644\r'* error appeared when trying to
> run eximstats, eximstats, and "*/etc/init.d/exim4 restart"*
>
> I went crazy, changing file permissions on the log files, the
> configuration files, the autogenerated config file, and the
> /usr/sbin/exim4 program. I even restarted the box (which is hosting
> about 20 domains and a bunch of websites). Eventually I remembered about
> the change I did about the logging, and corrected it, suddenly it started.


As THHGTTG teaches: Don't panic! This is not Windows - there is usually a
better way than reinstalling to fix things.

> Now, it was accepting emails, but not processing them correctly, and the
> php form2mailer script on one of the sites isn't working.
> I went 'fuck it', and decided to remove exim4 and start again... I
>
> copied the config files, and log files, and then ran :
> > apt-get remove exim4
>
> Except it did stuff all. It didn't stop the running exim4 process, it
> didn't remove any config files, I can't actually see what it did.


Purging exim4 is not enough as it's merely a meta package that doesn't
actually have to be installed at all.

> I tried "/apt-get --purge exim4/", but get "*E: Invalid operation exim*"


It's "apt-get --purge uninstall exim4-config" (or "aptitude purge
exim4-config", if you've installed aptitude, which is recommended), and
optionally the same with exim4-base.

> I tried installing exim4 again, but it doesn't ask for any config
> details, and says it's done but doesn't actually start it, or do anything.
> I tried manually removing the config files, and then running
> "dpkg-reconfigure exim4" but it just drops to the next line and doesn't
> do anything.


Likewise, you need to dpkg-reconfigure exim4-config, which manages the
configuration.

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)