SMTP-Auth for IMAP users

From Zarafa wiki

Jump to: navigation, search

This article is a community contribution and may include unsupported configurations.

Users which use Zarafa with IMAP need a SMTP gateway in order to send mail. An open relay to a closed environment (LAN) is possible, but doesn't work for external users which access over the internet (only when using vpn).

An easy way is to configure SASL to authenticate against the IMAP service using rimap.

saslauthd -a rimap -r -O imap-server

e.g. to authenticate on Zarafa's local IMAP gateway

saslauthd -a rimap -O -c

If you implement this into postfix with Debian please don't forget these steps:

apt-get install sasl2-bin
Edit /etc/postfix/sasl/smtpd.conf

pwcheck_method: saslauthd
mech_list: plain login
Edit /etc/default/saslauthd

OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"

Otherwise you end up with errors because of the postfix chroot environment.

Edit /etc/postfix/

smtpd_sasl_auth_enable = yes
smtpd_sasl_path = smtpd

With Debian 6.0 there maybe also a permission issue. Check perms of


...if you get errors like:

 warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied (broken link / wrong topic ?)

Personal tools