sendmail not workig

Discussion in 'Installation/Configuration' started by AlexRose, Oct 2, 2009.

  1. AlexRose

    AlexRose New Member

    Hello,

    i just installed ispconfig3 on centos 5.3(32 bits) and i'm trying to send emails from php but i get this error in /var/log/maillog

    any ideas?
    thanks.

    Alex
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. AlexRose

    AlexRose New Member

    yes, of course. everything else works fine ..
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    grep smtpd /etc/postfix/main.cf
     
  5. AlexRose

    AlexRose New Member

    Code:
    [root@descarca ~]# grep smtpd /etc/postfix/main.cf
    # through Postfix.  See the smtpd_recipient_restrictions parameter
    # relay mail to.  See the smtpd_recipient_restrictions description in
    # The smtpd_banner parameter specifies the text that follows the 220
    #smtpd_banner = $myhostname ESMTP $mail_name
    #smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
    smtpd_use_tls = yes
    smtpd_tls_security_level = may
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
    smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
    [root@descarca ~]#
    
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Looks ok.

    Please check if all required sasl modules are installed by running:

    apt-get install libsasl2-modules libsasl2-modules-sql

    then restart postfix and saslauthd.
     
  7. AlexRose

    AlexRose New Member

    Code:
    [root@descarca ~]# yum install libsasl2-modules libsasl2-modules-sql
    No package libsasl2-modules available.
    No package libsasl2-modules-sql available.
    Nothing to do
    [root@descarca ~]#
    
    i'm using centos 5.3 (32bits)
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, sorry. Missed that you run centos.

    Please run:

    yum search sasl

    to check if you have any sasl module related packages in centos available.
     
  9. AlexRose

    AlexRose New Member

    This is what i get
    Code:
    [root@descarca ~]# yum search sasl
    Loaded plugins: fastestmirror, priorities
    Loading mirror speeds from cached hostfile
     * rpmforge: ftp-stud.fht-esslingen.de
     * base: ftp.ines.lug.ro
     * updates: ftp.ines.lug.ro
     * addons: ftp.ines.lug.ro
     * extras: ftp.ines.lug.ro
    ======================================================================= Matched: sasl =======================================================================
    postfix.i386 : Postfix Mail Transport Agent
    cyrus-imapd.i386 : A high-performance mail server with IMAP, POP3, NNTP and SIEVE support
    cyrus-sasl.i386 : The Cyrus SASL library.
    cyrus-sasl-devel.i386 : Files needed for developing applications with Cyrus SASL.
    cyrus-sasl-gssapi.i386 : GSSAPI support for Cyrus SASL.
    cyrus-sasl-ldap.i386 : LDAP auxprop support for Cyrus SASL.
    cyrus-sasl-lib.i386 : Shared libraries needed by applications which use Cyrus SASL.
    cyrus-sasl-md5.i386 : CRAM-MD5 and DIGEST-MD5 support for Cyrus SASL.
    cyrus-sasl-ntlm.i386 : NTLM support for Cyrus SASL.
    cyrus-sasl-plain.i386 : PLAIN and LOGIN support for Cyrus SASL.
    cyrus-sasl-sql.i386 : SQL auxprop support for Cyrus SASL.
    gnu-crypto-sasl-jdk1.4.i386 : Gnu Crypto SASL API
    libsnet.i386 : Simple, secure, TCP communications library
    pamtester.i386 : Utility for testing pluggable authentication modules (PAM) facility
    perl-Authen-DigestMD5.noarch : SASL DIGEST-MD5 authentication (RFC2831) perl module
    perl-Authen-SASL.noarch : Interface to SASL
    php-pear-Auth-SASL.noarch : PEAR: Abstraction of various SASL mechanism responses
    php-pear-Net-SMTP.noarch : Provides an implementation of the SMTP protocol
    qca-sasl.i386 : SASL plugin for the Qt Cryptographic Architecture
    [root@descarca ~]#
    
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Please run:

    yum install cyrus-sasl-sql cyrus-sasl-plain cyrus-sasl-lib

    and then restart postfix and saslauthd.
     
  11. AlexRose

    AlexRose New Member

    Thanks, it's working now!
     

Share This Page