Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-09-2008, 03:11 PM   #1
Registered: Jun 2005
Distribution: Various
Posts: 72

Rep: Reputation: 15
Postfix w/ sasl isn't prompting for password

Hello, LQ. Here's a little bit of background for the issue I'm having.

One of my clients has some proprietary software for sending out e-mails. I'm not sure what it does exactly, I just know they needed an SMTP server. This application runs on a separate server from the SMTP server, both of which are on the same 192.168.x.x subnet.

I setup Postfix for them without any authentication and it works fine. I can send e-mails to myself from both the localhost and remotely. However, this mail application of theirs doesn't work (for security reasons I'm guessing) if the server has no authentication. So, they asked me to give them a username and password.

Now, even though I've enabled sasl authentication in and I've followed a few guides, whenever I send mail, I'm never prompted for a login or password. It just goes straight through. Here's some of my configuration options:

smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
and smtpd.conf

pwcheck_method: saslauthd
auxprop_plugin: sasldb
saslauthd_path: /var/run/saslauthd/mux
mech_list: PLAIN LOGIN
Here's an excerpt from a telnet session:

220 ESMTP Postfix (Debian/GNU)
EHLO localhost
250-SIZE 10240000
250 DSN
535 5.7.0 Error: authentication failed: generic failure
I've never messed with Postfix, so I'm at a complete loss as to why this isn't working. Any help is greatly appreciated.
Old 06-10-2008, 07:55 AM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try searching for smtpd_sasl_auth_enable at I think that pretty much gives you what you need.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh prompting password maooah Linux - Enterprise 4 12-05-2007 09:42 AM
Ssh without prompting for a password deqmacrom Linux - General 2 04-21-2005 03:13 AM
Postfix, SASL with MySQL prompting for username and password acecomp Linux - Software 2 02-16-2005 03:04 PM
Prompting for a password with pppoe fcnewbie Mandriva 0 06-15-2004 02:36 PM
frequent password prompting jwhiz Linux - Newbie 3 12-27-2003 06:03 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration