Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix and dovecot config problem [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
flatFoot_9
n00b
n00b


Joined: 05 Nov 2009
Posts: 4

PostPosted: Thu Nov 05, 2009 6:25 pm    Post subject: Postfix and dovecot config problem [solved] Reply with quote

Hi,

My postfix has broken after reinstalling and uppgrading. Can anyone help me, I can't find out what the problem is?


This is how my log looks like:
Code:
Nov  5 19:39:55 myhost postfix/smtp[12992]: warning: unsupported SASL client implementation: dovecot
Nov  5 19:39:55 myhost postfix/smtp[12992]: fatal: SASL library initialization
Nov  5 19:39:56 myhost postfix/master[9811]: warning: process /usr/lib/postfix/smtp pid 12992 exit status 1
Nov  5 19:39:56 myhost postfix/master[9811]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling


Postfix-2,5,7 is built with USE="ipv6 pam postgres dovecot-sasl ssl" and dovecot-1.1.7-r1 with USE="berkdb ipv6 pam postgres ssl"


postfix/main.cf
Code:
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay


postfix/master.cf
Code:
dovecot unix - n n - - pipe flags=DRhu user=mail:mail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${recipient}


dovecot/dovecot.conf
Code:

auth default {
  mechanisms = cram-md5
  socket listen {
    client {
      path = /var/spool/postfix/private/auth
      mode = 0660
      user = postfix
      group = postfix
    }
  }

  passdb passwd-file {
    args = /etc/dovecot.cram-md5.pwd
  }
}


#postconf -a
Code:
dovecot


#postconf -A (generates no output)


Last edited by flatFoot_9 on Thu Nov 05, 2009 9:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2167
Location: Berkshire, UK

PostPosted: Thu Nov 05, 2009 8:08 pm    Post subject: Reply with quote

I think your nesting of the Dovecot config is a bit different to mine. Check out this - http://wiki.dovecot.org/HowTo/PostfixAndDovecotSASL
Back to top
View user's profile Send private message
flatFoot_9
n00b
n00b


Joined: 05 Nov 2009
Posts: 4

PostPosted: Thu Nov 05, 2009 9:25 pm    Post subject: Reply with quote

I updated with the userdb passwd {}. I didn't want to change to plain text login since it's very common that I remotly access a mutt session to get my mail. I then don't want to send my password in plaintext.


my dovecot/dovecot.conf looks like this (and everything seems to work fine)
Code:
auth default {
  mechanisms = cram-md5
  userdb passwd {
  }
  socket listen {
    client {
      path = /var/spool/postfix/private/auth
      mode = 0660
      user = postfix
      group = postfix
    }
  }

  passdb passwd-file {
    args = /etc/dovecot.cram-md5.pwd
  }
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum