My mail busted after stable update
- From: rathmann@xxxxxxxxxxxxxx (Michael Rathmann)
- Date: Sun, 1 Jan 2006 12:04:30 +0100
Hi,
I'm getting slowly desperate. So I post my first question to tis bord,
which I'm usually only reading.
Setup:
I have installed a mail server under FreeBSD. I'm using the setup that
is documented in
http://www.web-cyradm.org/
It is a system that consists of postfix, cyrus-Imap, cyrus-casl and
saslauthd with mysql, pam-mysql and a web interface to modify and add
mail users.
I installed erverything from the ports. After some tweaking and fiddling
I got it to work just fine.
Now the problem:
Last monday I was updating my stable system again (cvsup, make
world...). I do this from time to time to get in security stuff, was
maybe a few weeks old. I never had problems, I might have done some
portupgrade's, but I'm pretty sure I left the mail system as it was.
Since this moment when a user want to log into the mail system I the the
error message
Dec 29 12:03:03 andechser saslauthd[414]: in openpam_load_module(): no
pam_mysql.so found
I have tested testsalauthd -u -p, same error message.
I really spent a lot of time in the internet and I did find the error
message, but these were exactly these few messages that go unanswered.
Please don't let this happen again...
During the hours I was trying to cope with the problem I have rebuild
and re-installed from actual port the whole cyrus stuff, postfix (well
anyway), mysql, pam_mysql, but without success.
What was the mistake, what am I missing here?
Thanks
Michael
--------------
Here is a list of relevant resources and information that mighht help
locate the problem.... (Of course the config files have not changed,
since the time all worked fine.)
root@andechser# saslauthd -v
saslauthd 2.1.21
authentication mechanisms: sasldb getpwent kerberos5 pam rimap
I launched saslauthd with -V not that it is very verbose...
Dec 31 12:27:07 andechser saslauthd[415]: get_accept_lock : acquired
accept lock
Dec 31 12:27:07 andechser saslauthd[414]: rel_accept_lock : released
accept lock
Dec 31 12:27:07 andechser saslauthd[414]: DEBUG: auth_pam: pam_start
failed: system error
(in debug.log)
Dec 31 12:27:07 andechser saslauthd[414]: in openpam_load_module(): no
pam_mysql.so found
Dec 31 12:27:07 andechser saslauthd[414]: do_auth : auth
failure: [user=xxxxxxxxx] [service=imap] [realm=] [mech=pam] [reason=PAM
start error]
(in auth.log)
root@andechser# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.rathmann.org.
Escape character is '^]'.
220 mail.rathmann.org ESMTP Postfix
ehlo localhost
250-mail.rathmann.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
root@andechser# locate pam_mysql.so
/usr/lib/pam_mysql.so
/usr/local/lib/pam_mysql.so
wobei das in usr/lib ein symbolic link auf das un /usr/local/lib ist.
root@andechser# cat imap (aus /etc/pam.d)
#
# $FreeBSD: src/etc/pam.d/imap,v 1.5 2003/03/08 09:50:11 markm Exp $
#
# PAM configuration for the "imap" service
#
# auth
#auth required pam_nologin.so no_warn
#auth sufficient pam_krb5.so no_warn
try_first_pass
#auth sufficient pam_ssh.so no_warn
try_first_pass
#auth required pam_unix.so no_warn
try_first_pass
auth sufficient pam_mysql.so user=mail passwd=xxx
host=localhost \
db=mail table=accountuser usercolumn=username
passwdcolumn=password crypt=1 \
logtable=log logmsgcolumn=msg logusercolumn=user
loghostcolumn=host \
logpidcolumn=pid logtimecolumn=time
#auth sufficient pam_unix.so
account required pam_mysql.so user=mail passwd=xxx
host=localhost \
db=mail table=accountuser usercolumn=username
passwdcolumn=password crypt=1 \
logtable=log logmsgcolumn=msg logusercolumn=user
loghostcolumn=host \
logpidcolumn=pid logtimecolumn=time
#account sufficient pam_unix.so
>From master.cf in the postfix directory
#
========================================================================
==
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
#
========================================================================
==
smtp inet n - n - - smtpd
....
smtp unix - - n - - smtp
root@andechser# ps -aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
....
root 157 0.0 0.2 1172 604 ?? Is Fri10AM 0:00.00
adjkerntz -i
root 251 0.0 0.1 500 224 ?? Is Fri10AM 0:00.02
/sbin/devd
root 284 0.0 0.2 1292 840 ?? Ss Fri10AM 0:01.07
/usr/sbin/syslogd -s
root 376 0.0 2.2 14804 8352 ?? Ss Fri10AM 0:06.79
/usr/local/sbin/httpd
root 385 0.0 0.2 1628 816 ?? I Fri10AM 0:00.01 /bin/sh
-c /usr/local/sbin/cronolog /var/log/apache2/%Y-%m-%d-rathman.org-erro
root 386 0.0 0.2 1628 816 ?? I Fri10AM 0:00.01 /bin/sh
-c /usr/local/sbin/cronolog /var/log/apache2/%Y-%m-%d-rathmann.org-err
root 394 0.0 0.1 1324 488 ?? I Fri10AM 0:00.00
/usr/local/sbin/cronolog
/var/log/apache2/%Y-%m-%d-rathmann.org-error.log
root 395 0.0 0.1 1324 488 ?? I Fri10AM 0:00.00
/usr/local/sbin/cronolog /var/log/apache2/%Y-%m-%d-rathman.org-error.log
root 396 0.0 0.5 5472 1804 ?? Ss Fri10AM 0:01.96
/usr/local/sbin/nmbd -D -s /usr/local/etc/smb.conf
root 400 0.0 0.8 8592 3104 ?? Is Fri10AM 0:00.17
/usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf
www 407 0.0 3.5 19804 13512 ?? I Fri10AM 0:03.64
/usr/local/sbin/httpd
www 408 0.0 3.5 19804 13512 ?? I Fri10AM 0:02.88
/usr/local/sbin/httpd
www 409 0.0 3.5 19804 13532 ?? I Fri10AM 0:03.54
/usr/local/sbin/httpd
www 410 0.0 3.5 19804 13512 ?? I Fri10AM 0:04.23
/usr/local/sbin/httpd
www 411 0.0 3.5 19784 13512 ?? I Fri10AM 0:02.69
/usr/local/sbin/httpd
root 412 0.0 0.3 2788 1300 ?? Is Fri10AM 0:00.01
/usr/local/sbin/saslauthd -V -a pam
root 414 0.0 0.3 2788 1300 ?? I Fri10AM 0:00.01
/usr/local/sbin/saslauthd -V -a pam
root 415 0.0 0.3 2776 1252 ?? I Fri10AM 0:00.00
/usr/local/sbin/saslauthd -V -a pam
root 416 0.0 0.3 2776 1252 ?? I Fri10AM 0:00.00
/usr/local/sbin/saslauthd -V -a pam
root 417 0.0 0.3 2776 1252 ?? I Fri10AM 0:00.00
/usr/local/sbin/saslauthd -V -a pam
root 420 0.0 0.8 8592 3108 ?? I Fri10AM 0:00.00
/usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf
cyrus 422 0.0 0.4 3348 1476 ?? Ss Fri10AM 0:13.03
/usr/local/cyrus/bin/master -d
root 484 0.0 0.5 3352 2020 ?? Is Fri10AM 0:02.83
/usr/sbin/sshd
root 525 0.0 0.2 1320 912 ?? Is Fri10AM 0:00.68
/usr/sbin/cron -s
root 581 0.0 0.4 3900 1628 ?? Is Fri10AM 0:02.90
/usr/local/libexec/postfix/master
postfix 585 0.0 0.4 4232 1712 ?? I Fri10AM 0:00.48 qmgr -l
-t fifo -u
root 645 0.0 0.2 1208 636 ?? Is Fri10AM 0:00.01
/usr/sbin/moused -p /dev/psm0 -t auto
postfix 713 0.0 0.5 4168 1828 ?? I Fri10AM 0:00.30 tlsmgr
-l -t unix -u
www 773 0.0 3.5 19804 13512 ?? I Fri10AM 0:02.85
/usr/local/sbin/httpd
www 1660 0.0 3.5 19804 13544 ?? I 4:42PM 0:02.17
/usr/local/sbin/httpd
postfix 7484 0.0 0.5 4168 1960 ?? I 11:16AM 0:00.07 pickup
-l -t fifo -u
root 680 0.0 0.2 1264 780 v0 Is+ Fri10AM 0:00.01
/usr/libexec/getty Pc ttyv0
root 681 0.0 0.2 1264 780 v1 Is+ Fri10AM 0:00.01
/usr/libexec/getty Pc ttyv1
root 682 0.0 0.2 1264 780 v2 Is+ Fri10AM 0:00.01
/usr/libexec/getty Pc ttyv2
root 683 0.0 0.2 1264 780 v3 Is+ Fri10AM 0:00.01
/usr/libexec/getty Pc ttyv3
root 684 0.0 0.2 1264 780 v4 Is+ Fri10AM 0:00.01
/usr/libexec/getty Pc ttyv4
root 685 0.0 0.2 1264 780 v5 Is+ Fri10AM 0:00.01
/usr/libexec/getty Pc ttyv5
root 686 0.0 0.2 1264 780 v6 Is+ Fri10AM 0:00.01
/usr/libexec/getty Pc ttyv6
root 687 0.0 0.2 1264 780 v7 Is+ Fri10AM 0:00.01
/usr/libexec/getty Pc ttyv7
mysql 348 0.0 0.2 1644 940 con- I Fri10AM 0:00.03 /bin/sh
/usr/local/bin/mysqld_safe --defaults-extra-file=/var/db/mysql/my.cnf
mysql 371 0.0 6.8 58320 26160 con- S Fri10AM 2:43.33
/usr/local/libexec/mysqld --defaults-extra-file=/var/db/mysql/my.cnf
--basedir
.
- Follow-Ups:
- Re: My mail busted after stable update
- From: Michael Rathmann
- Re: My mail busted after stable update
- Prev by Date: Re: NFS Client Problems
- Next by Date: Quick HOWTO: Configuring CUPS To Print On A Windows Printer Using smb
- Previous by thread: Re: after installing perl-5.8.7_2 from ports, perl won't run for users
- Next by thread: Re: My mail busted after stable update
- Index(es):
Relevant Pages
|