seeking sasl configuration example
shadrock uhuru
niyalevi at gmail.com
Tue Apr 28 21:37:33 UTC 2015
On 26/04/15 15:22, Edgar Pettijohn III wrote:
>
> On Apr 26, 2015, at 4:32 AM, shadrock uhuru wrote:
>
>> hi everyone
>> could someone show me there sasl configuration section in their
>> dovecot.conf,
>> i have postfix and dovecot setup for virtual users (no system users)
>> everything works fine including tls,
>> i have tried various examples off the web for sasl but they either have
>> obsolete parameters
>> or are for a setup with system users,
>> i would prefer to use dovecots sasl implementation.
>>
>> dovecot --version = 2.1.7
>>
>> cat dovecot.conf
>>
>> ######################
>> ######################
>>
>> disable_plaintext_auth = no
>> mail_privileged_group = mail
>>
>> log_path = /var/log/dovecot.log
>> # auth_verbose=yes
>> # auth_debug=yes
>> # auth_debug_passwords=yes
>> mail_debug=yes
>> # verbose_ssl=yes
>>
>> passdb {
>> args = /etc/dovecot/dovecot-sql.conf
>> driver = sql
>> }
>> userdb {
>> driver = prefetch
>> }
>> userdb {
>> args = /etc/dovecot/dovecot-sql.conf
>> driver = sql
>> }
>>
>>
>> protocols = "pop3 imap lmtp"
>>
>> protocol imap {
>> mail_plugins = " autocreate"
>> }
>>
>> plugin {
>> autocreate = Trash
>> autocreate2 = Sent
>> autocreate3 = junk
>> autosubscribe = Trash
>> autosubscribe2 = Sent
>> autosubscribe3 = junk
>> }
>>
>> service auth {
>> unix_listener /var/spool/postfix/private/auth {
>> group = postfix
>> mode = 0660
>> user = postfix
>> }
>> }
>>
>
> That should do it. You just need to make sure postfix is set up
> correctly.
>
> http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL
>
>>
>> service lmtp {
>> unix_listener /var/spool/postfix/private/dovecot-lmtp {
>> group = postfix
>> mode = 0600
>> user = postfix
>> }
>> }
>> protocol lmtp {
>> postmaster_address=postmaster at mydomain.com
>> <mailto:postmaster_address=postmaster at mydomain.com>
>> hostname=niya.mydomain.com
>> }
>>
>> ssl_cert = </etc/ssl/certs/mailcert.pem
>> ssl_key = </etc/ssl/private/mail.key
>>
>> ######################
>> ######################
>>
>>
>> thanks
>> shadrock
>
many thank Edgar
sasl is working but i was testing the smtp port instead of submission
that sasl is setup for.
More information about the dovecot
mailing list