HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Saslauthd fails to start (http://www.howtoforge.com/forums/showthread.php?t=53647)

Cracklefish 3rd August 2011 16:55

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

Mark_NL 3rd August 2011 16:58

try:

Code:

strace /etc/init.d/saslauthd start

Cracklefish 3rd August 2011 17:20

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

Mark_NL 3rd August 2011 17:24

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.

Cracklefish 3rd August 2011 18:07

1 Attachment(s)
Hi Mark,

I have attached a file.

Thanks for the help.

Rick

Mark_NL 3rd August 2011 21:10

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/

Cracklefish 4th August 2011 14:04

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?

Mark_NL 4th August 2011 14:49

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.

Cracklefish 5th August 2011 13:44

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?

Mark_NL 5th August 2011 16:46

Quote:

Originally Posted by Cracklefish (Post 261020)
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..


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

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