LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-09-2008, 03:11 PM   #1
crontab
Member
 
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 main.cf 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:

Code:
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

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

Code:
220 smtp.example.com ESMTP Postfix (Debian/GNU)
EHLO localhost
250-smtp.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
AUTH PLAIN dGF4dmVyAHRheHZlcgB0YXh2ZXI=
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
billymayday
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 http://www.postfix.org/postconf.5.html. I think that pretty much gives you what you need.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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