Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th February 2011, 11:12
mike_p mike_p is offline
Senior Member
 
Join Date: Mar 2010
Location: Surrey, England
Posts: 140
Thanks: 9
Thanked 28 Times in 17 Posts
Default Mail problems after crash, upgrade, restore...

I recently suffered a catastrophic disk failure on a live server: the live server was running Centos 5.4 and an earlier version of ISPCongfig 3.

I had recently made backups of user data and all databases.

While the server was having a new disk fitted (very slow support!) I set up a new server by following the perfect server guide for Centos 5.5/x86_64
(with the exception of using mydns in place of bind)

I then restored the databases (including dbispconfig) and other data.

On running ISPConfig, a few things didn't work: I found that restoring the database had removed some new columns in dbispconfig. I re-added those manually.

Everything now appears to work except mail.

Any attempt to log in brings up the user/password box.

The mail log shows
"servername pop3d: LOGIN FAILED, user=mike@mydomain.co.uk,"

Further up the mail log we have
Code:
Feb 10 08:20:10 server authdaemond: Installing libauthuserdb
Feb 10 08:20:10 server authdaemond: file not found
Feb 10 08:20:10 server authdaemond: Installing libauthpam
Feb 10 08:20:10 server authdaemond: Installation complete: authpam
Feb 10 08:20:10 server authdaemond: Installing libauthpgsql
Feb 10 08:20:10 server authdaemond: file not found
Feb 10 08:20:10 server authdaemond: Installing libauthldap
Feb 10 08:20:10 server authdaemond: file not found
Feb 10 08:20:10 server authdaemond: Installing libauthmysql
Feb 10 08:20:10 server authdaemond: file not found
Feb 10 08:20:10 server authdaemond: Installing libauthcustom
Feb 10 08:20:10 server authdaemond: Installation complete: authcustom
Feb 10 08:20:10 server authdaemond: Installing libauthpipe
Feb 10 08:20:10 server authdaemond: file not found
Is that pertinent?

It also reports
Code:
postfix/smtpd[9045]: warning: SASL: Connect to private/auth failed: No such file or directory
I am running dovecot and I have confirmed that the dovecot config file contains the correct mysql login details

To confuse matters further, during the perfect server install guide it says
"(it is ok if you see this error: Starting Mail Virus Scanner (amavisd): Config file "/etc/amavisd/amavisd.conf" does not exist, at /usr/sbin/amavisd line 1795. - the missing configuration file /etc/amavisd/amavisd.conf will be created by the ISPConfig installer.)"

However after ISPConfig has been installed amavisd will not start giving the error "Config file "/etc/amavisd/amavisd.conf" does not exist"
Reply With Quote
Sponsored Links
  #2  
Old 10th February 2011, 15:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

download ispconfig tar.gz and run the ispconfig update.php script. Choose to reconfigure services during update.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 10th February 2011, 18:35
mike_p mike_p is offline
Senior Member
 
Join Date: Mar 2010
Location: Surrey, England
Posts: 140
Thanks: 9
Thanked 28 Times in 17 Posts
Default

Thanks for the suggestion. I've done that but it hasn't helped.

I think I'll try and rebuild the server from scratch again, then with a fresh installation of ISPConfig, test the mail service.

If that works, I'll reinstall the dbispconfig from my backups, run updatephp and see if it still works.

So I'll be reporting back in a few hours .

(In fact I've got four servers with ISPConfig installed - server one is serving HTTPD for my clients while I try and sort out the email problem. Email service is currently transfered to another server running DirectAdmin. It is server two that I will be rebuilding now.
It takes 1hr 10minutes to reformat and reinstall Centos - then I reorganise the partitions and upgrade Centos to 5.5 - then run the perfect server guide.)

Last edited by mike_p; 10th February 2011 at 18:38. Reason: additional info
Reply With Quote
  #4  
Old 11th February 2011, 08:25
mike_p mike_p is offline
Senior Member
 
Join Date: Mar 2010
Location: Surrey, England
Posts: 140
Thanks: 9
Thanked 28 Times in 17 Posts
Default Stage 1: Server rebuild complete....

and ISPConfig freshly installed.

The mail system works correctly except amavisd. If I attempt a restart, it still comes up with the message:
'Config file "/etc/amavisd/amavisd.conf" does not exist'

MyDNS, however does not work. The mydns config file has not been updated by the ISPConfig installer, so I've had to manually edit the file.
FIXED. Bind was preinstalled. The installer runs 'which' to discover which services are installed. If it finds bind (ie named) it configures bind and then doesn't bother with mydns. So by uninstalling bind, I've forced ISPConfig to configure mydns for me. I might have a go at submitting a patch so that the installer will alert the user if there is more than one alternative for any particular servcie and allow the user to choose which to use. (also useful for courier v. dovecot)

Last edited by mike_p; 11th February 2011 at 09:07.
Reply With Quote
  #5  
Old 11th February 2011, 09:55
mike_p mike_p is offline
Senior Member
 
Join Date: Mar 2010
Location: Surrey, England
Posts: 140
Thanks: 9
Thanked 28 Times in 17 Posts
Default

err.... actually the mail system wasn't working properly, but it didn't have any login problems.

I had to create a symbolic ink from /etc/amavisd.conf to /etc/amavisd/amavisd.conf to make amavis work.
[Why does the Perfect server guide instruct us to use a non-standard location for the conf file?]

Then the mails came tumbling through.

(I am updating on my progress on here so that anyone else suffering similar problems can learn from my mistakes!)
Reply With Quote
  #6  
Old 11th February 2011, 11:36
mike_p mike_p is offline
Senior Member
 
Join Date: Mar 2010
Location: Surrey, England
Posts: 140
Thanks: 9
Thanked 28 Times in 17 Posts
Default

Having had a conflict between MyDNS and BIND when rebuilding server two, I decided to re-evaluate services running on server one (live server).

I removed courier(-map,-authlib) and installed dovecot/dovecot seive in its place then ran ispconfig's update script and mail seems to be working again.
Reply With Quote
  #7  
Old 11th February 2011, 12:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
 
Default

Quote:
I removed courier(-map,-authlib) and installed dovecot/dovecot seive in its place then ran ispconfig's update script and mail seems to be working again.
Do not do this on a mailserver that conatains already mailboxes, as all email and mail filter rules that have been created before become inaccessible. courier and dovecot use a different mailfolder layout.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How cai remove amavis from postfix ? gabrix Server Operation 16 2nd October 2012 09:58
421 Unexpected failure Lizard King Installation/Configuration 20 7th July 2009 20:43
procmail can't write Hellbound General 27 8th June 2009 21:51
Filtering emails using Spamassassin and Clamav for Exchange 2000 Server Rocky Server Operation 19 11th March 2008 08:27
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16


All times are GMT +2. The time now is 17:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.