Ok, this is an authentication problem. Have you configured pam to search for users/passwords at the mysql database?!

If not, check the files smtp, pop, imap and sieve at /etc/pam.d. They should all look the same and contain the configurations to search mysql database for users.

Here's a sample, in case you haven't changed those yet:

auth sufficient pam_mysql.so user=mail passwd=secret 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 required pam_mysql.so user=mail passwd=secret host=localhost db=mail table=accountuser usercolumn=username passwdcolumn=password crypt=1 logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host logpidcolumn=pid logtimecolumn=time

Make sure that the user= and password= settings reflects the ones you have configured in your system. In case you haven't changed anything from the default config, those should work fine.

Another thing. If I'm not mistaken, mysql changed encryption from 3.23 to 4.11 (wich is the mysql version present on FC4), so it *could* be and encryption problem you're facing. The mysql logs would *REALLY* help you now. I've checked, and all I did to add logs to mysql is log=/var/log/filename at /etc/my.cnf. Google around and see if you can find why your mysql isn't starting with that option at my.cnf.

Best of luck.

Giovani


----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, August 04, 2005 8:31 PM
Subject: Re: [Web-cyradm] Error No. 13


I'm a little missed ..

First, I believed that the problem was with something over mysql, then I've tried to start mysql with logs on. I changed /etc/my.cnf and added log=/var/log/mysql.log under [mysqld] section, but mysql hangs with no error in /var/log/mysql-error.log. If I delete the line, mysql runs fine. Is something wrong in mysql installation? I don't know .. I think there is nothing wrong, but ... (I can create dbs, tables, execute queries, etc without problems) .
So I don't know how I can activate logs in mysql.

Another thing I've tried is execute the cyradm and imtest commands .. These are the results :

imtest -a cyrus -v localhost

S: * OK fixmad01.subdomain.es.domain.com Cyrus IMAP4 v2.2.12-Invoca-RPM-2.2.12-6.fc4 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS LISTEXT LIST-SUBSCRIBED X-NETSCAPE
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN cyrus {9}
S: + go ahead
C: <omitted>
S: L01 NO Login failed: generic failure
Authentication failed. generic failure
Security strength factor: 0

user cyrus don't login an /var/log/maillog ...

imap[3144]: badlogin: fixmad01.subdomain.es.domain.com [127.0.0.1] plaintext cyrus SASL(-1): generic failure: checkpass failed

And ..

cyradm --user cyrus localhost

IMAP Password:
Login failed: generic failure at /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line 118
cyradm: cannot authenticate to server with  as cyrus

and the same error on /var/log/maillog .


I've read in mailing list that this error (cyradm) is caused in Fedora because /etc/sysconfig/saslauthd don't contain MECH=pam into it. I changed /etc/sysconfig/saslauthd some time ago, so this error is caused by another thing that I don't know ..

Obviusly, There's something wrong on my system, but now I'm very confused and need help. :-((
Thanks everybody in advance.




----- Original Message ----- From: "Giovani Moda - MR Informática" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, August 05, 2005 12:50 AM
Subject: Re: [Web-cyradm] Error No. 13


That's for who is compiling cyrus. FC4 has rpm's package for cyrus-imapd. The locations for the folders are /var/spool/imap and /var/lib/imap. Check out the owner of /var/lib/imap, but that should not be your problem. I've installed cyrus-imapd on several FC (2 and 3) boxes, and never had this specific problem. Never tried FC4, but as far as I can see, that's not very different.

Can you feed us with some message and maillog log's from when the error occurs?!

I'm thinking permission at mysql database. Try runnig mysql with logs on. Change /etc/my.cnf and add log=/var/log/mysqlaccess.log at [mysqld] section. Create /var/log/mysqlaccess.log, give it some writting permission (666 should be fine, only for testing), restart the service and see what happens. The answers are always in the logs.

Cheers,

Giovani


_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm


_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm

Reply via email to