[vPostMaster] Re: SMTP auth fail on CentOS 5 - FIXED

Kev savage-garden at hanikamail.com
Fri Oct 5 03:11:45 MDT 2007


On Fri, 05 Oct 2007 12:28:47 +0530
Kev <savage-garden at hanikamail.com> wrote:

> Hi,
> 
> i have installa fesh copy of vPostmaster on a CentOS 5 box.
> 
> every thing works ok but smtp auth fail with "authentication failure";
> yes password is the same, yes i use the domain.
> 
> 
> ----------- maillog
> 
>  SASL LOGIN authentication failed: authentication failure
> 
> -------------
> 
> 250-AUTH PLAIN LOGIN
> 250-AUTH=PLAIN LOGIN
> 250-ENHANCEDSTATUSCODES
> 250-8BITMIME
> 250 DSN
> AUTH LOGIN
> 334 VXNlcm5hbWU6
> 535 5.7.0 Error: authentication failed: authentication failure
> RSET
> 
> -----
> cat /usr/lib/sasl2/smtpd.conf
> pwcheck_method: saslauthd
> 
> #vpostmaster
> mech_list: plain login
> -------
> 
> --------
> cat /etc/sysconfig/saslauthd
> # Directory in which to place saslauthd's listening socket, pid file, and so
> # on.  This directory must already exist.
> SOCKETDIR=/var/run/saslauthd
> 
> # Mechanism to use when checking passwords.  Run "saslauthd -v" to get a list
> # of which mechanism your installation was compiled with the ablity to use.
> MECH=pam
> 
> # Additional flags to pass to saslauthd on the command line.  See saslauthd(8)
> # for the list of accepted flags.
> FLAGS=
> 
> #vpostmaster
> MECH=rimap
> FLAGS="-r -O 127.0.0.1"
> --------
> 
> ------
>  saslauthd -v
> saslauthd 2.1.22
> authentication mechanisms: getpwent kerberos5 pam rimap shadow ldap
> ----
> 
> ----------
> sasldblistusers2 
> listusers failed
> --------
> 
> --------------------
> 
> postconf | grep sasl
> broken_sasl_auth_clients = yes
> lmtp_sasl_auth_enable = no
> lmtp_sasl_mechanism_filter =
> lmtp_sasl_password_maps =
> lmtp_sasl_path =
> lmtp_sasl_security_options = noplaintext, noanonymous
> lmtp_sasl_tls_security_options = $lmtp_sasl_security_options
> lmtp_sasl_tls_verified_security_options = $lmtp_sasl_tls_security_options
> lmtp_sasl_type = cyrus
> smtp_sasl_auth_enable = no
> smtp_sasl_mechanism_filter =
> smtp_sasl_password_maps =
> smtp_sasl_path =
> smtp_sasl_security_options = noplaintext, noanonymous
> smtp_sasl_tls_security_options = $smtp_sasl_security_options
> smtp_sasl_tls_verified_security_options = $smtp_sasl_tls_security_options
> smtp_sasl_type = cyrus
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_authenticated_header = no
> smtpd_sasl_exceptions_networks =
> smtpd_sasl_local_domain =
> smtpd_sasl_path = smtpd
> smtpd_sasl_security_options = noanonymous
> smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
> smtpd_sasl_type = cyrus
> 
> 
> --------------------
> 
> --------------------
>  rpm -V cyrus-sasl
> S.5....T c /etc/sysconfig/saslauthd
> 
> --------------------
> 
> ---------------
> rpm -q cyrus-sasl
> cyrus-sasl-2.1.22-4
> 
> --------------



i was having lost of issues with this, after a nother instaltion of
vPostmaster i got a nother error

========
Oct  6 00:20:51 test postfix/smtpd[4723]: warning: xsasl_cyrus_server_get_mechanism_list:
no applicable SASL mechanisms
Oct  6 00:20:51 test postfix/smtpd[4723]: fatal: no SASL authentication mechanisms
Oct  6 00:20:52 test postfix/master[4700]: warning: process /usr/libexec/postfix/smtpd pid 4723 exit status 1
Oct  6 00:20:52 test postfix/master[4700]: warning:
/usr/libexec/postfix/smtpd: bad command startup -- throttling
=======

so i have setup vpostmaster to use smtp auth via Dovecot SASL


here's my /etc/postfix/main.cf

#  vPostMaster setup
inet_interfaces = all
virtual_transport = vpm-pftransport
vpm-pftransport_destination_recipient_limit = 1
virtual_mailbox_domains = pgsql:/etc/postfix/vpm-domains
smtpd_sasl_auth_enable = yes
#smtpd_sasl_application_name = smtpd.conf
#smtpd_sasl_path = smtpd
broken_sasl_auth_clients = yes
#always_bcc = archive_address at example.com

# New Line
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth

my /etc/dovecot.conf

-----------------------
#  vPostMaster Configuration
protocol imap {
}

protocol pop3 {
}

auth default {
  mechanisms = plain
  passdb sql {
     args = /etc/dovecot-pgsql.conf
  }
  userdb sql {
     args = /etc/dovecot-pgsql.conf
  }

socket listen {
        client {
          path = /var/spool/postfix/private/auth
          mode = 0660
          user = postfix
          group = postfix
        }
}
  user = root
}


default_mail_env = maildir:~/Maildir/
first_valid_uid = 100
protocols = imap imaps pop3 pop3s


--------------

this fixed my issue, hope this helps any one else....






More information about the vPostMaster mailing list