nfs_flush_chown_uid errors over NFS
Hello all, We use an older version of dovecot 2.0.19 on Ubuntu 12.04 using an NFS share, also a linux box. Now we want to migrate the storage to a FreeBSD server and later on the mailservers them self. In the firsts test all looks fine, but we do see some errors some times. Error: nfs_flush_chown_uid: chown(/var/mail/virtual/domain.com/user/Maildir) failed: Invalid argument This does not happen all the time but sometimes it shows up. I can read all the mail using an mailclient and the uid shows the user vmail:vmail. Is this cosmetic or is there something wrong? Thanks for your time Regards johan
Re: [Dovecot] Where's Dovecot's ports?
Mohsen Pahlevanzadeh wrote: On Thu, 2013-09-12 at 08:33 +0200, Daniel Parthey wrote: Hi Mohsen, please post the output of doveconf -n Regards Daniel i attached my "doveconf -n" maybe dovecot is not using the ports on localhost but on the interface ip adress itself. So nmap would show other things than nmap localhost. regards Johan
Re: [Dovecot] 76Gb to 146Gb
Spyros Tsiolis schreef: Hello all, I have a DL360 G4 1U server that does a wonderfull job with dovecot horde, Xmail and OpenLDAP for a company and serving about 40 acouunts. The machine is wonderful. I am very happy with it. However, I am running out of disk space. It has two times 76Gb Drives in RAID1 (disk mirroring) and the capacity has reached 82%. I am starting of getting nervous. Does anyone know of a painless way to migrate the entire contents directly to another pair of 146Gb SCSI RAID1 disks ? I thought of downtime and using clonezilla, but my last experience with it was questionable. I remember having problems declaring disk re-sizing from the smaller capacity drives to the larger ones. CentOS 5.5 Manual install of : Mysql XMail (pop3/smtp) ASSP (anti spam) Apache / LAMP and last but by no means list : Dovecot Dovecot -n : # 1.2.16: /etc/dovecot/dovecot.conf # OS: Linux 2.6.18-194.17.4.el5 i686 CentOS release 5.5 (Final) ext3 base_dir: /var/run/dovecot/ log_path: /var/log/dovecot/dovecot.log info_log_path: /var/log/dovecot/dovecot-info.log ssl_parameters_regenerate: 48 verbose_ssl: yes login_dir: /var/run/dovecot//login login_executable: /usr/local/dovecot/libexec/dovecot/imap-login login_greeting: * Dovecot ready * login_max_processes_count: 96 mail_location: maildir:/var/MailRoot/domains/%d/%n/Maildir mail_plugins: zlib auth default: verbose: yes debug: yes debug_passwords: yes passdb: driver: passwd-file args: /etc/dovecot/passwd passdb: driver: pam userdb: driver: static args: uid=vmail gid=vmail home=/home/vmail/%u userdb: driver: passwd Any help would be appreciated or any ideas you might have. Regards, spyros "I merely function as a channel that filters music through the chaos of noise" - Vangelis A solution you could try is add a new server to the mix. Leave the OS on the DL360 and put the mail data on a second machine. Then use NFS to mount the new data store. If you use a ZFS solution, expanding your data store is a no brainer. 146 GB drives are expensive, for 40 users SATA drives can do the job without any problem. gr Johan Hendriks
Re: [Dovecot] BestPractice to migrate imap mailbox from one machine to another
Tobias Hachmer schreef: Hi list, currently I use dovecot v1.2.15 with maildir++ mailboxes. (Debian Squeeze) I want to set up a different server with dovecot v2, also maildir++ mailboxes. (also Debian Squeeze) What is the best way to copy the existing mailboxes from the older machine running dovecot v1.2.15 to the new naked machine? Greetz, Tobias I did the same thing, with no know issues so far. My old server was running dovecot 1.2.x and i coppied the whole maildir structure to the other machine. Then started Dovecot 2.x and all was fine. Should be the same as instlling 2.0 over the old 1.2.x version, then it uses the old maildir also. Well test it i would say. Just do the copy, and try if everything works. then do it for a final migration. Gr Johan Hendriks
Re: [Dovecot] mail spool filesystem
Julio Cesar Covolato schreef: . I read that XFS is a good choice, but is not too reliable... I did not know FreeBSD had XFS. Well serieus now, be a little more specific. Which OS and so on. regards, Johan Hendriks
Re: [Dovecot] DoveCot plugin "mailbox approaching limit" warning?
Zhou, Yan schreef: Hi there, I am aware of the "Quota" plugin, but is there any way that DoveCot will place a warning message in user mailbox if it is getting close to its mail quota (but have not exceeded yet)? Thanks, Yan Sorry forgot the URL in my first answer http://wiki2.dovecot.org/Quota/Configuration And look for quota_warning. regards Johan Hendriks Double L Automatisering
Re: [Dovecot] DoveCot plugin "mailbox approaching limit" warning?
Zhou, Yan schreef: Hi there, I am aware of the "Quota" plugin, but is there any way that DoveCot will place a warning message in user mailbox if it is getting close to its mail quota (but have not exceeded yet)? Thanks, Yan Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmas...@medplus.com). After replying, please erase it from your computer system. Try this page and search for quota_warning regards Johan Hendriks Double L Automatisering
Re: [Dovecot] share an IMAP folder ?
Frank Bonnet schreef: Hello Is it possible to share an Imap folder for a user with another one ? user a > imap-folder1 ^ user b >--| Could user a share his folder "imap-folder1" with user b in readonly mode ? I use "real" users ( not virtuals ) Thanks a lot. This is possible, we use this in combination with roundcube to share folders. Users log in to there webmail interface and can share there folder there. Thunderbird has an plugin also. But the most users use Microsoft Outlook, with has as far i know no option to create a share. You can create this shared folders through namespaces. Gr Johan Hendriks
Re: [Dovecot] permissions for dbox attachment directory
i...@tnde.org schreef: I am running dovecot 2.0.13 on CentOS5, set up with only local system users, and single instance store set up in a single directory. e.g. mail_attachment_dir = /var/mail/attachments I get errors when importing mail to IMAP because the attachment directories are owned by the respective mail account user(s) and so cannot be accessed or written to by other users. Are there some user id setting I need to change, or do I have to run dovecot with virtual users under a single system account? Thanks! Please post the exact error message, and the output of dovecot -n This way it is much easier for people to help you, and it takes less guessing what is going on. Gr Johan Hendriks Double L Automatisering
Re: [Dovecot] Please help with Quota dict mysql configuration
Denis Iskandarov schreef: Thanks for your samples, they would help me so much! My config is commented because i didn't know how to properly configure it, didn't understand theory to start doing things on practice. can you show me your dovecot-mysql.conf as well ? it should be final peace of puzzle for me. i'm interested in this two almost different user_query lines: user_query = SELECT concat('/home/vmail/', maildir) as home, concat('maildir:/home/vmail/', maildir) as mail, 1001 AS uid, 12 AS gid, concat('maildir:storage=', quota) AS quota FROM mailbox WHERE username = '%u' AND active = '1' user_query = SELECT maildir, 1001 AS uid, 1001 AS gid, CONCAT('dict:storage=',floor(quota/1000),' proxy::quota') as quota FROM mailbox WHERE username = '%u' AND active='1' first one provided from dovecot wiki and second one from postfixadmin docs regarding dovecot configuration. may i use user_query like this? : user_query = SELECT concat('/home/vmail/', maildir) as home, concat('maildir:/home/vmail/', maildir) as mail, 1001 AS uid, 12 AS gid, CONCAT('dict:storage=',floor(quota/1000),' proxy::quota') AS quota FROM mailbox WHERE username = '%u' AND active = '1' seems like this line doing some nice customization showing quota in kilobytes and not in bytes. or if someone could explain what does this string means. also what does this line means ?: concat('maildir:/home/vmail/', maildir) as mail string about home i understood dovecot reads users home dir from this line. And i dont understand if why should i indicate in 10-mail.conf next string: mail_location = maildir:/home/vmail/%d/%u If it is overided by user_query from mysql? Also what is meaning of quota(2) table. does dovecot reading configuration from there or just stores usage information ? Also what does this string mean?: pattern = priv/quota/messages what privileges those who reads the, or where are they indicated ? Thanks in advance. Denis. Maybe stupid, but are these plugin examples really from your dovecot.conf file ? If so remove the # before the quota lines! this is my part from dovecot.conf (only relavant quota parts.) quotadict = mysql:/usr/local/etc/dovecot/dovecot-dict-quota.conf plugin { # Quota config quota = dict:User quota::noenforcing:proxy::quotadict quota_rule = *:storage=1G quota_rule2 = Trash:storage=+100M quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=90%% quota-warning 90 %u quota_warning3 = storage=80%% quota-warning 80 %u #OTHER Plugins } service quota-warning { executable = script /usr/local/bin/quota-warning.sh user = vmail unix_listener quota-warning { user = vmail } } protocol imap { imap_client_workarounds = delay-newmail tb-extra-mailbox-sep imap_idle_notify_interval = 120 s imap_logout_format = bytes=%i/%o imap_max_line_length = 65536 mail_plugins = quota imap_quota autocreate acl imap_acl mail_log notify fts fts_squat } protocol lmtp { auth_socket_path = /var/run/dovecot/auth-master mail_plugins = sieve quota acl mail_log notify postmaster_address = postmas...@yourdomain.com sendmail_path = /usr/local/sbin/sendmail } Above protocol lmtp could be protocol lda in your case This is my dovecot-dict-quota.conf file # Dovecot 2.0.x connect = host=192.xxx.xxx.xxx dbname=postfix user=postfix password=mypostfixpasswd map { pattern = priv/quota/storage table = quota2 username_field = username value_field = bytes } map { pattern = priv/quota/messages table = quota2 username_field = username value_field = messages } This is my /usr/local/bin/quota-warning.sh file #!/usr/local/bin/bash PERCENT=$1 USER=$2 cat<< EOF | /usr/local/libexec/dovecot/deliver -d $USER -o "plugin/quota=maildir:User quota:noenforcing" From: supp...@yourdomain.com Subject: quota warning Uw mailbox is momenteel voor $PERCENT% gevult. Verwijder oude mail, of vraag een verruiming van uw quota aan. Your mailbox is now $PERCENT% full. Please remove some old mail, or ask for a larger quota. Skrzynka pocztowa jest w tym momencie w $PERCENT% zapelniona. Usun stare wiadomosci,albo przenies w inny folder. EOF Hope this helps. Regards, Johan Hendriks Double L Automatisering Here it is. # Database driver: mysql, pgsql driver = mysql # Currently supported schemes include PLAIN, PLAIN-MD5, DIGEST-MD5, and CRYPT. default_pass_scheme = CRYPT # Database options connect = host=192.xxx.xxx.xxx dbname=postfix user=postfix password=mypostfixpassword password_query = select password \ from mailbox where username = '%u' \ and active = '1' user_query = select maildir, \ concat('*:messages=5:bytes=', quota) as quota_rule \ from mailbox where username = '%u' and active = '1' Gr Johan
Re: [Dovecot] Please help with Quota dict mysql configuration
raag een verruiming van uw quota aan. Your mailbox is now $PERCENT% full. Please remove some old mail, or ask for a larger quota. Skrzynka pocztowa jest w tym momencie w $PERCENT% zapelniona. Usun stare wiadomosci,albo przenies w inny folder. EOF Hope this helps. Regards, Johan Hendriks Double L Automatisering
Re: [Dovecot] Mysql access denied
l...@airstreamcomm.net schreef: On Thu, 23 Jun 2011 15:48:58 +0200, Johan Hendriks wrote: Op 23-6-2011 15:37, l...@airstreamcomm.net [1] schreef: Currently using dovecot 2.0.12 and mysql server 4.0.20 (I know, it's really old) and having issues getting Dovecot to authenticate to the mysql server. We have confirmed that the credentials are correct and the host machine can access the database, however we are getting the following error: Jun 23 08:12:50 hostname dovecot: auth: Error: mysql(databaseserver.com): Connect failed to database (database): Access denied for user: 'sqlad...@ip.of.host.machine [2]' (Using password: YES) - waiting for 1 seconds before retry We are assuming this has something to do with the password hashing algorithm in older versions of mysql, but we are hoping to confirm this theory and find a solution. Thanks. This has as far as i can see nothing to do with hashes. It is the mysql database that disallows the user sqladmin access to the database. Make sure the user sqladmin has the proper rights to access the database, from the ipadres. Gr Johan Hendriks Links: -- [1] mailto:l...@airstreamcomm.net [2] mailto:sqlad...@ip.of.host.machine When talking about hashes I was referring to this wiki article: http://wiki1.dovecot.org/MysqlProblems. As I stated in my email we have confirmed that the host can access the database just fine, and the credentials are correct in the config for Dovecot. Thanks. Well the wiki page you refering to is indeed describing problems with sha hashes. But the last line on this page tells you that it is fixed after 1.0rc9 And you mentioned using 2.0.12 So this is not the issue. Sometimes you need to use the FQDN in the GRANT command within mysql also. regards, Johan Hendriks Double L automatisering
Re: [Dovecot] Out of office reminder with sieve
Stephan Bosch schreef: Op 20-6-2011 11:10, Johan Hendriks schreef: I found in the wiki the out of office reminder option. But the sample is looking for a .out-of-office file. I can not find out how to create this file. I use roundcube to set the out of office with sieve. what is the best way to implement this. Could you point me to that wiki page? I don't quite understand what you are talking about. Second question, where are the addresses stored that have send an e-mail to the user who has out of office set? This is recorded in ~/.dovecot.lda-dupes Regards, Stephan. Off cource Here is the part i am talking about. Alerts If you want to give the user's client some warning notification, you can do it just by writing it to stdout. But note: * Not all clients show the alerts, even though IMAP RFC requires it. * IMAP protocol requires CRLF (\r\n) line feeds. Some clients will break if you only send LF. #!/bin/sh if [ -f ~/.out-of-office ]; then printf "* OK [ALERT] You're still marked as being out of office.\r\n" fi exec "$@" it is on this page. http://wiki2.dovecot.org/PostLoginScripting Maybe i can check the ~/.dovecot.lda-dupes file instead. Is that file being deleted if the out of office is disabled, or is it cleaned only? Thanks for your time. Johan Hendriks
Re: [Dovecot] Error
sunhux G schreef: I tested POP3 access from my laptop's Outlook which is on the same subnet as the dovecot/postfix server (so there's no firewall in between them& was able to get the emails in Outlook with following statuses shown when "Test Connection" is clicked: Tasks Status = Establish network connection Completed Find outgoing mail server (SMTP)Completed Find incoming mail server (POP3) Completed Log onto incoming mail server (POP3) Completed Send test e-mail message Completed # dovecot -n # 2.0.9: /etc/dovecot/dovecot.conf doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n> dovecot-new.conf doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:24: ssl_disable has been renamed to ssl # OS: Linux 2.6.12.6-xen0 i686 Red Hat Enterprise Linux ES release 4 (Nahant Update 2) disable_plaintext_auth = no listen = * mail_location = mbox:~/mail:INBOX=/pop3/spool/mail/%u mbox_write_locks = fcntl passdb { driver = pam } protocols = pop3 imap ssl = no ssl_cert = Jun 20 15:06:36 SmtpostixSvr postfix/smtpd[24148]: disconnect from unknown[172.19.21.23] Jun 20 15:06:36 SmtpostixSvr postfix/qmgr[21020]: EA32720006C: from=, size=705, nrcpt=1 (queue active) Jun 20 15:06:36 SmtpostixSvr dovecot: auth: Error: dlopen(/usr/lib/dovecot/auth/libdriver_pgsql.so) failed: /usr/lib/dovecot/auth/libdriver_pgsql.so: undefined symbol: PQescapeStringConn Jun 20 15:06:36 SmtpostixSvr dovecot: auth: Error: dlopen(/usr/lib/dovecot/auth/libdriver_pgsql.so) failed: /usr/lib/dovecot/auth/libdriver_pgsql.so: undefined symbol: PQescapeStringConn Jun 20 15:06:36 SmtpostixSvr postfix/local[24152]: EA32720006C: to=, orig_to=, relay=local, delay=0.81, delays=0.26/0.11/0/0.43, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail) Jun 20 15:06:36 SmtpostixSvr postfix/qmgr[21020]: EA32720006C: removed Jun 20 15:06:36 SmtpostixSvr dovecot: pop3-login: Login: user=, method=PLAIN, rip=172.19.21.23, lip=172.19.21.27, mpid=24157 Jun 20 15:06:36 SmtpostixSvr dovecot: pop3(myUnixid): Disconnected: Logged out top=0/0, retr=0/0, del=0/191, size=436234 1) # 2.0.9: /etc/dovecot/dovecot.conf doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n> dovecot-new.conf doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:24: ssl_disable has been renamed to ssl # OS: Linux 2.6.12.6-xen0 i686 Red Hat Enterprise Linux ES release 4 First it looks like you did an update from 1.x to 2.x You (need) to edit your dovecot.conf file see the message how to do this (make a backup of your old config) 2) Jun 20 15:06:35 SmtpostixSvr postfix/smtpd[24148]: warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in Jun 20 15:06:35 SmtpostixSvr postfix/smtpd[24148]: connect from unknown[172.19.21.23] Also your postfix has sasl parts enabled, but postfix is not compiled with SASL support. 3) The dovecot logs tells you there is somthing not ok with your postgreSQL. I do not use postgreSQL, so i can not help you with this one. regards, Johan Hendriks
[Dovecot] Out of office reminder with sieve
I found in the wiki the out of office reminder option. But the sample is looking for a .out-of-office file. I can not find out how to create this file. I use roundcube to set the out of office with sieve. what is the best way to implement this. Second question, where are the addresses stored that have send an e-mail to the user who has out of office set? thanks regards, Johan Hendriks
Re: [Dovecot] save failed to INBOX: Not enough disk space
Osvaldo Alvarez Pozo schreef: Hi Tom, it is dovecot 2.0.12 this is the doveconf -n output. There is not file system quota. This is the output of doveconf -n # 2.0.12: /usr/local/dovecot/etc/dovecot/dovecot.conf # OS: Linux 2.6.32-bpo.5-amd64 x86_64 Debian 5.0.5 ocfs2 auth_cache_size = 1 M auth_mechanisms = plain login base_dir = /usr/local/dovecot disable_plaintext_auth = no first_valid_uid = 5000 last_valid_uid = 5000 mail_access_groups = mail mail_gid = 8 mail_location = maildir:/var/vmail/%d/%u/Maildir mail_max_userip_connections = 100 mail_uid = 5000 maildir_very_dirty_syncs = yes managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mmap_disable = yes passdb { args = /usr/local/dovecot/etc/dovecot/sql.conf driver = sql } plugin { quota = maildir:User quota sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap pop3 lmtp sieve service auth { client_limit = 10500 unix_listener /var/spool/postfix/private/auth { group = mail mode = 0660 user = postfix } unix_listener auth-userdb { group = mail mode = 0660 user = postfix } } service imap-login { process_min_avail = 2 service_count = 0 vsz_limit = 128 M } service imap { process_limit = 5000 } service lmtp { inet_listener lmtp { address = 127.0.0.1 ::1 port = 24 } unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0660 user = postfix } } service managesieve-login { inet_listener sieve { port = 4190 } } service pop3-login { process_min_avail = 2 service_count = 0 } service pop3 { process_limit = 5000 } userdb { driver = prefetch } userdb { args = /usr/local/dovecot/etc/dovecot/sql.conf driver = sql } protocol imap { imap_client_workarounds = delay-newmail } protocol pop3 { pop3_client_workarounds = outlook-no-nuls oe-ns-eoh pop3_uidl_format = %08Xu%08Xv } protocol lmtp { mail_plugins = sieve postmaster_address = ad...@domain.tld } protocol sieve { managesieve_implementation_string = Dovecot Pigeonhole managesieve_logout_format = bytes=%i/%o managesieve_max_compile_errors = 5 managesieve_max_line_length = 65536 } Thanks 2011/6/8 Tom Hendrikx: On 08/06/11 13:47, Timo Sirainen wrote: On Wed, 2011-06-08 at 11:16 +0200, Osvaldo Alvarez Pozo wrote: But I have found this on my logs "save failed to INBOX: Not enough disk space" . This means that a write() (or some other syscall) returned either ENOSPC or EDQUOT error message, or that quota plugin decided user is out of quota. There is enougth space on disk. and I am not using quota plugin on lmtp What about filesystem quota? I remember there were similar issues in the past, due to the fact that messages larger than 128kb were temporarily stored on disk in the users homedir. Maybe this is related? my lmtp conf is as follow: A full doveconf -n output would be better. OP has not posted complete doveconf -n output, nor a specific version (other than 'dovecot 2'). Please do so. -- Reagrds, Tom Wild guess, What is the disk space of your /var dir or /var/spool for that matter Or df -h for all mounted filesystems. regards, Johan Hendriks
Re: [Dovecot] Wrong remote IP (rip) in mail.log using IMAP login
tyli schreef: Dear list users While trying to secure our dovecot server with fail2ban I came across the following problem: We use dovecot (1.2.9, ubuntu package) behind a NAT, and failed login attempts are logged with our firewall as the remote ip. Example: Apr 15 08:36:26 mail dovecot: imap-login: Disconnected (auth failed, 6 attempts): user=, method=PLAIN, rip=192.168.0.1, lip=192.168.0.3 Therefore I would ban 192.168.0.1 which means that I ban EVERY user. Funny thing is that POP3 login attempts are logged correctly: Apr 13 11:05:50 mail dovecot: pop3-login: Disconnected (auth failed, 1 attempts): user=, method=PLAIN, rip=217.81.27.55, lip=192.168.0.3 Any ideas how to change this? Thanks in advance tyli Could it be that imap is through webmail? regards, Johan
Re: [Dovecot] v2.0.9 released
Is there actually any distro recommendation for dovecot 2.x? Well actually there is! Use the distro you are most familir with. In my case FreeBSD (not acctually an distro before people start correcting me :D ) And for you it can be another distro. Just use the distro you are comfortable with. regards, Johan
Re: [Dovecot] Dovecot fails after updating MySQL
Jerry schreef: I then turned on some of the logging function in Dovecot and restarted it. I then had Postfix roguery some messages. This is a snippet of the dovecot log. Sorry about the line wrap. I am not using my regular MUA at present. Jan 11 10:33:19 deliver(r...@seibercom.net): Info: Loading modules from directory: /usr/local/lib/dovecot/lda Jan 11 10:33:19 deliver(r...@seibercom.net): Info: Loading modules from directory: /usr/local/lib/dovecot/lda Jan 11 10:33:19 deliver(r...@seibercom.net): Info: Loading modules from directory: /usr/local/lib/dovecot/lda Jan 11 10:33:19 deliver(r...@seibercom.net): Info: Loading modules from directory: /usr/local/lib/dovecot/lda Jan 11 10:33:19 deliver(r...@seibercom.net): Info: Module loaded: /usr/local/lib/dovecot/lda/lib90_sieve_plugin.so Jan 11 10:33:19 deliver(r...@seibercom.net): Info: Module loaded: /usr/local/lib/dovecot/lda/lib90_sieve_plugin.so Jan 11 10:33:19 deliver(r...@seibercom.net): Info: Module loaded: /usr/local/lib/dovecot/lda/lib90_sieve_plugin.so Jan 11 10:33:19 deliver(r...@seibercom.net): Info: Module loaded: /usr/local/lib/dovecot/lda/lib90_sieve_plugin.so Jan 11 10:33:19 auth(default): Info: master in: USER1 r...@seibercom.net service=deliver Jan 11 10:33:19 auth(default): Info: master in: USER1 r...@seibercom.net service=deliver Jan 11 10:33:19 auth(default): Info: master in: USER1 r...@seibercom.net service=deliver Jan 11 10:33:19 auth(default): Info: master in: USER1 r...@seibercom.net service=deliver Jan 11 10:33:19 deliver(r...@seibercom.net): Info: Loading modules from directory: /usr/local/lib/dovecot/lda Jan 11 10:33:19 deliver(r...@seibercom.net): Info: Module loaded: /usr/local/lib/dovecot/lda/lib90_sieve_plugin.so Jan 11 10:33:19 auth(default): Info: master in: USER1 r...@seibercom.net service=deliver Jan 11 10:33:19 dovecot: Error: child 85589 (auth-worker) killed with signal 11 (core not dumped) Jan 11 10:33:19 dovecot: Error: child 85588 (auth-worker) killed with signal 11 (core not dumped) Jan 11 10:33:19 dovecot: Error: child 85580 (auth-worker) killed with signal 11 (core not dumped) Jan 11 10:33:19 deliver(r...@seibercom.net): Error: userdb lookup(r...@seibercom.net) failed: Internal failure Jan 11 10:33:19 deliver(r...@seibercom.net): Error: userdb lookup(r...@seibercom.net) failed: Internal failure Jan 11 10:33:19 deliver(r...@seibercom.net): Error: userdb lookup(r...@seibercom.net) failed: Internal failure Jan 11 10:33:19 deliver(r...@seibercom.net): Error: userdb lookup(r...@seibercom.net) failed: Internal failure Jan 11 10:33:19 auth(default): Error: worker-server(r...@seibercom.net): Aborted: Worker process died unexpectedly Jan 11 10:33:19 auth(default): Info: master out: FAIL 1 Jan 11 10:33:19 auth(default): Error: worker-server(r...@seibercom.net): Aborted: Worker process died unexpectedly Jan 11 10:33:19 auth(default): Info: master out: FAIL 1 Jan 11 10:33:19 auth(default): Error: worker-server(r...@seibercom.net): Aborted: Worker process died unexpectedly Jan 11 10:33:19 auth(default): Info: master out: FAIL 1 Jan 11 10:33:19 auth(default): Error: worker-server(r...@seibercom.net): Aborted: Worker process died unexpectedly Jan 11 10:33:19 auth(default): Info: master out: FAIL 1 Jan 11 10:33:19 dovecot: Error: child 85596 (auth-worker) killed with signal 11 (core not dumped) I doubt that this will be of any value; however, it cannot hurt to submit it. just hit the ports tree mysql55-client 5.5.8_2 With the following comment. Remove any attempts to create a libmysqlclient not linked to a threading library. Restore previous libraries location. These two changes should fix most of the reported errors. I think you can try again. regards, Johan Hendriks
Re: [Dovecot] remote hot site, IMAP replication or cluster over WAN
Op 3-11-2010 12:16, Stan Hoeppner schreef: Johan Hendriks put forth on 11/3/2010 3:32 AM: Hello, i am working primarly with FreeBSD, and the latest release has a service called HAST. See it as a mirrored disk over the network. You can install both machines with dovecot, and use the hast disk as the data storage. With CARP in the mix, when the master machine fails, it starts dovecot on the slave. This way you have a failover without user interference. 1. How do you automatically redirect clients to the IP address of the slave when the master goes down? Is this seamless? What is the duration of "server down" seen by clients? Seconds, minutes? 2. When you bring the master back up after repairing the cause of the failure, does it automatically and correctly resume mirroring of the HAST device so it obtains the new emails that were saved to the slave while it was offline? How do you then put the master back into service and make the slave offline again? The servers work with an virtual ip. Carp does this, i use it for the firewalls on our location. Server 1 has ip adres 192.168.1.1, server 2 gets 192.168.1.2, and the virtual addres is 192.168.1.3 The clients connect to the virtual address 192.168.1.3, and contact the machine wich is master at that moment. I do not know how the rebuild goes with hast, if the master provider goes down, like i said, i need to try and test it. Maybe an question on the freebsd-fs mailing list will answer this. More about HAST http://wiki.freebsd.org/HAST More about Carp http://www.freebsd.org/doc/nl/books/handbook/carp.html regards, Johan Hendriks
Re: [Dovecot] remote hot site, IMAP replication or cluster over WAN
Op 3-11-2010 7:17, Stan Hoeppner schreef: Stefan G. Weichinger put forth on 11/2/2010 1:15 PM: A bit off-topic, sorry ... I want to set up a hot backup dovecot in a VM, aside the physical server, so I am very interested in the "best practise" to do so ... There isn't one. If there was Timo would have pointed you to the wiki. Doing server fail over is inherently problematic for a large number of reasons. The easiest way to implement it is to literally turn on the backup server (power on) when the primary fails. The backup comes up with the same hostname and IP address as the primary and mounts the same physical storage. The storage must be either a SAN LUN, NFS directories, or a local disk that has been mirrored over the network during normal operations. But, you can't have the same hostname and IP if the machine is running allowing the mirroring to take place. Thus, for a "standby" server, it must be powered off and take ownership of the storage when powered on. You _can_ do realtime mirroring to the standby while it's running, but then you have some really complex issues to deal with as far as hostname and IP assignments when the primary host dies and you have to take over the name and IP on the spare server. This can be done with a reboot and using alternate config files, and might actually work better in a virtual environment than with a physical machine as VM guests tend to boot faster than physical hosts due to things like long pauses caused by hardware BIOS routines. The key to all of the above is proper identification of primary host failure. The biggest problem with this setup is the "two brains" issue. There are a number of network scenarios that can cause your backup server or monitoring software to think the primary host is offline when it's really not. The secondary thus comes up, and now you have two hosts of the same name and IP address on the network. This situation can cause a number of serious problems IMO, the best way to do high availability is to use an active/active cluster of any number of nodes you see fit to meet your performance and reliability needs. All hosts are live all the time and share he load. When one goes down client performance may simply drops a bit, but that's about the extent of the downside. It's inherently more straight forward to setup than the previous scenario, especially if you're using NFS storage. In this case, you'd build two identical Dovecot servers and have each mount the same NFS mail directory. Read the list archives for ways to mitigate the index file issue. Timo wrote a new director specifically to meet this need. Two other options for the shared storage are a fiber channel or iSCSI SAN, or using DRBD to mirror disks (or logical devices--RAID) over the network. Both of these solutions require using a cluster filesystem such as GFS2. These can be quite a bit more difficult to setup and get working properly than the NFS method, especially for less experienced sysadmins. They can also be more difficult to troubleshoot, especially for sysadmins lacking sufficient knowledge or aptitude with regard to storage hardware and low level Linux device drivers. Hope this helps you a bit. You probably won't find a "how to" document that spoon feeds you the steps for an exact build/setup of this. If you choose the DRBD route you might be able to get Eric to write you up a step-by-step of how he did his two node DRBD Dovecot cluster. Maybe he's already written one. :) Hello, i am working primarly with FreeBSD, and the latest release has a service called HAST. See it as a mirrored disk over the network. You can install both machines with dovecot, and use the hast disk as the data storage. With CARP in the mix, when the master machine fails, it starts dovecot on the slave. This way you have a failover without user interference. I did not test it, but i hope when time permits, i can try to start testing this setup. regards. Johan Hendriks
[Dovecot] [OT] dovecot appliance
Hello all. I am reading the mailinglist for a long time now, and there was a thread i believe called webgui or something. In this thread there was a company i believe german, that was working on a dovecot appliance with a web based gui to administrate a dovecot mail server. The problem is i did not save the URL of that company. Does anyone know which company make the appliance. Or does anyone knows a good webbased tool for dovecot. The reason is that in a windows environment, with only a few FreeBSD machine's , my collega's get frustrated if they can not use a mouse. They even want a mouse on there smartphone's :D I am doing the administration of the mail server, but when i am not there, it would be nice if they can do things them selves. thanks for your time. regards, Johan Hendriks
[Dovecot] shared folders general question
Hello all. Thanks to the patience off Timo i finally got my shared folders working. I have one more question. Is it possible if you share the inbox, that all subfolders will be visable to. I can not see the subfolders of the shared inbox. This is not very useful if the user which shares his inbox, has sieve rules active that stores e-mail directly into subfolders. Thanks regards, Johan
Re: [Dovecot] Shared folders, please help.!
2010/10/18 Timo Sirainen : > On Mon, 2010-10-18 at 16:18 +0200, Johan Hendriks wrote: >> > location = maildir:/usr/local/virtual/%%d/%%n:INDEX=/shared/%%n >> > >> I knew i missed something, and i tried a lot of options, but always >> leave that shared behind %%n >> the INDEX=/shared/%%n where does this point to? > > To /shared/user > >> Must i use INDEX=/shared/%%d/%%u > > That's /shared/domain.com/u...@domain.com/ > >> or INDEX=/shared/%%u/%%n > > That's /shared/u...@domain.com/user/ > >> What is a better value. > > %%d/%%n would more sense than either of those, but since these are > indexes only for users who have shared mailboxes to you, %%u alone would > work fine. > > Also my guess is that you don't really want /shared, but > INDEX=/usr/local/virtual/%u/%n/shared/%%u > > (or really, you should be using home directories to avoid that > whole /usr/local/virtual/%u/%n everywhere) > > It works with the following settings. mail_location = maildir:/usr/local/virtual/%d/%n/ namespace { hidden = no inbox = yes list = yes location = prefix = separator = / subscriptions = yes type = private } namespace { inbox = no list = children location = maildir:/usr/local/virtual/%%d/%%n:INDEX=/usr/local/virtual/%d/%n/shared/%%u prefix = shared/%%d/%%n/ separator = / subscriptions = no type = shared } I have read the the wiki and tried to use the home folder. I created a dir /usr/home/virtual/ gave it the right permissions. But the wiki is not very clear (for me ) where i must alter my config to use the home dir. In my understanding , i must set the home dir by doing the following. mail_location = maildir: home=/usr/home/virtual/%d/%n/ mail=/usr/local/virtual/%d/%n But the i get a few errors Oct 20 09:02:31 beasty dovecot: imap-login: Login: user=, method=PLAIN, rip=192.168.50.200, lip=192.168.50.200, mpid=11285, secured Oct 20 09:02:31 beasty dovecot: imap(h...@domain.com): Error: user h...@domain.com: Initialization failed: Namespace '': mkdir( home=/usr/home/virtual/domain.com/hans/ mail=/usr/local/virtual/domain.com/hans) in directory /var/run/dovecot failed: Permission denied (euid=1004(vmail) egid=1004(vmail), euid is not dir owner) Oct 20 09:02:31 beasty dovecot: imap(h...@domain.com): Error: Invalid user settings. Refer to server log for more information. also when sending mail, i get the following error Oct 20 09:03:40 beasty postfix/qmgr[1775]: 4F6403F461: from=, size=325, nrcpt=1 (queue active) Oct 20 09:03:40 beasty dovecot: lda(jo...@domain.com): Error: user jo...@domain.com: Initialization failed: Namespace '': mkdir( home=/usr/home/virtual/domain.com/johan/ mail=/usr/local/virtual/domain.com/johan) in directory /var/spool/postfix failed: Permission denied (euid=1004(vmail) egid=1004(vmail), euid is not dir owner) Oct 20 09:03:40 beasty dovecot: lda(jo...@domain.com): Fatal: Invalid user settings. Refer to server log for more information. Oct 20 09:03:40 beasty postfix/pipe[11842]: 4F6403F461: to=, relay=dovecot, delay=0.08, delays=0.02/0.01/0/0.06, dsn=4.3.0, status=deferred (temporary failure) Sorry for being a novice on this :D regards, Johan Hendriks
Re: [Dovecot] Shared folders, please help.!
2010/10/18 Timo Sirainen : > On Mon, 2010-10-11 at 17:11 +0200, Johan Hendriks wrote: >> >> namespace { >> inbox = no >> list = children >> location = maildir:/usr/local/virtual/%%d/%%n/shared/:INDEX=/shared/%%n > > Somehow I missed this first: There's an extra "shared/" in the mail > location. You're now telling Dovecot to access other users' mails from > nonexistent shared directory. So use: > > location = maildir:/usr/local/virtual/%%d/%%n:INDEX=/shared/%%n > > (Oh, and if I didn't already mention you should include either %%d or %% > u in the INDEX path as well to avoid conflicts between domains.) > > > Thank you very much it works. Finally :D I knew i missed something, and i tried a lot of options, but always leave that shared behind %%n the INDEX=/shared/%%n where does this point to? Must i use INDEX=/shared/%%d/%%u or INDEX=/shared/%%u/%%n What is a better value. And thanks again. regards, Johan Hendriks
Re: [Dovecot] Shared folders, please help.!
18 14:26:06 lda(jo...@domain.com): Debug: acl vfile: Global ACL directory: (null) Oct 18 14:26:06 lda(jo...@domain.com): Debug: Quota root: name= backend=dict args=:proxy::quotadict Oct 18 14:26:06 lda(jo...@domain.com): Debug: Quota warning: bytes=0 (95%) messages=0 reverse=no command=/usr/local/bin/quota-warning.sh 95 Oct 18 14:26:06 lda(jo...@domain.com): Debug: Quota warning: bytes=0 (80%) messages=0 reverse=no command=/usr/local/bin/quota-warning.sh 80 Oct 18 14:26:06 lda(jo...@domain.com): Debug: dict quota: user=jo...@domain.com, uri=proxy::quotadict, noenforcing=0 Oct 18 14:26:06 lda(jo...@domain.com): Debug: none: root=, index=, control=, inbox= Oct 18 14:26:06 dict: Info: mysql: Connected to localhost (postfix) Oct 18 14:26:06 lda(jo...@domain.com): Info: save: box=INBOX, uid=2, msgid=<20101018121703.18d833f...@mailserver.schavemaker.com>, size=384 Oct 18 14:26:06 lda(jo...@domain.com): Info: msgid=<20101018121703.18d833f...@mailserver.schavemaker.com>: saved mail to INBOX Oct 18 14:26:06 beasty postfix/pipe[787]: 18D833F494: to=, relay=dovecot, delay=544, delays=544/0.02/0/0.03, dsn=2.0.0, status=sent (delivered via dovecot service) Oct 18 14:26:06 beasty postfix/qmgr[13582]: 18D833F494: removed Oct 18 14:27:51 dict: Error: sql dict iterate: Invalid/unmapped path: shared/shared-boxes/anyone/ Oct 18 14:27:51 dict: Info: mysql: Connected to localhost (postfix) Oct 18 14:27:51 imap(h...@domain.com): Debug: Quota root: name= backend=dict args=:proxy::quotadict Oct 18 14:27:51 imap(h...@domain.com): Debug: Quota rule: root= mailbox=* bytes=10240 messages=5 Oct 18 14:27:51 imap(h...@domain.com): Debug: Quota warning: bytes=9728 (95%) messages=0 reverse=no command=/usr/local/bin/quota-warning.sh 95 Oct 18 14:27:51 imap(h...@domain.com): Debug: Quota warning: bytes=8192 (80%) messages=0 reverse=no command=/usr/local/bin/quota-warning.sh 80 Oct 18 14:27:51 imap(h...@domain.com): Debug: dict quota: user=jo...@domain.com, uri=proxy::quotadict, noenforcing=0 Oct 18 14:27:51 imap(h...@domain.com): Debug: maildir++: root=/usr/local/virtual/domain.com/johan/shared, index=/shared/domain.com/johan, control=, inbox=/usr/local/virtual/domain.com/johan/shared Oct 18 14:27:51 imap(h...@domain.com): Debug: Namespace shared/domain.com/jo...@domain.com/: Permission lookup failed from /usr/local/virtual/domain.com/johan/shared Oct 18 14:27:51 imap(h...@domain.com): Debug: Namespace shared/domain.com/jo...@domain.com/: Using permissions from /usr/local/virtual/domain.com/johan/shared: mode=0700 gid=-1 Oct 18 14:27:51 imap(h...@domain.com): Debug: acl: initializing backend with data: vfile Oct 18 14:27:51 imap(h...@domain.com): Debug: acl: acl username = h...@domain.com Oct 18 14:27:51 imap(h...@domain.com): Debug: acl: owner = 0 Oct 18 14:27:51 imap(h...@domain.com): Debug: acl vfile: Global ACL directory: (null) Oct 18 14:27:51 imap(h...@domain.com): Debug: acl vfile: file /usr/local/virtual/domain.com/johan/shared/dovecot-acl not found Oct 18 14:28:54 imap(h...@domain.com): Debug: Quota root: name= backend=dict args=:proxy::quotadict Oct 18 14:28:54 imap(h...@domain.com): Debug: Quota rule: root= mailbox=* bytes=10240 messages=5 Oct 18 14:28:54 imap(h...@domain.com): Debug: Quota warning: bytes=9728 (95%) messages=0 reverse=no command=/usr/local/bin/quota-warning.sh 95 Oct 18 14:28:54 imap(h...@domain.com): Debug: Quota warning: bytes=8192 (80%) messages=0 reverse=no command=/usr/local/bin/quota-warning.sh 80 Oct 18 14:28:54 imap(h...@domain.com): Debug: dict quota: user=johan, uri=proxy::quotadict, noenforcing=0 Oct 18 14:28:54 imap(h...@domain.com): Debug: maildir++: root=/usr/local/virtual//johan/shared, index=/shared//johan, control=, inbox=/usr/local/virtual//johan/shared Oct 18 14:28:54 imap(h...@domain.com): Debug: acl: initializing backend with data: vfile Oct 18 14:28:54 imap(h...@domain.com): Debug: acl: acl username = h...@domain.com Oct 18 14:28:54 imap(h...@domain.com): Debug: acl: owner = 0 Oct 18 14:28:54 imap(h...@domain.com): Debug: acl vfile: Global ACL directory: (null) Oct 18 14:28:54 imap(h...@domain.com): Debug: acl vfile: file /usr/local/virtual//johan/shared/dovecot-acl not found Oct 18 14:29:04 imap(h...@domain.com): Info: Connection closed bytes=97/410 regards, Johan Hendriks
Re: [Dovecot] Shared folders, please help.!
2010/10/14 Timo Sirainen : > On Thu, 2010-10-14 at 19:40 +0200, Johan Hendriks wrote: >> e select shared/domain.com/johan/INBOX >> e NO Character not allowed in mailbox name: '.' > > This looks as if it's not even seeing the shared namespace. What does it > log with mail_debug=yes? > >> namespace { >> inbox = no >> list = children >> location = maildir:/usr/local/virtual/%%d/%%n/shared/:INDEX=/shared/%%n >> prefix = shared/%%d/%%u/ > > Also the :INDEX= path is now identical for two users in different > domains. You should use %%u or %%d/%%n there as well. > > > Ok i did the following. edit the dovecot.conf file also the dovecot-dict-acl.sql file. telnet 192.168.50.200 143 Trying 192.168.50.200... Connected to beasty.localdomain.local. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready. a login jo...@domain.com a BAD Error in IMAP command received by server. a login jo...@domain.com johanpass a OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA ACL RIGHTS=texk] Logged in b DELETEACL INBOX h...@domain.com b OK Deleteacl complete. c GETACL INBOX * ACL "INBOX" "jo...@domain.com" lrwstipekxacd c OK Getacl completed. d SETACL INBOX h...@domain.com lr d OK Setacl complete. e GETACL INBOX * ACL "INBOX" "h...@domain.com" lr "jo...@domain.com" lrwstipekxacd e OK Getacl completed. ^C^] telnet> quit Connection closed. Then i login as hans telnet 192.168.50.200 143 Trying 192.168.50.200... Connected to beasty.localdomain.local. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready. a login h...@domain.com hanspass a OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA ACL RIGHTS=texk] Logged in b list "" /shared/* b OK List completed. c list "" shared/domain.com/johan/* c OK List completed. d select shared/domain.com/johan/INBOX d NO Character not allowed in mailbox name: '.' i got the following log in /var/log/maillog Oct 14 19:56:56 beasty dovecot: dict: mysql: Connected to localhost (postfix) Oct 14 19:58:03 beasty dovecot: imap(jo...@domain.com): Connection closed bytes=112/536 Oct 14 19:58:29 beasty dovecot: auth: mysql: Connected to localhost (postfix) Oct 14 19:58:29 beasty dovecot: imap-login: Login: user=, method=PLAIN, rip=192.168.50.200, lip=192.168.50.200, mpid=6615, secured Oct 14 19:59:53 beasty dovecot: dict: Error: sql dict iterate: Invalid/unmapped path: shared/shared-boxes/anyone/ Oct 14 19:59:53 beasty dovecot: dict: mysql: Connected to localhost (postfix) dovecot -n is now - Tekst uit oorspronkelijke bericht weergeven - # 2.0.5: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 8.1-STABLE amd64 ufs auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login auth_verbose = yes dict { acl = mysql:/usr/local/etc/dovecot/dovecot-dict-acl-sql.conf quotadict = mysql:/usr/local/etc/dovecot/dovecot-dict-quota.conf } disable_plaintext_auth = no first_valid_gid = 1004 first_valid_uid = 1004 last_valid_gid = 1004 last_valid_uid = 1004 log_timestamp = .%Y-%m-%d %H:%M:%S . mail_access_groups = vmail mail_debug = yes mail_gid = 1004 mail_location = maildir:/usr/local/virtual/%d/%n mail_uid = 1004 managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mbox_write_locks = fcntl namespace { hidden = no inbox = yes list = yes location = prefix = separator = / subscriptions = yes type = private } namespace { inbox = no list = children location = maildir:/usr/local/virtual/%%d/%%n/shared/:INDEX=/shared/%%d/%%n prefix = shared/%%d/%%u/ - Tekst uit oorspronkelijke bericht weergeven - separator = / subscriptions = no type = shared } passdb { args = /usr/local/etc/dovecot/dovecot-mysql.conf driver = sql } plugin { acl = vfile acl_anyone = allow acl_shared_dict = proxy::acl autocreate = Trash autocreate2 = Junk autocreate3 = Sent autocreate4 = Drafts autocreate5 = Templates autosubscribe = Trash autosubscribe2 = Junk autosubscribe3 = Sent autosubscribe4 = Drafts autosubscribe5 = Templates quota = dict:::proxy::quotadict quota_warning = storage=95%% /usr/local/bin/quota-w
Re: [Dovecot] Shared folders, please help.!
2010/10/14 Timo Sirainen > > On Mon, 2010-10-11 at 17:11 +0200, Johan Hendriks wrote: > > a login jo...@domain.com mypass > > b SETACL INBOX h...@domain.com lr > .. > > c list "" /shared/* > > c list "" shared/* > > Also see what happens with: > > d list "" shared/domain.com/johan/* > e select shared/domain.com/johan/INBOX > > telnet 192.168.50.200 143 Trying 192.168.50.200... Connected to beasty.localdomain.local Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready. a login h...@domain.com hanspass a OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA ACL RIGHTS=texk] Logged in d list "" shared/domain.com/johan/* d OK List completed. e select shared/domain.com/johan/INBOX e NO Character not allowed in mailbox name: '.' thanks for your time on this. I am overlooking something, but i really do not know what regards, Johan Hendriks
[Dovecot] Shared folders, please help.!
Hello all, First of all sorry for this, it has been discussed many times, but i can not make it work. I tried for a long time now. I do something wrong, but i do not know what. First of all, i have virtual users, with virtual domains. Mail is stored in /usr/local/virtual/domain name/user So if my domain is domain.com and my e-mail address is jo...@domain.com the directory is /usr/local/virtual/domain.com/johan i followed the wiki, and my configuration looks like the following. beasty dovecot # dovecot -n # 2.0.5: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 8.1-STABLE amd64 ufs auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login auth_verbose = yes dict { acl = mysql:/usr/local/etc/dovecot/dovecot-dict-acl-sql.conf quotadict = mysql:/usr/local/etc/dovecot/dovecot-dict-quota.conf } disable_plaintext_auth = no first_valid_gid = 1004 first_valid_uid = 1004 last_valid_gid = 1004 last_valid_uid = 1004 log_timestamp = .%Y-%m-%d %H:%M:%S . mail_access_groups = vmail mail_debug = yes mail_gid = 1004 mail_location = maildir:/usr/local/virtual/%d/%n mail_uid = 1004 managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mbox_write_locks = fcntl namespace { hidden = no inbox = yes list = yes location = prefix = separator = / subscriptions = yes type = private } namespace { inbox = no list = children location = maildir:/usr/local/virtual/%%d/%%n/shared/:INDEX=/shared/%%n prefix = shared/%%d/%%u/ separator = / subscriptions = no type = shared } passdb { args = /usr/local/etc/dovecot/dovecot-mysql.conf driver = sql } plugin { acl = vfile acl_anyone = allow acl_shared_dict = proxy::acl autocreate = Trash autocreate2 = Junk autocreate3 = Sent autocreate4 = Drafts autocreate5 = Templates autosubscribe = Trash autosubscribe2 = Junk autosubscribe3 = Sent autosubscribe4 = Drafts autosubscribe5 = Templates quota = dict:::proxy::quotadict quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95 quota_warning2 = storage=80%% /usr/local/bin/quota-warning.sh 80 } protocols = imap pop3 service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-master { group = vmail mode = 0660 user = vmail } } service dict { unix_listener dict { mode = 0600 user = vmail } } service imap-login { inet_listener imap { address = 192.168.50.200 port = 143 } } service pop3-login { inet_listener pop3 { address = 192.168.50.200 port = 110 } } ssl = no userdb { args = /usr/local/etc/dovecot/dovecot-mysql.conf driver = sql } protocol imap { imap_client_workarounds = delay-newmail tb-extra-mailbox-sep imap_idle_notify_interval = 2 mins imap_logout_format = bytes=%i/%o imap_max_line_length = 64 k mail_plugins = quota imap_quota autocreate acl imap_acl mail_log notify } protocol pop3 { mail_plugins = quota trash pop3_client_workarounds = outlook-no-nuls oe-ns-eoh pop3_uidl_format = %08Xu%08Xv } protocol lda { auth_socket_path = /var/run/dovecot/auth-master mail_plugins = quota acl mail_log notify postmaster_address = postmas...@test.com sendmail_path = /usr/local/sbin/sendmail } That is my config file. My dovecot-dict-acl-sql.conf looks like the following connect = host=localhost dbname=postfix user=postfix password=password map { pattern = shared/shared-boxes/$to/$from table = user_shares value_field = dummy fields { from_user = $from to_user = $to } } That is slightly different than the wiki says, if i use that , it gives me an error. the pattern on the wiki looks like this pattern = shared/shared-boxes/users/$to/$from if i login as user johan and set ACL on my INBOX i do it this way. i telnet to the server and issue the following beasty dovecot # telnet 192.168.50.200 143 Trying 192.168.50.200... Connected to beasty.localdomain.local. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE AUTH=PLAIN AUTH=LOGIN] imap, pop ready a login jo...@domain.com mypass a OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA ACL RIGHTS=texk] Logged in b SETACL INBOX h...@domain.com lr b OK Setacl complete. c GETACL INBOX * ACL "INBOX" "h...@domain.com" lr "jo...@domain.com" lrwstipekxacd c OK Getacl completed. This looks good i guess, also my database is filled, with the from and to ! But i can not see the mailbox if i login as user hans. beasty dovecot # telnet 192.168.50.200 143 Trying 192.168.50.200...
Re: [Dovecot] dovecot-lda segfaults
Andre schreef: Hi to all. Since version 2.0.3 (now I am running 2.0.5) I have experienced segfaults on mail delivery, either with dovecot-lda and lmtp. At least I succeded in having a core dump, here is the backtrace: #0 0x7f1cca350160 in maildir_sync_set_new_msgs_count () from /usr/lib/dovecot/libdovecot-storage.so.0 #1 0x7f1cca34df0a in maildir_transaction_save_commit_pre () from /usr/lib/dovecot/libdovecot-storage.so.0 #2 0x7f1cca3491c3 in ?? () from /usr/lib/dovecot/libdovecot-storage.so.0 #3 0x7f1cca382ef7 in mail_index_transaction_commit_full () from /usr/lib/dovecot/libdovecot-storage.so.0 #4 0x7f1cca348e4b in index_transaction_commit () from /usr/lib/dovecot/libdovecot-storage.so.0 #5 0x7f1cc88e in ?? () from /usr/lib/dovecot/modules/lib20_zlib_plugin.so #6 0x7f1cc8edaa31 in ?? () from /usr/lib/dovecot/modules/lib10_quota_plugin.so #7 0x7f1cca3281bd in mailbox_transaction_commit_get_changes () from /usr/lib/dovecot/libdovecot-storage.so.0 #8 0x7f1cca3281fe in mailbox_transaction_commit () from /usr/lib/dovecot/libdovecot-storage.so.0 #9 0x7f1cc8461fd7 in ?? () from /usr/lib/dovecot/libdovecot-sieve.so.0 #10 0x7f1cc8459597 in ?? () from /usr/lib/dovecot/libdovecot-sieve.so.0 #11 0x7f1cc845992b in sieve_result_execute () from /usr/lib/dovecot/libdovecot-sieve.so.0 #12 0x7f1cc846973d in sieve_execute () from /usr/lib/dovecot/libdovecot-sieve.so.0 #13 0x7f1cc869f83e in ?? () from /usr/lib/dovecot/modules/lib90_sieve_plugin.so #14 0x7f1cca0f4084 in mail_deliver () from /usr/lib/dovecot/libdovecot-lda.so.0 #15 0x00402cf0 in main () I have tried to disable quota and zlib, but I suppose it is not related to those plugins. What else can I try??? Andre I think this came along earlier. http://hg.dovecot.org/dovecot-2.0/rev/e2f9baa436f2 ? regards Johan Hendrisk
[Dovecot] Shared folder again !
192.168.50.200 143 Trying 192.168.50.200... Connected to beasty.localdomain.local. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE AUTH=PLAIN AUTH=LOGIN] imap, pop ready a login h...@domain.com hanspass a OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA ACL RIGHTS=texk] Logged in b list "" * * LIST (\HasNoChildren) "/" "Trash" * LIST (\HasNoChildren) "/" "Junk" * LIST (\HasNoChildren) "/" "Sent" * LIST (\HasNoChildren) "/" "Drafts" * LIST (\HasNoChildren) "/" "Templates" * LIST (\HasNoChildren) "/" "INBOX" b OK List completed. c list "" /shared/* c OK List completed. If been trying this for a very long time now, but can not see what i am missing. It must be something i ovelook, but i really can not find out what. I also tried some other configs from the mailing list, but still the same, no go. Thank you for your time to help another one with this issue. i am a little ashamed :D Regards, Johan Hendriks * *
Re: [Dovecot] Upgrade question from 1.1 to 1.2
Wouter van der Schagt schreef: Did you read this page ? http://wiki.dovecot.org/Upgrading/1.2 Actually I did. Twice even. Somehow I thought those settings did not apply to me since currently we only use the pop3 protocol. Pretty stupid eh? My apologies. Sincerely, - Wouter van der Schagt No need to apologize, we all have our moments! I do for sure ;-) -- ___ *Johan Hendriks* *Schavemaker Transport* Tel: +31 (0)251 229098 Fax: +31 (0)251 212016 email: j.hendr...@schavemaker.com <mailto:j.hendr...@schavemaker.com> web: http://www.schavemaker.com ___
Re: [Dovecot] Upgrade question from 1.1 to 1.2
Wouter van der Schagt schreef: If you find out anything, add it to the wiki.. Upgrade went relatively smooth. I did get 2 error messages though in the errorlog. Error: Error in configuration file /usr/local/etc/dovecot.conf line 18: Unknown setting: ssl_disable Error: Error in configuration file /usr/local/etc/dovecot.conf line 81: Unknown setting: login_greeting_capability Are these settings deprecated? and if so, what supersedes them? Commenting them out for now did the trick. Sincerely, - Wouter van der Schagt Did you read this page ? http://wiki.dovecot.org/Upgrading/1.2 there is a list with the changes. To make you life a little easier here they are: Settings: * Renamed ssl_disable=yes to ssl=no. * Renamed auth_ntlm_use_winbind to auth_use_winbind, which also determines if GSS-SPNEGO is handled by GSSAPI or winbind. * Removed login_greeting_capability. The capabilities are now always sent (Lemonade requires this and it's not that much extra traffic). * Removed auth_worker_max_request_count. It was useful only with PAM, so it can now be specified in passdb pam { args = max_requests=n } . The default is 100. * Removed umask. It wasn't really used anywhere anymore. -- _______ *Johan Hendriks* *Schavemaker Transport* Tel: +31 (0)251 229098 Fax: +31 (0)251 212016 email: j.hendr...@schavemaker.com <mailto:j.hendr...@schavemaker.com> web: http://www.schavemaker.com ___
Re: [Dovecot] Question regarding layout.
Curtis Maloney schreef: Johan Hendriks wrote: Hello all. I have a question regarding my mail flow. We have some users who are in a mail group (alias), and these alias receives a lot of attached documents. So i have the document in all the mailboxes of the alias. If the attached document is 2MB and that is not rare, i have 10 times 2 MB on my mail server. Is there a way to tackle this. Maybe by making the alias a mailbox itself and give other users acces or are there other options. I understand that, if you're using Maildir, Dovecot deliver can be smart and lay down a single file, and hardlink or symlink it to each folder, thus having one physical copy for N users. The documentation on dovecot's LDA mentions the -p option which will hard-link when using maildir, if possible, specifically for this case. http://wiki.dovecot.org/LDA Also i have very lame and lazy users. Don't we all, mate? :) They refuse to clean thrash cans (i asked about that earlier,and got that tackled through the expire plugin.),also the do not remove old mail not even reading it. So is there also a option to remove mail that is not been opened, and is older than xx days or weeks. There's expire (http://wiki.dovecot.org/Plugins/Expire) though I'm personally in favor of Quotas -- even if you only go as far as making users request an expanded quota when they reach their limit, it makes them realise how much they're using, AND makes it a chore... Another thing to look into is the zlib plugin. If you're using mbox, this will allow you to use compressed, read-only folders. If you're using Maildir, it allows you to compress individual messages. http://wiki.dovecot.org/Plugins/Zlib Someone recently posted a tool to implement something close to the process described at the bottom of that page. -- Curtis Maloney Thanks for the pointer, but the -p option is not recommended. the Zlib option might be a good solution. And maybe we just need to set the quota and let the users deal with it! 6 Gb + mail in one year is just to much to keep laying around in your mailbox. thanks for your time. -- ___ *Johan Hendriks* *Schavemaker Transport* Tel: +31 (0)251 229098 Fax: +31 (0)251 212016 email: j.hendr...@schavemaker.com <mailto:j.hendr...@schavemaker.com> web: http://www.schavemaker.com ___
[Dovecot] Question regarding layout.
Hello all. I have a question regarding my mail flow. We have some users who are in a mail group (alias), and these alias receives a lot of attached documents. So i have the document in all the mailboxes of the alias. If the attached document is 2MB and that is not rare, i have 10 times 2 MB on my mail server. Is there a way to tackle this. Maybe by making the alias a mailbox itself and give other users acces or are there other options. Also i have very lame and lazy users. They refuse to clean thrash cans (i asked about that earlier,and got that tackled through the expire plugin.),also the do not remove old mail not even reading it. So is there also a option to remove mail that is not been opened, and is older than xx days or weeks. Thanks -- ___ *Johan Hendriks* *Schavemaker Transport* Tel: +31 (0)251 229098 Fax: +31 (0)251 212016 email: j.hendr...@schavemaker.com <mailto:j.hendr...@schavemaker.com> web: http://www.schavemaker.com ___
[Dovecot] Remove mail from the thrashcan through a script.
Hello all. I have some very anoying users that refuse to delete old mail in there trash box. We use IMAP, is there a way i can delete all mails say older than 10 days from the trash folder through a script. Thanks for your time regards, Johan Hendriks
Re: [Dovecot] Dovecot + FreeBSD-7.2 + ZFS ?
Proskurin Kirill schreef: Johan Hendriks wrote: Proskurin Kirill schreef: Hello all. We run it in an test case also, with no problems till now. We have about 200 mailboxes, not much i know. We have mailboxes with more than 5 messages, and it all works well. No problems after the normal kernel Tuning. Could you say what tuning do you use and why? You can find more info here. http://wiki.freebsd.org/ZFSTuningGuide Sorry for the lame answer, but i am really busy right now. And no, not with keeping up the dovecot machine with FreeBSD and ZFS ;-) Nope it is good answer, really. I don`t see this page early. Make sure you use the 64 bit version off FreeBSD, it saves a lot of trouble. You need less tuning because off the greater memory maps available.(see the last paragraph of that page) regards, -- ___ *Johan Hendriks* *Schavemaker Transport* Tel: +31 (0)251 229098 Fax: +31 (0)251 212016 email: j.hendr...@schavemaker.com <mailto:j.hendr...@schavemaker.com> web: http://www.schavemaker.com ___
Re: [Dovecot] Dovecot + FreeBSD-7.2 + ZFS ?
Proskurin Kirill schreef: Hello all. We run it in an test case also, with no problems till now. We have about 200 mailboxes, not much i know. We have mailboxes with more than 5 messages, and it all works well. No problems after the normal kernel Tuning. Could you say what tuning do you use and why? You can find more info here. http://wiki.freebsd.org/ZFSTuningGuide Sorry for the lame answer, but i am really busy right now. And no, not with keeping up the dovecot machine with FreeBSD and ZFS ;-) regards, -- ___ *Johan Hendriks* *Schavemaker Transport* Tel: +31 (0)251 229098 Fax: +31 (0)251 212016 email: j.hendr...@schavemaker.com <mailto:j.hendr...@schavemaker.com> web: http://www.schavemaker.com ___
Re: [Dovecot] Dovecot + FreeBSD-7.2 + ZFS ?
Frank Bonnet schreef: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Thanks for the feedback ! I'll plan to run it at 7.2 and of course certainly not on a production server without numerous tests ! Dino Ming wrote: Just to let you guys know, I have nightmare with FreeBSD 7.0-RELEASE + ZFS. It brought to me an unrecoverable filesystem error. It is a good technology. But I would wait for it to be more mature before production. I would highly suggest to run a stress test if you really bring it to production state. Dino. Frank Bonnet wrote: Geoffroy Desvernay wrote: Frank Bonnet a écrit : Hello Anyons has tested this configuration with success ? I'll test it in few days and I am wondering if I am alone :-) Not ZFS, but various combinations of dovecot 1.1.15+FreeBSD(7.1 and 7.2)+(NFS and UFS). No problem for us® ;) Yes I too , just curious about ZFS -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkos4ZIACgkQ6f7UMO5oSsXUjACeJCrMjVvQwh7sW6h5Vaw6vMqN HRQAoJR7j0jSPtxsBzntaBzZgc4JAJe1 =gVum -END PGP SIGNATURE- We run it in an test case also, with no problems till now. We have about 200 mailboxes, not much i know. We have mailboxes with more than 5 messages, and it all works well. No problems after the normal kernel Tuning. I have updated to 7-stable now so i can use ZFS version 13, it all went smooth. If you goning to try ZFS i would suggest to go for Stable to get the latest ZFS version. regards, -- _______ *Johan Hendriks* *Schavemaker Transport* Tel: +31 (0)251 229098 Fax: +31 (0)251 212016 email: j.hendr...@schavemaker.com <mailto:j.hendr...@schavemaker.com> web: http://www.schavemaker.com ___
Re: [Dovecot] from postfix deliver to dovecot deliver
Johan Hendriks schreef: Hello all. I use dovecot in combination with postfix, postfixadmin for virtual users. Deliver to the mailbox now is done by postfix Now i want to enable quota's and therefor i need dovecot deliver. Can i just switch to dovecot deliver? Or must i first do some prrperations in the mailboxes. regards One more question regarding this. All the howto's are using a seperate user for the dovecot LDA, like vmail. Now all my mailboxes have the userid and groupid from postfix. Can i use the postfix user for the dovecot LDA? regards, -- _______ *Johan Hendriks* *Schavemaker Transport* Tel: +31 (0)251 229098 Fax: +31 (0)251 212016 email: j.hendr...@schavemaker.com <mailto:j.hendr...@schavemaker.com> web: http://www.schavemaker.com ___
[Dovecot] from postfix deliver to dovecot deliver
Hello all. I use dovecot in combination with postfix, postfixadmin for virtual users. Deliver to the mailbox now is done by postfix Now i want to enable quota's and therefor i need dovecot deliver. Can i just switch to dovecot deliver? Or must i first do some prrperations in the mailboxes. regards -- ___ *Johan Hendriks* *Schavemaker Transport* Tel: +31 (0)251 229098 Fax: +31 (0)251 212016 email: j.hendr...@schavemaker.com <mailto:j.hendr...@schavemaker.com> web: http://www.schavemaker.com ___ /Confidentiality Notice: The information in this document may be confidential. It is intended only for the use of the named recipient. If you are not the intended recipient, please notify me immediately and then delete this document. Do not disclose the contents of this document to any other person, nor take any copies. Violation of this notice may be unlawful. / ___
Re: [Dovecot] dict, quota, mysql and postfixadmin
Timo Sirainen schreef: On Feb 3, 2009, at 5:09 AM, Johan Hendriks wrote: plugin { quota = dict:::proxy::quotadict Here you set quota backend. quota_rule = *:storage=50M:messages=1 Here you set quota limits. CONCAT('dict:storage=',floor(quota/1000),' proxy::quotadict') as quota Here you're trying to use v1.0 way of setting quota, which won't work with v1.1. Return something like: CONCAT('*:messages=1:bytes=', quota) as quota_rule Thanks got it working now. It was the last line in dovecot-sql.conf file that did it (CONCAT('*:messages=1:bytes=', quota) as quota_rule) regards, Johan
[Dovecot] dict, quota, mysql and postfixadmin
Hello all I am trying to get quota working with dict and mysql but i get an error. This is my dovecot.conf file ( relevant part ) i hope ;-) ## protocol imap { listen = *:143 imap_client_workarounds = delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_max_line_length = 65536 mail_plugins = quota imap_quota } protocol pop3 { listen = *:110 pop3_client_workarounds = outlook-no-nuls oe-ns-eoh pop3_uidl_format = %08Xu%08Xv mail_plugins = quota } protocol lda { postmaster_address = postmas...@testserver.com sendmail_path = /usr/local/sbin/sendmail auth_socket_path = /var/run/dovecot/auth-master mail_plugins = cmusieve mail_plugins = quota } ## Dictionary DB proxy dict { quotadict = mysql:/usr/local/etc/dovecot-dict-quota.conf } ## Default quota values plugin { quota = dict:::proxy::quotadict quota_rule = *:storage=50M:messages=1 } ## my dovecot-sql.conf # driver = mysql default_pass_scheme = MD5-CRYPT connect = host=localhost dbname=postfix user=postfix password=12345 password_query = SELECT password FROM mailbox WHERE username = '%u' AND active = '1' user_query = SELECT maildir, 1004 AS uid, 1004 AS gid, CONCAT('dict:storage=',floor(quota/1000),' proxy::quotadict') as quota FROM mailbox WHERE username = '%u' AND active = '1' ## and my dovecot-dict-quota.conf ## driver = mysql connect = host=localhost dbname=postfix user=postfix password=12345 default_pass_scheme = MD5-CRYPT table = quota select_field = current where_field = path username_field = username ## When i try to login i see the following in my log file Feb 2 21:46:57 beasty dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip= 127.0.0.1, secured Feb 2 21:46:57 beasty dovecot: IMAP(j.hendr...@testserver.com): Dictionary URI is missing ':': quotadict Feb 2 21:46:57 beasty dovecot: Fatal: IMAP(j.hendr...@testserver.com): Couldn't create quota root: dict:storage=20480 0 proxy::quotadict If i update the quota of the user then the value in the (dict:storage=204800) logfile do change so it reads my quota set with postfxadmin. What am i doing wrong? regards, Johan Hendriks
Re: [Dovecot] [RFC] FreeBSD port for dovecot 1.1 series
Is there a date when dovecot 11 will hit the ports tree, i like to test it also. regards, Johan Hendriks Schavemaker Transport
Re: [Dovecot] Dovecot Startup error on FreeBSD
Dien Phan schreef: Hi, I have installed latest Dovecot 1.0.13 on a FreeBSD 6.2 with XMail (www.xmailserver.org). It works OK except one thing: error on startup. After each reboot there are lots of such error: dovecot: Mar 28 08:54:38 Error: child 916 (login) returned error 89 dovecot: Mar 28 08:54:54 Error: imap-login: No authentication sockets found When I restart dovecot by running startup script /usr/local/etc/rc.d/dovecot.sh restart the problem disappears. I have to manually restart dovecot after each reboot. Below is used conf file $ dovecot -n # 1.0.13: /usr/local/etc/dovecot.conf log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot-info.log protocols: imap ssl_disable: yes disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login mail_location: maildir:~/Maildir dotlock_use_excl: yes maildir_copy_with_hardlinks: yes mail_plugins: antispam imap_client_workarounds: delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep auth default: verbose: yes passdb: driver: checkpassword args: /var/MailRoot/bin/dovecot_xmail userdb: driver: static args: uid=vxmail gid=vxmail home=/var/MailRoot/domains/%d/%n allow_all_users=yes socket: type: listen master: path: /var/run/dovecot/auth-master mode: 384 user: vxmail plugin: antispam_signature: X-DSPAM-Signature antispam_trash: Trash antispam_spam: SPAM antispam_dspam_binary: /usr/local/bin/dspam antispam_dspam_args: --user;%u I googled and found similar post at http://www.mail-archive.com/dovecot@dovecot.org/msg01793.html, http://www.mail-archive.com/dovecot@dovecot.org/msg01798.html and http://www.mail-archive.com/dovecot@dovecot.org/msg01831.html but answers there don't meet my case. I don't use sql backend. And startup script doesn't delete /var/run/dovecot/ directory after Dovecot is started. After booting when error still there I have in this directory: $ ls /var/run/dovecot auth-master dict-server login master.pid If restart dovecot (working OK): $ ls /var/run/dovecot auth-master auth-worker.960 dict-server login master.pid As we see dovecot works when there appears a file named auth-worker.960 (the number 960 changes each time it restarted). Please help me to fix this. Thanks in advance. Dien Phan What is happening i think is that dovecot is trying to start before Xmail, and then there is no autentication backend yet. look in the dovecot startup file /usr/loval/etc/rc.d/dovecot and add xmail (or however it is named in the startup sequense) to the REQUIRE option # PROVIDE: dovecot # REQUIRE: LOGIN ntpdate xmail # KEYWORD: shutdown
Re: [Dovecot] outlook2003 fails sasl authentication
Gerard schreef: On Wed, 12 Mar 2008 16:24:11 +0100 Johan Hendriks <[EMAIL PROTECTED]> wrote: {snip} this is my posfix part of sasl smtpd_sasl_auth_enable = yes smtpd_sasl_exceptions_networks = $mynetworks broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination permit ^^ Are you sure about the last 'permit'. You are potentially making yourself an open relay. I would suggest 'reject' as the correct action. You might want to inquire on the Postfix forum for more info. {snip} Thanks after the merge i started to test a lot of things because outlook2003 did not work so i added that one to try out, Left that one in, it is out now thanks guys for the good help regards, Johan
Re: [Dovecot] outlook2003 fails sasl authentication
Thank you so much that was it! I just migrated from one server to another and that line did not made it in the new dovecot.conf file. Well i need to use diff more. Thanks again Jens Meyer schreef: Hi! I have a similar configuration - and run into the same problem before two weeks. As I remember I expanded the following line in dovecot.conf: --> mechanisms = plain login <-- It works for me and hopefully it is the correct solution (even if I am no dovecot-expert). Kind regards, Jens Johan Hendriks schrieb: Hello all i have postfix running with dovecot-sasl and mysql as a backend. It all runs good. I run into trouble as where outlook 2003 fails to authenticate when sending e-mail. I have thunderbird outlook2007 and 2003 clients. The tunderbird and 2007 clients are working OK, the outlook2003 client get the relay access denied message. In the postfix log i see it is not initiating sasl they all use pop i use dovecot 1.0.13 this is my posfix part of sasl smtpd_sasl_auth_enable = yes smtpd_sasl_exceptions_networks = $mynetworks broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination permit smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth and this is my dovecot sasl part # dovecot SASL socket listen { client { # Assuming the default Postfix $queue_directory setting path = /var/spool/postfix/private/auth mode = 0660 # Assuming the default Postfix user and group user = postfix group = postfix } } Am i doing something wrong? I guess if it is not configured right outlook 2007 and thunderbird will fail also! regards, Johan Hendriks
[Dovecot] outlook2003 fails sasl authentication
Hello all i have postfix running with dovecot-sasl and mysql as a backend. It all runs good. I run into trouble as where outlook 2003 fails to authenticate when sending e-mail. I have thunderbird outlook2007 and 2003 clients. The tunderbird and 2007 clients are working OK, the outlook2003 client get the relay access denied message. In the postfix log i see it is not initiating sasl they all use pop i use dovecot 1.0.13 this is my posfix part of sasl smtpd_sasl_auth_enable = yes smtpd_sasl_exceptions_networks = $mynetworks broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination permit smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth and this is my dovecot sasl part # dovecot SASL socket listen { client { # Assuming the default Postfix $queue_directory setting path = /var/spool/postfix/private/auth mode = 0660 # Assuming the default Postfix user and group user = postfix group = postfix } } Am i doing something wrong? I guess if it is not configured right outlook 2007 and thunderbird will fail also! regards, Johan Hendriks