PDA

View Full Version : Postfix problems


BHGR
15th June 2009, 17:18
Hi,

I have problems with Postfix on ISPConfig 3.0.1.3, OS is CentOS 5.3

Postfix won't send or recieve mail for any user.

Logs say this:

/var/log/maillog
Jun 15 19:12:33 srv1 postfix/master[11611]: warning: process /usr/libexec/postfix/smtpd pid 11628 exit status 1
Jun 15 19:12:33 srv1 postfix/master[11611]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Jun 15 19:13:33 srv1 postfix/smtpd[11888]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
Jun 15 19:13:33 srv1 postfix/smtpd[11888]: fatal: no SASL authentication mechanisms
Jun 15 19:13:34 srv1 postfix/master[11611]: warning: process /usr/libexec/postfix/smtpd pid 11888 exit status 1
Jun 15 19:13:34 srv1 postfix/master[11611]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling


/var/log/messages
Jun 15 19:13:33 srv1 postfix/smtpd[11888]: sql_select option missing
Jun 15 19:13:33 srv1 postfix/smtpd[11888]: auxpropfunc error no mechanism available

Can anyone tell me what's wrong with this setup?

Thank you.

Croydon
15th June 2009, 17:43
Did you strictly follow the perfect setup howto for your distribution?
It seems that you didn't setup the sql authentication correctly.

BHGR
15th June 2009, 17:57
Yes I did, and also I tried running update.php to rewrite config files, but nothing has changed...

till
16th June 2009, 14:58
Looks as if the mysql bindings for sasl are missing. Maybe you used some packages from another repository. Please seek for a package on your server that has mysql and sasl in its name.

BHGR
16th June 2009, 17:04
I guess this is it:


[root@srv1 ~]# rpm -qa | grep sasl
cyrus-sasl-sql-2.1.22-4
cyrus-sasl-devel-2.1.22-4
cyrus-sasl-lib-2.1.22-4
cyrus-sasl-2.1.22-4

[root@srv1 ~]# rpm -qa | grep mysql
perl-DBD-mysql-4.011-1.el5.rf
php-mysql-5.1.6-23.2.el5_3
mysql-server-5.0.45-7.el5
mysql-5.0.45-7.el5
mysql-devel-5.0.45-7.el5
courier-authlib-mysql-0.62.1-1
mydns-mysql-1.1.0-1

BHGR
16th June 2009, 17:06
and:

[root@srv1 ~]# rpm -qa | grep sql
perl-DBD-mysql-4.011-1.el5.rf
php-mysql-5.1.6-23.2.el5_3
php-mssql-5.1.6-15.el5.centos.1
cyrus-sasl-sql-2.1.22-4
python-sqlite-1.1.7-1.2.1
postgresql-libs-8.1.11-1.el5_1.1
mysql-server-5.0.45-7.el5
sqlite-3.3.6-2
mysql-5.0.45-7.el5
mysql-devel-5.0.45-7.el5
courier-authlib-mysql-0.62.1-1
mydns-mysql-1.1.0-1
postgresql-8.1.11-1.el5_1.1
postgresql-devel-8.1.11-1.el5_1.1

falko
17th June 2009, 13:11
What's in your smtpd.conf?

BHGR
17th June 2009, 18:12
[root@srv1 lib]# more /usr/lib/sasl2/smtpd.conf
pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/var/spool/authdaemon/socket




Thank you.

falko
18th June 2009, 14:26
What's the output of uname -a?

BHGR
18th June 2009, 15:29
[root@srv1 ~]# uname -a
Linux srv1.domain.com 2.6.18-128.1.1.el5.028stab062.3 #1 SMP Sun May 10 18:54:51 MSD 2009 i686 i686 i386 GNU/Linux


The machine in OpenVZ VPS with CentOS 5.3.

falko
19th June 2009, 16:19
Did you use this tutorial to set up the system? http://www.howtoforge.com/perfect-server-centos-5.3-x86_64-ispconfig-3
Should work for 32bit systems as well (maybe there are one or two differences).

BHGR
19th June 2009, 23:50
I used 5.2 32bit tutorial, with some modifications (used 5.3 repos), source rpms were compiled OK...

falko
20th June 2009, 12:58
As far as I remember, the 5.3 guide differs a little bit from the 5.2 guide. Please try the 5.3 guide.

BHGR
23rd June 2009, 20:39
Hi,

I reinstalled ISPConfig and again I get the same message:

Jun 23 22:35:01 srv1 postfix/smtpd[9627]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
Jun 23 22:35:01 srv1 postfix/smtpd[9627]: fatal: no SASL authentication mechanisms
Jun 23 22:35:02 srv1 postfix/master[5159]: warning: process /usr/libexec/postfix/smtpd pid 9627 exit status 1
Jun 23 22:35:02 srv1 postfix/master[5159]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling