Roundcube Community Forum

 

STARTTLS + SASL

Started by hellekin, October 30, 2006, 08:37:29 AM

Previous topic - Next topic

hellekin

I've got a mail server that only accepts SASL authentication if STARTTLS is used. That means RC won't let me send email, although I can use it to read email. Of course, the server won't adapt to RC.

Feature request : TLS support for SASL.


diego

Yes I need this feature too.

Edit

I have a solution, when You using Postfix and SASL with TLS, like me :)

edit the master.cf:
and uncomment or add this
# only used by postfix-tls
tlsmgr fifo - - n 300 1 tlsmgr
smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes

restart postfix
u will see:
netstat -l
tcp    0   0 mail.testsystem.local:ssmtp  *:*           LISTEN
...postfix listen now on port 465 (ssmtp)

no edit the main.inc.php from RC
$rcmail_config['smtp_server'] = 'ssl://localhost';
$rcmail_config['smtp_port'] = 465;

and You will see, it works:
tail -f /var/log/mail.log | loco
Oct 30 22:07:17 mail postfix/smtpd[32039]: setting up TLS connection from localhost[127.0.0.1]
Oct 30 22:07:17 mail postfix/smtpd[32039]: TLS connection established from localhost[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)

or mybe it works when You are using "smptd_enforce_tls = yes"...