Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd August 2011, 16:55
Cracklefish Cracklefish is offline
Member
 
Join Date: Mar 2009
Posts: 95
Thanks: 8
Thanked 3 Times in 3 Posts
Default Saslauthd fails to start

Hi,

set-up is Perfect Server, ISPC3, OpenSuSE 11.1

All was working fine for a long time then I got a SMTP server log in failed message. On investigation I discovered that saslauthd was not running and would not start on boot or with etc/init.d/saslauthd start (error 7)

I have tried uninstalling and reinstalling saslauthd using yast to no avail.

All services, except saslauthd, start at boot up.

Apache, pop & webmail seem ok
Reply With Quote
Sponsored Links
  #2  
Old 3rd August 2011, 16:58
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

try:

Code:
strace /etc/init.d/saslauthd start
Reply With Quote
  #3  
Old 3rd August 2011, 17:20
Cracklefish Cracklefish is offline
Member
 
Join Date: Mar 2009
Posts: 95
Thanks: 8
Thanked 3 Times in 3 Posts
Default

Hi Mark,

Thanks for the super prompt reply but I'm going to need some assistance. The output is many screens-full. More than I can read using Putty. I have local access to the server but I don't know how to capture it into a txt file or get that out of the machine.

regards
Rick
Reply With Quote
  #4  
Old 3rd August 2011, 17:24
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

run:

Code:
strace -o saslauthd.txt /etc/init.d/saslauthd start
attach the file to your next reply and i'll have a look at it.
Reply With Quote
  #5  
Old 3rd August 2011, 18:07
Cracklefish Cracklefish is offline
Member
 
Join Date: Mar 2009
Posts: 95
Thanks: 8
Thanked 3 Times in 3 Posts
Default

Hi Mark,

I have attached a file.

Thanks for the help.

Rick
Attached Files
File Type: txt saslauthd.txt (29.3 KB, 105 views)
Reply With Quote
  #6  
Old 3rd August 2011, 21:10
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

Hmm, can't make anything of that, just that it failes to start (i forgot to ask to run it with follow childprocs, but let's forget that)

You said you reinstalled saslauthd, didn't that overwrite some of your configuration settings?

Also, can you see anything related to the saslauthd process in your log files when you try to start it? If there's not enough info, you can set the debug level up, so you get more information in your log files. I'm not really a suse user, so i'm not sure where those sasl config files are but i guess somewhere in /etc/courier/
Reply With Quote
  #7  
Old 4th August 2011, 14:04
Cracklefish Cracklefish is offline
Member
 
Join Date: Mar 2009
Posts: 95
Thanks: 8
Thanked 3 Times in 3 Posts
Default

Don't know if the is progress but...
There doesn't seem to be any specific config details in the Perfect Server tutorial

couldn't find a courier log but in "Messages" I got and error

Code:
could not chdir to: /var/run/sasl2/
No such file or Directory
I created that directory but I'm not sure of the permissions or contents it should have but now saslauthd starts

but
The smtp server fails auth login with pam-mysql errors
here's the message log...
Code:
Aug  4 11:08:01 Golf1 /usr/sbin/cron[3747]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:09:01 Golf1 /usr/sbin/cron[3776]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:09:30 Golf1 saslauthd[3164]: pam_mysql - SELECT returned no result.
Aug  4 11:09:30 Golf1 saslauthd[3164]: pam_mysql - SELECT returned no result.
Aug  4 11:09:30 Golf1 saslauthd[3164]: DEBUG: auth_pam: pam_authenticate failed: User not known to the underlying authentication module
Aug  4 11:09:30 Golf1 saslauthd[3164]: do_auth         : auth failure: [user=mail] [service=smtp] [realm=crosoer.com] [mech=pam] [reason=PAM auth error]
Aug  4 11:09:30 Golf1 saslauthd[3161]: pam_mysql - SELECT returned no result.
Aug  4 11:09:30 Golf1 saslauthd[3161]: pam_mysql - SELECT returned no result.
Aug  4 11:09:30 Golf1 saslauthd[3161]: DEBUG: auth_pam: pam_authenticate failed: User not known to the underlying authentication module
Aug  4 11:09:30 Golf1 saslauthd[3161]: do_auth         : auth failure: [user=mail] [service=smtp] [realm=crosoer.com] [mech=pam] [reason=PAM auth error]
Aug  4 11:09:44 Golf1 saslauthd[3164]: pam_mysql - SELECT returned no result.
Aug  4 11:09:44 Golf1 saslauthd[3164]: pam_mysql - SELECT returned no result.
Aug  4 11:09:44 Golf1 saslauthd[3164]: DEBUG: auth_pam: pam_authenticate failed: User not known to the underlying authentication module
Aug  4 11:09:44 Golf1 saslauthd[3164]: do_auth         : auth failure: [user=mail] [service=smtp] [realm=crosoer.com] [mech=pam] [reason=PAM auth error]
Aug  4 11:09:44 Golf1 saslauthd[3161]: pam_mysql - SELECT returned no result.
Aug  4 11:09:44 Golf1 saslauthd[3161]: pam_mysql - SELECT returned no result.
Aug  4 11:09:44 Golf1 saslauthd[3161]: DEBUG: auth_pam: pam_authenticate failed: User not known to the underlying authentication module
Aug  4 11:09:44 Golf1 saslauthd[3161]: do_auth         : auth failure: [user=mail] [service=smtp] [realm=crosoer.com] [mech=pam] [reason=PAM auth error]
Aug  4 11:10:01 Golf1 /usr/sbin/cron[3821]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Aug  4 11:10:01 Golf1 /usr/sbin/cron[3826]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:10:03 Golf1 pure-ftpd: (?@__1) [INFO] New connection from __1
Aug  4 11:10:03 Golf1 pure-ftpd: (?@__1) [INFO] Logout.
Aug  4 11:11:01 Golf1 /usr/sbin/cron[3886]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:12:01 Golf1 /usr/sbin/cron[3915]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:13:01 Golf1 /usr/sbin/cron[3944]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:14:01 Golf1 /usr/sbin/cron[3973]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:15:01 Golf1 /usr/sbin/cron[4013]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Aug  4 11:15:01 Golf1 /usr/sbin/cron[4015]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:15:03 Golf1 pure-ftpd: (?@__1) [INFO] New connection from __1
Aug  4 11:15:03 Golf1 pure-ftpd: (?@__1) [INFO] Logout.
Aug  4 11:16:01 Golf1 /usr/sbin/cron[4113]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:17:01 Golf1 /usr/sbin/cron[4142]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:18:01 Golf1 /usr/sbin/cron[4171]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:19:01 Golf1 /usr/sbin/cron[4223]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:20:01 Golf1 /usr/sbin/cron[4263]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Aug  4 11:20:01 Golf1 /usr/sbin/cron[4262]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:20:04 Golf1 pure-ftpd: (?@__1) [INFO] New connection from __1
Aug  4 11:20:04 Golf1 pure-ftpd: (?@__1) [INFO] Logout.
Aug  4 11:21:01 Golf1 /usr/sbin/cron[4325]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:22:01 Golf1 /usr/sbin/cron[4354]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:23:01 Golf1 /usr/sbin/cron[4384]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:24:01 Golf1 /usr/sbin/cron[4415]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:25:01 Golf1 /usr/sbin/cron[4444]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Aug  4 11:25:01 Golf1 /usr/sbin/cron[4448]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:25:03 Golf1 pure-ftpd: (?@__1) [INFO] New connection from __1
Aug  4 11:25:03 Golf1 pure-ftpd: (?@__1) [INFO] Logout.
Aug  4 11:26:01 Golf1 /usr/sbin/cron[4505]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
Aug  4 11:27:01 Golf1 /usr/sbin/cron[4534]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)
I telnet to it and input <username> & <password> in base64 but it failed the password.
I have SquirrelMail on the system too. With this I can log in to the mail box with the same details.

Now where do I go?
Reply With Quote
  #8  
Old 4th August 2011, 14:49
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

I'm out of idea's, unless i can access the shell myself.

I'd suggest you have a look at this document:
http://www.howtoforge.com/perfect-se....1-ispconfig-3

Redo it from the start, double check if you have made any errors, typo's or skipped a step.
Reply With Quote
The Following User Says Thank You to Mark_NL For This Useful Post:
Cracklefish (4th August 2011)
  #9  
Old 5th August 2011, 13:44
Cracklefish Cracklefish is offline
Member
 
Join Date: Mar 2009
Posts: 95
Thanks: 8
Thanked 3 Times in 3 Posts
Default

Hi Mark,

I started a reinstall of the Postfix etc according to the tutorial but then discovered the cause of the problem. A bad sector on the disk. So I had better replace it. I had started to build a new server uning Suse 11.3 but didn't get as far as commissioning it. Is there any idiots guide to tell me how to migrate all the data from the ISPC3, mail, web, MySQL etc?
Reply With Quote
  #10  
Old 5th August 2011, 16:46
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
 
Default

Quote:
Originally Posted by Cracklefish View Post
Is there any idiots guide to tell me how to migrate all the data from the ISPC3, mail, web, MySQL etc?
That's not that hard .. since all client data etc is in the database it makes it a lot easier nowadays to migrate to another server.

- Install a new fresh server with ispconfig3
- Go to the old server ..

- Make a complete databass dump ..
Code:
mysqladmin --all-databases > ~/database.sql
- Import it on the new server ..
Code:
mysql < database.sql
- Copy /var/www and /var/vmail from the old server to the new server.

that's about it.

it's not idiot proof i know, but it's almost weekend! ;-)

also i don't know if there is already a migrate script.
Maybe i'll write one some day..
Reply With Quote
Reply

Bookmarks

Tags
saslauthd

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
monitrc configuration for Debian ISPConfig 3 server Hans Tips/Tricks/Mods 2 27th March 2011 23:22
Monitoring server Ubuntu wiss Installation/Configuration 7 20th November 2010 12:56
geronimo-jetty7-javaee5-2.2 fails to deploy war application vtapas Server Operation 0 3rd May 2010 13:35
Monit & Munin SamTzu HOWTO-Related Questions 1 4th May 2008 18:03
"Too many open files in system" problems Berry Installation/Configuration 3 10th November 2007 21:58


All times are GMT +2. The time now is 15:10.


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