SMTP-Auth for IMAP users
From Zarafa wiki
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 127.0.0.1 -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 MECHANISMS="rimap" MECH_OPTIONS="127.0.0.1" THREADS=0 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/main.cf smtpd_sasl_auth_enable = yes smtpd_sasl_path = smtpd
With Debian 6.0 there maybe also a permission issue. Check perms of
/var/spool/postfix/var/run/saslauthd
...if you get errors like:
warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
http://forums.zarafa.com/viewtopic.php?f=14&t=5483&p=24877#p24877 (broken link / wrong topic ?)