Re: [Dovecot] How to get a working dovecot.conf?
Hi, As a matter of fact no.. I am sort of new to commandline, and i find it extremely difficult to find my way between all howto's.. to know which command to use where, and when but i am learning I have taken a look at dovecot-sql.conf, and saw a few possibilities, or options: the path to the databasefile, from which i think it should be: connect = /etc/dovecot/authdb.sqlite default_pass_scheme = MD5 but then, i am lost. it atm looks like abracadabra to me.. at the end of the file is the config of ISPConfig: driver = mysql connect = host=localhost dbname=dbispconfig user=ispconfig password=50b0152ba02189a94881c371ef1ef128 default_pass_scheme = CRYPT password_querry = SELECT password FROM mail_user WHERE email = '%u' AND disable%Ls = 'n' user_querry = SELECT email as user, maildir as home, CONCAT('maildir:', maildir,'/Maildir') as mail, uid, gid, CONCAT('maildir:storage=', floor(quota/1024))AS quota, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE email = '%u' AND disable%Ls = 'n' at this moment i would not know what i should write here when i want to login from squirrelmail... AND most important: how to create a user and password at the right place... thnx for your attention... Rob. Op 24-12-10 18:25, Kerem Erciyes schreef: > Hi, > > Have you populated the dovecot-sql.conf and the SQL database tahat is > referenced by it? > > -KE > > On Fri, Dec 24, 2010 at 6:24 PM, oddball56 wrote: > >> Hi again, >> >> It seems i have undone some errors, as the output now shows the version of >> dovecot and the os: >> >> # 2.0.8: /etc/dovecot/dovecot.conf >> # OS: Linux 2.6.34.7-0.5-default i686 openSUSE 11.3 (i586) reiserfs >> auth_mechanisms = plain login >> disable_plaintext_auth = no >> first_valid_gid = 1000 >> first_valid_uid = 1000 >> last_valid_gid = 5000 >> last_valid_uid = 5000 >> log_timestamp = "%Y-%m-%d %H:%M:%S " >> mail_location = maildir:/var/vmail/%d/%n/Maildir >> managesieve_notify_capability = mailto >> managesieve_sieve_capability = fileinto reject envelope encoded-character >> vacation subaddress comperator-i;ascii-numeric relational regex imap4flags >> copy include variables body enotify environment mailbox date >> passdb { >> driver = pam >> } >> passdb { >> args = /etc/dovecot-sql.conf >> driver = sql >> } >> plugin { >> quota = maildir >> sieve = ~/.dovecot.sieve >> sieve_dir = ~/sieve >> } >> protocols = imap pop3 >> ssl = no >> userdb { >> driver = passwd >> } >> userdb { >> args = /etc/dovecot-sql.conf >> driver = sql >> } >> protocol imap { >> mail_plugin_dir = /usr/lib/dovecot/imap >> mail_plugins = quota imap_quota >> service imap { >>executable = /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap >> } >> } >> protocol pop3 { >> mail_plugin_dir = /usr/lib/dovecot/modules/pop3 >> mail_plugins = quota >> pop3_uidl_format = %08Xu%08Xv >> service pop3 { >>executable = /usr/lib/dovecot/rawlog /usr/lib/dovecot/pop3 >> } >> } >> protocol sieve { >> service sieve { >>executable = /usr/lib/dovecot/managesieve >> } >> } >> protocol lda { >> auth_socket_path = /var/run/dovecot/auth-master >> hostname = AsusTT-sfn6 >> mail_plugins = sieve quota >> postmaster_adress = postmas...@asustt-sfn6.site >> } >> >> >> I have not been able to login, but going to start over creating a userdb to >> test. >> Thanx for the help, it feels great to know there are people out there who >> care, and want to help others.. >> >> Rob. >> >> >> >> -- >> View this message in context: >> http://old.nabble.com/How-to-get-a-working-dovecot.conf--tp30506797p30528849.html >> Sent from the Dovecot mailing list archive at Nabble.com. >> >> >> > > > -- Enjoy your time around, Oddball(M9.) (Now or never...) OS: Linux 2.6.34-12-desktop x86_64 Huidige gebruiker: oddb...@amd64x2sfn1 Systeem: openSUSE 11.3 (x86_64) KDE: 4.4.4 (KDE 4.4.4) "release 2"
Re: [Dovecot] How to get a working dovecot.conf?
acheunix - - - - 1 scache > # > # > # Interfaces to non-Postfix software. Be sure to examine the manual > # pages of the non-Postfix software to find out what options it wants. > # > # Many of the following services use the Postfix pipe(8) delivery > # agent. See the pipe(8) man page for information about ${recipient} > # and other message envelope options. > # > # > dovecot unix - n n - - pipe > flags=DRhu user=mail:mail argv=/usr/lib/dovecot/deliver -d ${recipient} > > /etc/dovecot/passwd > > r...@server.com:{PLAIN}mypassword > u...@server.com <mailto:u...@server.com>:{PLAIN}mypassword > i...@server.org <mailto:i...@server.org>:{PLAIN}mypassword > > /etc/postfix/virtual_mailbox_domains - which domains are allowed to > relay mail > > server.com <http://server.com> > server.org <http://server.org> > server.net <http://server.net> > > /etc/postfix/virtual_mailbox_maps - where are mailboxes with regard to > the mail home > > r...@server.com <mailto:r...@server.com> server.com/root/ > <http://server.com/root/> > u...@server.com <mailto:u...@server.com> server.com/user/ > <http://server.com/user/> > i...@server.org <mailto:i...@server.org> server.org/info/ > <http://server.org/info/> > > addmailuser.sh - add the mail user to /etc/dovecot/passwd and > /etc/postfix/virtual_mailbox_maps, rehash the virtual_mailbox_maps > file so the user can be found via postfix > > #!/bin/bash > > echo "$1" > /tmp/user > user=`cat /tmp/user | cut -f1 -d "@"` > domain=`cat /tmp/user | cut -f2 -d "@"` > echo "$u...@$domain:{PLAIN}$2" >> /etc/dovecot/passwd > > # add user to postfix virtual map file and reload Postfix > echo $1$domain/$user/ >> /etc/postfix/virtual_mailbox_maps > postmap /etc/postfix/virtual_mailbox_maps > > echo "$1 added to user database, reload postfix & dovecot to activate > this user" > > > > > > > On Fri, Dec 24, 2010 at 9:32 PM, Oddball <mailto:monk...@iae.nl>> wrote: > > Hi, > > > > As a matter of fact no.. > > I am sort of new to commandline, and i find it extremely difficult to > > find my way between all howto's.. to know which command to use where, > > and when but i am learning > > I have taken a look at dovecot-sql.conf, and saw a few possibilities, or > > options: > > the path to the databasefile, from which i think it should be: > > > > connect = /etc/dovecot/authdb.sqlite > > > > default_pass_scheme = MD5 > > > > but then, i am lost. it atm looks like abracadabra to me.. > > > > at the end of the file is the config of ISPConfig: > > > > driver = mysql > > connect = host=localhost dbname=dbispconfig user=ispconfig > > password=50b0152ba02189a94881c371ef1ef128 > > default_pass_scheme = CRYPT > > > > password_querry = SELECT password FROM mail_user WHERE email = '%u' AND > > disable%Ls = 'n' > > user_querry = SELECT email as user, maildir as home, CONCAT('maildir:', > > maildir,'/Maildir') as mail, uid, gid, CONCAT('maildir:storage=', > > floor(quota/1024))AS quota, CONCAT(maildir, '/.sieve') as sieve FROM > > mail_user WHERE email = '%u' AND disable%Ls = 'n' > > > > at this moment i would not know what i should write here when i want to > > login from squirrelmail... > > AND most important: how to create a user and password at the right > place... > > > > thnx for your attention... > > > > Rob. > > > > > > Op 24-12-10 18:25, Kerem Erciyes schreef: > >> Hi, > >> > >> Have you populated the dovecot-sql.conf and the SQL database tahat is > >> referenced by it? > >> > >> -KE > >> > >> On Fri, Dec 24, 2010 at 6:24 PM, oddball56 <mailto:monk...@iae.nl>> wrote: > >> > >>> Hi again, > >>> > >>> It seems i have undone some errors, as the output now shows the > version of > >>> dovecot and the os: > >>> > >>> # 2.0.8: /etc/dovecot/dovecot.conf > >>> # OS: Linux 2.6.34.7-0.5-default i686 openSUSE 11.3 (i586) reiserfs > >>> auth_mechanisms = plain login > >>> disable_plaintext_auth = no > >>> first_valid_gid = 10