Re: Postfix and SASL2 authentication

From: Sunil Sunder Raj (unixtools_at_hotmail.com)
Date: 11/14/03

  • Next message: Rilindo Foster: "Re: RV: FW: Script configure failed unexpectedly"
    To: minter@lunenburg.org
    Date: Fri, 14 Nov 2003 12:11:04 +0530
    
    

    Hi,
    Enable verbose logging so that you get readable error messages.

    8) ee /usr/local/etc/postfix/master.cf
    search for smtpd and append -v.
    When your done it should look like this:
    # ==========================================================================
    # service type private unpriv chroot wakeup maxproc command + args
    # (yes) (yes) (yes) (never) (50)
    # ==========================================================================
    smtp inet n - n - - smtpd -v

    restart postfix. Without properlogs you cannot cometo a conclusion.

    Regards
    SSR

    >From: "H. Wade Minter" <minter@lunenburg.org>
    >To: freebsd-questions@freebsd.org
    >Subject: Postfix and SASL2 authentication
    >Date: Thu, 13 Nov 2003 10:48:21 -0500 (EST)
    >
    >-----BEGIN PGP SIGNED MESSAGE-----
    >Hash: SHA1
    >
    >I've been able to get Postfix and SASL1 to authenticate to system accounts
    >under FreeBSD with no problem, but now I'm trying to use SASL2. I'm
    >running into problems.
    >
    >I built postfix and sasl2 from ports with no problems. I created
    >/usr/local/lib/sasl2/smtpd.conf:
    >
    >pwcheck_method: saslauthd
    >mech_list: plain login
    >
    >saslauthd is being run with the "-a getpwent" flags from /etc/rc.conf.
    >
    >Postfix is set up to use SASL:
    >
    >enable_sasl_authentication = yes
    >smtpd_sasl_auth_enable = yes
    >smtpd_sasl_security_options = noanonymous
    >smtpd_sasl_local_domain = $myhostname
    >broken_sasl_auth_clients = yes
    >
    >However, when I test with a base64-encoded username\0username\0password
    >string, it doesn't authenticate:
    >
    >Nov 13 07:46:29 taz postfix/smtpd[327]: < localhost[127.0.0.1]: AUTH PLAIN
    >bWludGVyAG1pbnRlcgBjaGFuZ2VtZQ==
    >Nov 13 07:46:29 taz postfix/smtpd[327]: smtpd_sasl_authenticate:
    >sasl_method PLAIN, init_response bWludGVyAG1pbnRlcgBjaGFuZ2VtZQ==
    >Nov 13 07:46:29 taz postfix/smtpd[327]: smtpd_sasl_authenticate: decoded
    >initial response minter
    >Nov 13 07:46:29 taz postfix/smtpd[327]: warning: SASL authentication
    >failure: Password verification failed
    >Nov 13 07:46:29 taz postfix/smtpd[327]: warning: localhost[127.0.0.1]:
    >SASL PLAIN authentication failed
    >Nov 13 07:46:29 taz postfix/smtpd[327]: > localhost[127.0.0.1]: 535 Error:
    >authentication failed
    >
    >Does anyone know what I'm doing wrong?
    >
    >- --Wade
    >-----BEGIN PGP SIGNATURE-----
    >Version: GnuPG v1.2.3 (FreeBSD)
    >
    >iD8DBQE/s6fHo4DwsyRGDscRAtq5AJ9jV/BCr0r8n/Mc6n73Miv07b1NAwCePs5m
    >uOeXWaE2WlXwBSvWJuW8mfA=
    >=XVfP
    >-----END PGP SIGNATURE-----
    >
    >_______________________________________________
    >freebsd-questions@freebsd.org mailing list
    >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    >To unsubscribe, send any mail to
    >"freebsd-questions-unsubscribe@freebsd.org"

    _________________________________________________________________
    Contact brides & grooms FREE! Only on www.shaadi.com.
    http://www.shaadi.com/ptnr.php?ptnr=hmltag Register now!

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Rilindo Foster: "Re: RV: FW: Script configure failed unexpectedly"

    Relevant Pages

    • Re: Postfix and SASL2 authentication
      ... Subject: Postfix and SASL2 authentication ... > under FreeBSD with no problem, but now I'm trying to use SASL2. ... > SASL PLAIN authentication failed ...
      (freebsd-questions)
    • Re: exim4 maybe too complex to remain useful
      ... I used postfix for a very short time with a smarthost that at that time didn't require authentication so had no need to check out what capabilities postfix might or might not have had at that time with respect to smarthost authentication. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Postfix and smtp auth
      ... requires authentication to send emails externally, ... My current configuration for postfix ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Linux and Verizon FiOS
      ... > to quit using sendmail to get to the Internet. ... mutt through esmtp should work for outgoing mail. ... I use postfix as my ... One quirk with postfix and Verizon's authentication required ...
      (comp.os.linux.misc)
    • Re: Postfix and MySQL
      ... SMTP Authentication with Postfix and MySQL ... a way for them to say to your SMTP server "hey I ... One way to do is is using SMTP Authentication. ...
      (RedHat)