With this configuration on /etc/default/saslauthd

MECHANISMS="rimap"
MECH_OPTIONS="127.0.0.1:143"
OPTIONS="-c"

the authentication does not work, but using

MECH_OPTIONS="localhost"

it runs ok.
I can test it with testsasalauth and my users:

testsaslauthd -u user -p pass

and the user authenticates, but when I try to connect with telnet it fails, and if I try with thunderbird client, it fails too...

 Do I have to set on /etc/dbmail/dbmail.conf :

[IMAP]
IMAP_BEFORE_SMTP      = yes

I set and test this, but I got the same result.

Any idea?



El 04/02/2014 17:54, Jaime Fuentes - Ditecal escribió:

El 04/02/2014 17:37, Paul J Stevens escribió:
On 04-02-14 17:28, Jaime Fuentes - Ditecal wrote:
This is my /etc/default/saslauthd

START=yes
DESC="SASL Authentication Daemon"
NAME="saslauthd"
MECHANISMS="pam"
MECH_OPTIONS=""
THREADS=5
OPTIONS="-c -m /var/run/saslauthd"
Using MECHANISM="pam" means that SASL will try to authenticate against
the PAM services, which is very definitely *not* what you want.

Use:

MECHANISMS="rimap"
MECH_OPTIONS="127.0.0.1:143"
OPTIONS="-c"

root@correo1:/etc/postfix/sasl# service saslauthd restart
Stopping SASL Authentication Daemon: saslauthd.
Starting SASL Authentication Daemon: saslauthdsaslauthd[9539] :set_auth_mech : failed to initialize mechanism rimap



if necessary, tamibén I paste my smtpd.conf

pwcheck_method: auxprop
auxprop_plugin: sql
sql_engine: mysql
mech_list: PLAIN LOGIN
sql_hostnames: localhost
sql_user: dbmail
sql_passwd: QAwsED123
sql_database: dbmail
sql_verbose: yes
sql_select: SELECT passwd FROM dbmail_users WHERE userid = '%u@%r'

So *this* means you store your passwords in cleartext in the database,
which may, or may not be true.

Yes, I store all my passwords in plain text on de database.

Try:

cat /etc/postfix/sasl/smtpd.conf
mech_list: PLAIN LOGIN ANONYMOUS
pwcheck_method: saslauthd

so sasl will know to use saslauthd. And with the example I show above,
saslauthd will verify by making a IMAP connection. Modify the
MECH_OPTIONS to match your imap server address.

With this options, I do not authenticate, only establish a imap connection before an smtp, Am I right?

Regards!

_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail



_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to