SMTP Auth doesnt work

Discussion in 'Installation/Configuration' started by maxx, Jun 27, 2006.

  1. maxx

    maxx New Member

    I have check all the post from here about this issue. Reinstalled Cyrus, commented out from main.cf.

    Still my SMTP auth doesnt work. Here is the warning:


    Jun 27 12:50:06 paris postfix/smtpd[9349]: warning: XXX.nblnetworks.fi[83.145.227.XXX]: SASL CRAM-MD5 authentication failed
    Jun 27 12:50:06 paris postfix/smtpd[9349]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
    Jun 27 12:50:06 paris postfix/smtpd[9349]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
    Jun 27 12:50:06 paris postfix/smtpd[9349]: warning: SASL authentication failure: size read failed
    Jun 27 12:50:06 paris postfix/smtpd[9349]: warning: SASL authentication failure: Password verification failed
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Your saslauthd/Postfix configuration must be wrong because your system tries to use /etc/sasldb2.
    Did you use any of the "Perfect Setups" from HowtoForge to set up your system?
     
  3. maxx

    maxx New Member

    Yes I did. And many times :)

    Fedora Core 4 perfect setup


    - M
     
    Last edited: Jun 28, 2006
  4. falko

    falko Super Moderator Howtoforge Staff

    Ok. Please redo the Postfix configuration, and make sure you avoid typos.
     
  5. maxx

    maxx New Member

    I did copy&paste

    Could this be the problem?

    I did settings like I did for 32-bit Linux, but now I have another server with 64-bit Linux. I use maildir with Courier and follow instructions below.

    Do you think I should use UW?


    "Fedora 4 Maildir setup

    Before installing RPM's do 'yum install expect'

    http://www.linux-daemon.de/rpm/fedor...e%204/courier/
    You need Courier libs and Courier Imap wget them to yout /tmp and install 'rpm -ivh' courier libs first and then Courier imap

    Do

    chkconfig --levels 235 sendmail off
    chkconfig --levels 235 postfix on
    chkconfig --levels 235 saslauthd on
    chkconfig --levels 235 courier-imap on
    chkconfig courier-imap on
    /etc/init.d/sendmail stop
    /etc/init.d/postfix start

    /etc/init.d/courier-imap start
    /etc/init.d/saslauthd start
    /etc/init.d/xinetd restart


    Just remember not to install imap on
    apt-get install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain postfix imap <- dont install imap"
     
  6. falko

    falko Super Moderator Howtoforge Staff

    If you use a 64-bit Fedora, then do

    Code:
    echo 'pwcheck_method: saslauthd' > /usr/lib64/sasl2/smtpd.conf
    echo 'mech_list: plain login' >> /usr/lib64/sasl2/smtpd.conf
    instead of

    Code:
    echo 'pwcheck_method: saslauthd' > /usr/lib/sasl2/smtpd.conf
    echo 'mech_list: plain login' >> /usr/lib/sasl2/smtpd.conf
     

Share This Page