HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Problem with centos - postfix - all mail i queued (http://www.howtoforge.com/forums/showthread.php?t=60087)

xsas 2nd January 2013 10:01

Problem with centos - postfix - all mail i queued
 
Hi

I recently has begun with Ispconfig and Centos, previosly I had worked always with Debian, but for long maintenance I would try Centos for his long time support.

Well, I followed the howto

http://www.howtoforge.com/perfect-se...er-ispconfig-3

and everything is ok.

But when I test the mail, I have found this:

MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting: at (eval 86) line 596.): id=09025-08 (in reply to end of DATA command))

I have disabled selinux and reviewed all but I miss something.

Thanks in advanced

tahunasky 3rd January 2013 09:56

Do you have these settings in the /etc/postfix/master.cf file ?

Quote:

127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_chec ks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1

I think it has something to do with anitvirus. Check that the clamd.amavisd process is running.

# ps -ef | grep amavisd

xsas 9th January 2013 13:27

We found it ...
 
Hi,

We found it!!!

Thanks for your reply tahunasky but the problem wasn't amavis but SASL authentication.

Making a test in localhost we found :

Jan 3 07:39:49 64 postfix/smtpd[17781]: connect from localhost[::1]
Jan 3 07:39:49 64 postfix/smtpd[17781]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
Jan 3 07:39:49 64 postfix/smtpd[17781]: fatal: no SASL authentication mechanisms
Jan 3 07:39:50 64 postfix/master[16109]: warning: process /usr/libexec/postfix/smtpd pid 17781 exit status 1
Jan 3 07:39:50 64 postfix/master[16109]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

then we review the sasl authentication mechanism and the sasl installed packets.

# cat /etc/sasl2/smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login

# rpm -qa | grep sasl
cyrus-sasl-2.1.23-13.el6_3.1.x86_64
cyrus-sasl-lib-2.1.23-13.el6_3.1.x86_64
cyrus-sasl-devel-2.1.23-13.el6_3.1.x86_64

and we install that we need.

# yum search sasl | grep cyrus
[...]
cyrus-sasl-plain.i686 : PLAIN and LOGIN authentication support for Cyrus SASL
cyrus-sasl-plain.x86_64 : PLAIN and LOGIN authentication support for Cyrus SASL
[...]

#yum install cyrus-sasl-plain cyrus-sasl-md5

and finally restart the services

# service saslauthd stop
# service postfix stop
# service saslauthd start
# service postfix start

Simple, but it's complicated to detect. Normally you search in more other places than here.

Now I have reviewed the howto and I have realized that there is a comment with the solution, ups.

http://www.howtoforge.com/perfect-se...#comment-32968

bye


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

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