ispCP - Board - Support
[HowTo] Replace courier with dovecot - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Howtos (/forum-41.html)
+--- Thread: [HowTo] Replace courier with dovecot (/thread-1421.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


RE: [HowTo] Replace courier with dovecot - rbtux - 02-05-2008 07:23 AM

Ah OK... then edit it in the howto... For that purpose its in the dokuwiki ;-)

Thx for the hint anyway. Just corrected it on my system.


RE: [HowTo] Replace courier with dovecot - NoFutureKid - 02-05-2008 07:35 AM

Only Problem is: I don't know How To edit the How To Cool


RE: [HowTo] Replace courier with dovecot - rbtux - 02-05-2008 07:38 AM

create an account and log in... then you can edit the page...

PS: I've done the change


RE: [HowTo] Replace courier with dovecot - NoFutureKid - 02-05-2008 07:40 AM

[offtopic]
Thanks, next time i will do it myself Rolleyes
[/offtopic}


RE: [HowTo] Replace courier with dovecot - joximu - 02-05-2008 07:43 AM

SCNR
Is the a "next time" for a "*No Future* Kid" Smile Smile


RE: [HowTo] Replace courier with dovecot - NoFutureKid - 02-05-2008 07:45 AM

sorry, wrong post.


RE: [HowTo] Replace courier with dovecot - rbtux - 02-05-2008 07:58 AM

not really...

the namespaces are only interpreted by the imap part but they are defined globally IMHO... Check with the dovecot-example.conf...


RE: [HowTo] Replace courier with dovecot - rbtux - 02-05-2008 07:59 AM

was investigating the time you deleted your post ;-) So nevermind...


RE: [HowTo] Replace courier with dovecot - hjansen - 02-11-2008 09:15 AM

Nice tutorial but i got crazy this night because whatever i did i could not create an e-mail adresse with an alias_domain. So the creation itself worked but i could not login because of a "Wrong password"

After debugging for a while i figured out that there is no sql query for alias domains so i could try to change my password and try to login forover.

Before somebody else get crazy, too here are my changes:

/etc/dovecot/dovecot-sql-aliasdomain.conf
Code:
driver = mysql
connect = host=localhost dbname=ispcp user=ispcp_dovecot password=mypass
password_query = SELECT md5(mail_pass) as password FROM (mail_users INNER JOIN domain_aliasses ON mail_users.sub_id = domain_aliasses.alias_id) INNER JOIN domain ON mail_users.domain_id = domain.domain_id WHERE mail_acc='%n' and domain_aliasses.alias_name ='%d';
user_query = SELECT concat('/var/mail/virtual/', domain_aliasses.alias_name, '/',mail_acc) as home, '1001' as uid, '8' as gid FROM (mail_users INNER JOIN domain_aliasses ON mail_users.sub_id = domain_aliasses.alias_id) INNER JOIN domain ON mail_users.domain_id = domain.domain_id WHERE mail_acc='%n' and domain_aliasses.alias_name ='%d';

/etc/dovecot/dovecot.conf
Code:
base_dir = /var/run/dovecot/
protocols = imap pop3
disable_plaintext_auth = no
listen=*
syslog_facility = mail
login_greeting = Dovecot ready.
mail_location = maildir:/var/mail/virtual/%d/%n
mail_extra_groups = mail
protocol imap {
}
namespace private {
  prefix = INBOX.
  inbox = yes
}
protocol pop3 {
  pop3_uidl_format = %u-%v
}
protocol lda {
  postmaster_address = postmaster@hostingchannel.de
  auth_socket_path = /var/run/dovecot/auth-master
}
auth default {
  mechanisms = plain login digest-md5
  passdb sql {
   args = /etc/dovecot/dovecot-sql-domain.conf
  }
  userdb sql {
   args = /etc/dovecot/dovecot-sql-domain.conf
  }
  passdb sql {
   args = /etc/dovecot/dovecot-sql-aliasdomain.conf
  }
  userdb sql {
   args = /etc/dovecot/dovecot-sql-aliasdomain.conf
  }
  passdb sql {
   args = /etc/dovecot/dovecot-sql-subdomain.conf
  }
  userdb sql {
   args = /etc/dovecot/dovecot-sql-subdomain.conf
  }
  socket listen {
   client {
    path = /var/spool/postfix/private/auth
    mode = 0660
    user = postfix
    group = postfix
   }
   master {
    path = /var/run/dovecot/auth-master
    mode = 0660
    user = vmail
    group = mail
   }
  }
  user = vmail
}
plugin {
}

If my lines are ok please somebody add them to the wiki

[/code]


RE: [HowTo] Replace courier with dovecot - rbtux - 02-11-2008 06:20 PM

thy for the update...

I'm waiting for the devs to use the mail_adress field.... so a lot would be easier...