Hi Daniel,

Thanks for your suggestions!

I *believe* I need to put something in local_recipient_maps in main.cf to
point it at the ldap aliases (I think this is to stop emails for non-users
being checked by amavisd etc???), but can't quite figure this out - can you
give a suggestion for this?

Thanks!
James.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Paul J Stevens
Sent: Tuesday, 29 April 2008 7:36 PM
To: DBMail mailinglist
Subject: Re: [Dbmail] DBMail / Postfix / LDAP / SASL2 AUTH



I havent checked Daniels HOWTO, but the simplest way is to use the rimap
mechanism for saslauthd. If dbmail-imapd is running, saslauthd will also
work, period.

If you use ldap for dbmail, pam, etc, though you are better off using
the ldap mechanism directly (imo, the sasl pam mechanism sucks if your
users are in ldap).

On debian:

postconf -e smtpd_sasl_auth_enable=yes

add permit_sasl_authenticated to the list in smtpd_recipient_restrictions



cat > /etc/default/saslauthd << EOF
START=yes
MECHANISMS="rimap -O localhost"
EOF

restart saslauthd and reload postfix. Done.


For LDAP you could use:
cat > /etc/default/saslauthd << EOF
START=yes
MECHANISMS="ldap"
EOF

cat > /etc/ldap/saslauthd.conf << EOF
ldap_servers: ldap://ldapserver.mydomain.com
ldap_use_sasl: no
ldap_version: 3
ldap_search_base: dc=mydomain,dc=com
EOF






Daniel Urstöger wrote:
> Hi James,
> 
> well you can start with the tutorial I have written here:
> 
>
http://kb.gosi.at/content/16/20/en/dbmail-mysql-postfix-smtp-auth-via-sasl2-
debian-etch.html
> 
> 
> but that one doesn´t cover LDAP, still it should give you working SASL
> and proper postfix setup.
> 
> greetings,
> Daniel
> _______________________________________________
> DBmail mailing list
> [email protected]
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
> 


-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail


_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to