LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Postfix w/ sasl isn't prompting for password (https://www.linuxquestions.org/questions/linux-software-2/postfix-w-sasl-isnt-prompting-for-password-648090/)

crontab 06-09-2008 02:11 PM

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. :)

billymayday 06-10-2008 06:55 AM

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.


All times are GMT -5. The time now is 10:33 PM.