LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-15-2011, 09:23 AM   #1
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Rep: Reputation: 78
saslauthd keeps crashing


Hi

I was testing a new server for several days. Yesterday the saslauthd started to crash with segfault. It wasn't start even after the server was rebooted. The segfault was telling problems in libc. (Sorry I cannot remember the exact output)
I cannot determine where is the best place to looking for the cause of this fault. Please if somebody can give me some basic advices in this it will be a great help.

Scenario:
I installed a new server with slackware 13.1 86_64.
I am using this services:
sendmail with saslauthd authetication, clamav-milter (0.97-latest)
imapd, pop3d, stunnel (for imaps and pop3s)
webmin (for local administrators user management)
webmail.

The mail boxes of users was migrated from the older server - slackware 13.0 84_64 bit and same services. The imap folders and the user inboxes (var/spool/mail) I migrated with rsync to the new server.
The users was copied from the old /etc/passwd and /etc/shadow files into the new ones.
I applied the latest patches (included the shadow-4.1.4.3-x86_64-2_slack13.1.txz).

My first idea was that the shadow and passwd files was handled incorrectly. (This is the most probably case )
Second was the sendmail.cf which I transfered from the old server. So I rebuilt it from sendmail.mc on the new server. (after this the crash still persisted)

Next I am going to check the passwd and shadow files.

Last edited by hua; 04-15-2011 at 09:27 AM.
 
Old 04-17-2011, 03:20 AM   #2
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Original Poster
Rep: Reputation: 78
It looks like the problem was with the clamav user. It has double shadow and passwd entries. Oops.

The older clamav packages doesn't create the clamav user and group automatically so I had control over the UID and GID of these. With older clamav (0.95.3) you needed to create clamav user and clamav group by hand.
It was usually UID 210 and GID 210. This was good because I reserved UIDs above 1000 for users. This makes the user synchronization with backup server simple for me.

When I installed a new server with upgraded clamav (0.97) the package automatically created the user with UID in this userspace (something like 1040). This caused that when I merged the passwd file the high UID clamav user was included too. So I had two clamav users with UID 210 and UID 1040.

It looks like that this caused the saslauthd crash.
Probably this is the risk when you use not tested packages.
I built the package from the clamav 0.97 source since the latest version on slackbuilds.org is 0.95.2. I know that there is also some more up-to-date version but I was curious if it will work with 0.97.

EDIT:
Sorry, I was wrong I found this right now:
http://connie.slackware.com/~alien/s...av/pkg64/13.1/

Last edited by hua; 04-17-2011 at 03:50 AM.
 
Old 04-18-2011, 09:57 AM   #3
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Original Poster
Rep: Reputation: 78
No. It wasn't the cause of the error.

Actually when I looked carefully into my logs I found out that the segfault appears at the moment when one of my users connects to SMTP.
When he connects to imapd it works. No error. But the sendmail authentication process just destroy saslauthd.
It is weird, because there are some strange characters in the /etc/passwd file.
Code:
user:x:1160:100:an Ňarja :/home/user:/bin/sh
(Some of the character was deleted to protect privacy of my users)
After "arja" there is another symbol which here is invisible. I try to get the hexa of it.
I really don't know how dose it get there. I created the same user with the same full name description and it looks completely different.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with sendmail and saslauth on FC7 baldur2630 Linux - General 0 08-01-2007 05:40 PM
saslauth passwd file justkeny2k Linux - Server 1 07-25-2007 07:06 PM
saslauth Sapient Linux - Networking 1 12-31-2005 02:00 AM
problem saslauth authentication (cyrus_slasl FDC3) madden Linux - Networking 0 03-16-2005 02:34 PM
saslauth and nis problem judy23 Linux - Software 0 04-12-2004 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration