Problem with centos - postfix - all mail i queued

Discussion in 'General' started by xsas, Jan 2, 2013.

  1. xsas

    xsas New Member HowtoForge Supporter

    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-server-centos-6.3-x86_64-apache2-courier-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
     
  2. tahunasky

    tahunasky New Member

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

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

    # ps -ef | grep amavisd
     
    Last edited: Jan 3, 2013
  3. xsas

    xsas New Member HowtoForge Supporter

    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-s...-apache2-courier-ispconfig-3-p4#comment-32968

    bye
     

Share This Page