Discussion:
SMTP Authentication
(too old to reply)
Zoltan Gyula Beck
20 years ago
Permalink
Hi!

I've a problem with SMTP authentication. I'm using the following programs:
postfix 2.1.5-6
sasl2-bin 2.1.19-1.5
slapd 2.1.30-3

The SASL seems to work:
testsaslauthd -u ***@csoda.van -p secret
0: OK "Success."

I must authenticate the users from any ip addresses. I used the
smtp_sasl_auth_enable = yes

cat /etc/postfix/sasl/smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login

But the postfix said:

pr 1 06:13:29 localhost postfix/smtp[29052]: fatal: specify a
password table via the `smtp_sasl_password_maps' configuration
parameter
Apr 1 06:13:30 localhost postfix/master[29046]: warning: process
/usr/lib/postfix/smtp pid 29052 exit status 1
Apr 1 06:13:30 localhost postfix/master[29046]: warning:
/usr/lib/postfix/smtp: bad command startup -- throttling
Apr 1 06:14:30 localhost postfix/smtp[29056]: fatal: specify a
password table via the `smtp_sasl_password_maps' configuration
parameter
Apr 1 06:14:31 localhost postfix/master[29046]: warning: process
/usr/lib/postfix/smtp pid 29056 exit status 1

what kind of password table must be configured?

Best regards
Zoltan
Duncan Hill
20 years ago
Permalink
Post by Zoltan Gyula Beck
I must authenticate the users from any ip addresses. I used the
smtp_sasl_auth_enable = yes
^^^^^^^^

That says to enable the SMTP -client- authentication in Postfix, not the SMTPd
server authentication. Re-read the documentation :)
Duncan Hill
20 years ago
Permalink
Something not clear for me, so the outgoing smtp I must authenticate.
What can I do?
smtp_* settings in main.cf control the postfix smtp client component - the
component that talks to other SMTP servers to deliver mail to them.

smtpD_* settings in main.cf control the postfix smtp server component - the
component that accepts mail from other SMTP servers and your users.

Your original mail stated that you want to authenticate your users (I would
guess because you want to use authentication to permit relaying). To do
that, you need to enable smtpD_sasl_auth_enable, not smtp_sasl_auth_enable.

I recommend reading http://postfix.state-of-mind.de/patrick.koetter/smtpauth/
if you haven't already. It should help you work out what you're trying to
do.

Continue reading on narkive:
Loading...