[Dovecot] dsync strange duplicate directories
Hello, i'm testing whether dsync will help me in setting up a redundant master - master imap setup and experience this: 1. Master 1 dovecot is running, master 2 dovecot is down 2. I use rsync to create an exact copy of the master 1 maildir on master 2 3. I start up master 2 dovecot 4. I do a dsync on master 2: dsync -D -u t...@example.com mirror ssh root@master1 dsync -D -u t...@example.com Now what i see is this: Each mail directory is duplicated on master 1 and master 2 to a directory name with some MD5 hash value (as it seems) e.g. before dsync: ls -a /home/vmail/example.com/test/Maildir cur new .Drafts .Junk .Sent ... after dsync: ls -a /home/vmail/example.com/test/Maildir cur new .Drafts .Drafts_af61060f6f9fcb4efc0a2691362e .Junk .Junk_b261060f6f9fcb4efc0a2691362e .Sent .Sent_b261060f6f9fcb4efc0a2691362e ... The new directories contain the same files as the original directories. What am i doing wrong? Thanks for the help Frank
Re: [Dovecot] Overquota bounce
Hello! I have implemented a mail system with postfix and dovecot as LDA. Users who have exceeded their quota when receiving messages dont'see the message bounced. I see this error in maillog: dsn=4.3.0, status=deferred (temporary failure) I had the same problem. For me the problem was solved by doing what the dovecot wiki told me to do in the first place: Make shure that you comment out the "mail_debug" directive in /etc/dovecot/dovecot.conf. Only setting this to "no" does not do the job. See: http://wiki.dovecot.org/LDA/Postfix Geetings, Frank -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin & Hobbes)
Re: [Dovecot] move mail from server with v1.0 to server w. v2.1?
Steffen Kaiser wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 1 Feb 2013, Frank Lienhard wrote: My first attempt was tho simply rsync the Maildirs along with the homes. Both deovecot versions are set up with the maildir format, but this results in ~30% doublicated mails on the new server. Er, a) you got 30% more files on the new server (aka target), than you have on the old server (aka source)?? b) Or do you see them, when you login via IMAP to the the new server? === If a), did you ran rsync, while the source host is in production still? Do you use "H" option to preserve hardlinks and/or "--delete" if you run rsync multiple times? If b), did you verified the duplication with a IMAP client, that does _no_ caching on its own or with a fresh and empty local cache / profile / ... . I used -avu, where: -a equals: -rlptgoD (no -H,-A,-X) -u skip file that are newer on the receiver I stopped the getmail cronjob to ensure that no new messages get fetched while sync. After that I created a new account in Icedove and at first all went well, but after a while I got duoplicates of abou 900 old messages. I admit I only looked that up from Icedove and not in the dir from cli.
[Dovecot] post-login scripting failing with "denied access to user" v2.1.7
I am trying to have a default sieve rule for new mailboxes that can be edited by users using the round cube sieve plugin. It would actually be better executed when a new user is created but my postfixadmin runs on a separate machine so that's a bit tricky. The "sieve-default =" setting won't quite achieve what I want as I want users to be able to edit the default rule (to adjust SPAM level) Mail works fine before I add my post-login script to 10-master.conf -- service imap { # tell imap to do post-login lookup using a socket called "imap-postlogin" executable = imap imap-postlogin } service imap-postlogin { # all post-login scripts are executed via script-login binary executable = script-login /etc/dovecot/custom_sieve/postlogin.sh # the script process runs as the user specified here (v2.0.14+): user = mail # also tried $default_internal_user and root # this UNIX socket listener must use the same name as given to imap executable unix_listener imap-postlogin { } } After adding this setting, login fails and gives the error below. It certainly looks like a permission issue, but I have checked my script is executable and owned by vmail:vmail. The bash script executes fine as the mail user. The other possibility is that dovecot is denying access to the $HOME variable, but that seems unlikely. Nevertheless, I am stuck! Log shows: -- dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled) dovecot: auth-worker(17522): mysql(database1): Connected to database postfixadmin dovecot: imap-login: Login: user=, method=PLAIN, rip=10.0.3.120, lip=10.0.1.180, mpid=17524, TLS, session=<+blqxM> dovecot: imap(te...@fqdn.net): Post-login script denied access to user te...@fqdn.net BASH script: /etc/dovecot/custom_sieve/postlogin.sh -- #!/bin/sh if [ ! -f $HOME/dovecot.sieve ] # if file doesn't exist then mkdir -p $HOME/sieve cp /etc/dovecot/custom_sieve/default.sieve $HOME/sieve/managesieve.sieve ln -s $HOME/sieve/managesieve.sieve $HOME/dovecot.sieve fi DEFAULT SIEVE RULE: /etc/dovecot/custom_sieve/default.sieve --- require ["fileinto"]; # rule:[SPAM] if header :contains "X-Spam-Level" "**" { fileinto "Junk"; } Config === # 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.3 ext4 dict { sqldomainquota = mysql:/etc/dovecot/dovecot-sql-domain.conf sqluserquota = mysql:/etc/dovecot/dovecot-dict-sql-user.conf } mail_location = maildir:/home/vmail/%d/%n/Maildir:INDEX=/home/vmail/%d/%n/Maildir/indexes mail_plugins = " quota" 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 ihave namespace inbox { inbox = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } prefix = } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { quota = dict:User Quota::proxy::sqluserquota quota_rule2 = Trash:storage=+100M sieve = ~/../.dovecot.sieve sieve_dir = ~/../sieve } protocols = " imap sieve pop3" service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } } service dict { unix_listener dict { group = vmail mode = 0600 user = vmail } } service imap-postlogin { executable = script-login /var/spool/mail/postlogin.sh user = vmail } service imap { executable = imap imap-postlogin } ssl_cert =
Re: [Dovecot] post-login scripting failing with "denied access to user" v2.1.7
Thanks Daniel, That worked well. The default spam filter is now created properly. I have placed sieve filters in the parent directory of the Maildir, otherwise the .dovecot.sieve file is erroneously interpreted as a maildir by IMAP clients. The way I have used parent directories ($HOME/../) in the script results in a warning from manage sieve but I think it is harmless as the filter work fine: dovecot: managesieve(t...@fqdn.net): Warning: sieve-storage: Active sieve script symlink /home/vmail/fqdn.net/test/Maildir/../.dovecot.sieve is broken: invalid/unknown path to storage (points to /home/vmail/fqdn.net/test/Maildir/../sieve/managesieve.sieve). Is there a way to suppress this warning? Frank On 28/01/2014, at 4:10 AM, Daniel Parthey wrote: > Hi Frank, > > Am 27.01.2014 07:57, schrieb Frank: >> After adding this setting, login fails and gives the error below. >> It certainly looks like a permission issue, but I have checked my script is >> executable and owned by vmail:vmail. The bash script executes fine as the >> mail user. >> The other possibility is that dovecot is denying access to the $HOME >> variable, but that seems unlikely. >> Nevertheless, I am stuck! >> >> Log shows: >> -- >> dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled) >> dovecot: auth-worker(17522): mysql(database1): Connected to database >> postfixadmin >> dovecot: imap-login: Login: user=, method=PLAIN, >> rip=10.0.3.120, lip=10.0.1.180, mpid=17524, TLS, session=<+blqxM> >> dovecot: imap(te...@fqdn.net): Post-login script denied access to user >> te...@fqdn.net > > http://wiki2.dovecot.org/PostLoginScripting > > You need to hand over the connection to the original imap handler, > your script may not simple exit, but needs to exec its argument line: > > exec "$@" > > Kind regards > Daniel > > -- > Dipl.-Inf. Daniel Parthey > System Engineer > Metaways Infosystems GmbH > Pickhuben 2, D-20457 Hamburg > > E-Mail: d.part...@metaways.de > Web:http://www.metaways.de > > Metaways Infosystems GmbH - Sitz: D-22967 Tremsbüttel > Handelsregister: Amtsgericht Lübeck HRB 4508 AH > Geschäftsführung: Hermann Thaele, Lüder-H.Thaele
imap coredump after doveadm altmove
Hello, i tried to move mails to an alt storage with the following command: doveadm altmove -u u...@domain.de mailbox Inbox After that, the imap process produces a core dump (files has not been moved): Maillog: dovecot: imap-login: Login: user=, method=PLAIN, rip=X.X.X.X, lip=X.X.X.X, mpid=5393, TLS, session=<83JiHqNdTwCsEAIf> dovecot: imap(u...@domain.de): Fatal: master: service(imap): child 5393 killed with signal 11 (core dumped) Version: Dovecot 2.2.18.2 OS: CenotOS6 2.6.32-696.10.2.el6.x86_64 local storage (ext4) #gdb --args /usr/libexec/dovecot/imap -u u...@domain.de A1 STATUS INBOX (MESSAGES) Program received signal SIGSEGV, Segmentation fault. 0x774b3c9a in __strrchr_sse2 () from /lib64/libc.so.6 (gdb) bt full #0 0x774b3c9a in __strrchr_sse2 () from /lib64/libc.so.6 No symbol table info available. #1 0x77b148cd in sdbox_file_move () from /usr/lib64/dovecot/libdovecot-storage.so.0 No symbol table info available. #2 0x77b18284 in sdbox_sync_begin () from /usr/lib64/dovecot/libdovecot-storage.so.0 No symbol table info available. #3 0x77b18382 in sdbox_sync () from /usr/lib64/dovecot/libdovecot-storage.so.0 No symbol table info available. #4 0x77b18437 in sdbox_storage_sync_init () from /usr/lib64/dovecot/libdovecot-storage.so.0 No symbol table info available. #5 0x77af64b3 in mailbox_sync_init () from /usr/lib64/dovecot/libdovecot-storage.so.0 No symbol table info available. #6 0x77af7d27 in mailbox_sync () from /usr/lib64/dovecot/libdovecot-storage.so.0 No symbol table info available. #7 0x77b62af2 in index_storage_get_status () from /usr/lib64/dovecot/libdovecot-storage.so.0 No symbol table info available. #8 0x767eb32c in ?? () from /usr/lib64/dovecot/lib10_quota_plugin.so No symbol table info available. #9 0x76c021e4 in ?? () from /usr/lib64/dovecot/lib01_acl_plugin.so No symbol table info available. #10 0x77af8931 in mailbox_get_status () from /usr/lib64/dovecot/libdovecot-storage.so.0 No symbol table info available. #11 0x0041e07a in imap_status_get () No symbol table info available. #12 0x00413629 in cmd_status () No symbol table info available. #13 0x004178ed in command_exec () No symbol table info available. #14 0x004168d0 in ?? () No symbol table info available. #15 0x00416966 in ?? () No symbol table info available. #16 0x00416c5d in client_handle_input () No symbol table info available. #17 0x00416fdf in client_input () No symbol table info available. #18 0x77852fbb in io_loop_call_io () from /usr/lib64/dovecot/libdovecot.so.0 No symbol table info available. #19 0x7785418f in io_loop_handler_run_internal () from /usr/lib64/dovecot/libdovecot.so.0 No symbol table info available. #20 0x77853049 in io_loop_handler_run () from /usr/lib64/dovecot/libdovecot.so.0 No symbol table info available. #21 0x778530c8 in io_loop_run () from /usr/lib64/dovecot/libdovecot.so.0 No symbol table info available. #22 0x777f2043 in master_service_run () from /usr/lib64/dovecot/libdovecot.so.0 No symbol table info available. #23 0x004206c1 in main () No symbol table info available. This is only on folders i have tried to move. best regards, Frank Koch -- smime.p7s Description: S/MIME Cryptographic Signature
Dovecot on GlusterFS via NFS is... strange.
Hi, I've discovered some interesting behaviour when running Dovecot on a GlusterFS volume (3.10) that is mounted via NFS 4.1 (ganesha NFS). First of all, using the usual settings for NFS storage seemed like an obvious choice for my setup (Dovecot 2.2.33.2, CentOS 7.4): mail_nfs_storage = yes mail_nfs_index = yes mail_fsync = always maildir_copy_with_hardlinks = yes mmap_disable = yes lock_method = dotlock (FWIW, I've been using these settings for many years on different NFS storages without any issues. Another instance of Dovecot 2.2.33 on FreeBSD 11.1 with a more traditional NFS storage is rock-solid.) SPOILER: These settings caused terrible issues. For example, when trying to clone a mailbox from an old server to this new Dovecot-on-GlusterFS setup (using imapsync), the following errors would show up frequently: Feb 6 16:44:53 dovecot: IMAP(u...@example.com): Panic: file maildir-uidlist.c: line 1262 (maildir_uidlist_write_fd): assertion failed: (first_idx == 0) Feb 6 16:44:53 dovecot: IMAP(u...@example.com): Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(+0x9f3de) [0x7f7b6b44f3de] -> /usr/lib64/dovecot/libdovecot.so.0(+0x9f4be) [0x7f7b6b44f4be] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7f7b6b3e077c] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x79605) [0x7f7b6b75b605] -> /usr/lib64/dovecot/libdovecot-storage.so.0(maildir_uidlist_sync_finish+0x1ac) [0x7f7b6b75d61c] -> /usr/lib64/dovecot/libdovecot-storage.so.0(maildir_uidlist_sync_deinit+0x98) [0x7f7b6b75da48] -> /usr/lib64/dovecot/libdovecot-storage.so.0(maildir_transaction_save_commit_pre+0x41f) [0x7f7b6b75483f] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xcccd0) [0x7f7b6b7aecd0] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_index_transaction_commit_full+0x9d) [0x7f7b6b7cb3cd] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_transaction_commit+0x107) [0x7f7b6b7af217] -> /usr/lib64/dovecot/lib10_quota_plugin.so(+0xe17c) [0x7f7b6a9ca17c] -> /usr/lib64/dovecot/lib01_acl_plugin.so(+0xda0a) [0x7f7b6abe0a0a] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_transaction_commit_get_changes+0x51) [0x7f7b6b72c161] -> dovecot/imap [u...@example.com 10.0.0.1 APPEND](+0xf255) [0x55ca8238f255] -> dovecot/imap [u...@example.com 10.0.0.1 APPEND](command_exec+0x5c) [0x55ca8239cf0c] -> dovecot/imap [u...@example.com 10.0.0.1 APPEND](+0xe771) [0x55ca8238e771] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x52) [0x7f7b6b464cd2] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x10f) [0x7f7b6b4663bf] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x3c) [0x7f7b6b464d6c] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) [0x7f7b6b464f28] -> /usr/lib64/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7f7b6b3eafa3] -> dovecot/imap [u...@example.com 10.0.0.1 APPEND](main+0x333) [0x55ca8238e2e3] -> /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f7b6b00ec05] -> dovecot/imap [u...@example.com 10.0.0.1 APPEND](+0xe476) [0x55ca8238e476] Feb 6 16:44:53 dovecot: IMAP(u...@example.com): Fatal: master: service(imap): child 84782 killed with signal 6 (core dumps disabled) Feb 6 16:44:56 dovecot: IMAP(u...@example.com): Error: readdir(/data/mail/abc/default/.Foldername 01_ Foo 1234/new) failed: Unknown error 523 Yes, the folder name is "special" in this example. (I'm not sure if this readdir() error is actually related to the other issue.) So, this caused the imap process to die repeatedly and the user got disconnected many many times. In this state the mail services were not really usable. Side note: The NFS share was mounted by using the most conservative moint options I could think of: vers=4.1,rsize=131072,wsize=131072,nosharecache,noac,nordirplus,proto=tcp And if you're wondering: Yes, I'm using Dovecot director for IMAP and LMTP (currently running 3 VMs for Dovecot director and 3 VMs for Dovecot IMAP). Then the fun began... I've decided to change the following settings: mail_nfs_storage = no mail_nfs_index = no Re-created the maildir and restarted the imapsync copy process. Out of sudden the errors are gone! Now Dovecot is performing pretty well on my GlusterFS volume. Does this make any sense to anyone? Ciao - Frank
2.3.1 with quota and lmtp; message may be sent more than once
Hi, I have another problem with dovecot 2.3.1 on FreeBSD (smtpd is postfix 3.3.0). When one mail is sent with different recipients and the quota limit of one user is exceeded, the message will be delivered repeatedly to all users. The queue from postfix says: (lost connection with mailserver.foo.bar[private/lmtp-dovecot] while sending end of data -- message may be sent more than once) The problem started with dovecot 2.3.1. With 2.2.3x everything was fine. Any ideas? Thanx Frank doveconf -n: auth_mechanisms = plain login auth_use_winbind = yes auth_winbind_helper_path = /usr/local/bin/ntlm_auth disable_plaintext_auth = no info_log_path = /var/log/dovecot listen = * mail_location = mdbox:~/mdbox mail_plugins = zlib quota acl mail_log notify managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacati on subaddress comparator-i;ascii-numeric relational regex imap4flags copy includ e variables body enotify environment mailbox date index ihave duplicate mime for everypart extracttext namespace { location = mdbox:/home/vmail/foo.domain/foo/mdbox prefix = Foo/ separator = / subscriptions = yes type = public } namespace { location = mdbox:/home/vmail/bar.domain/bar/mdbox prefix = Bar/ separator = / subscriptions = yes type = public } namespace { location = mdbox:/home/vmail/foobar.domain/foobar/mdbox prefix = Foobar/ separator = / subscriptions = yes type = public } namespace inbox { inbox = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } prefix = INBOX/ separator = / } passdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { acl = vfile:/usr/local/etc/dovecot/global-acls acl_shared_dict = file:/var/lib/dovecot/shared-mailboxes mail_log_events = flag_change delete undelete expunge copy mailbox_delete mail box_rename mail_log_fields = uid box msgid size flags quota = dict:User quota::file:%h/dovecot-quota quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = ~/.dovecot.sieve sieve_dir = ~/sieve stats_command_min_time = 1 mins stats_domain_min_time = 12 hours stats_ip_min_time = 12 hours stats_memory_limit = 16 M stats_refresh = 30 stats_session_min_time = 15 mins stats_track_cmds = yes stats_user_min_time = 1 hours zlib_save = gz zlib_save_level = 6 } postmaster_address = postmas...@foo.bar protocols = imap lmtp sieve service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } unix_listener auth-userdb { group = vmail user = vmail } } service lmtp { unix_listener /var/spool/postfix/private/lmtp-dovecot { group = postfix user = postfix } } service managesieve-login { inet_listener sieve { port = 4190 } process_min_avail = 0 service_count = 0 } service managesieve { process_limit = 1024 } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { user = vmail } user = vmail } service stats { fifo_listener stats-mail { mode = 0600 user = vmail } } ssl_cert = pgpbbs0ue4d9S.pgp Description: Digitale Signatur von OpenPGP
Re: 2.3.1 with quota and lmtp; message may be sent more than once
Thanx! Frank Am Tue, 15 May 2018 11:53:09 +0200 schrieb Stephan Bosch : > Op 14-5-2018 om 23:43 schreef Stephan Bosch: > > Op 14/05/2018 om 23:17 schreef Stephan Bosch: > >> > >> > >> Op 01/05/2018 om 10:12 schreef Frank Ebert: > >>> Hi, > >>> > >>> I have another problem with dovecot 2.3.1 on FreeBSD (smtpd is > >>> postfix 3.3.0). When one mail is sent with different recipients > >>> and the quota limit of one user is exceeded, the message will be > >>> delivered repeatedly to all users. The queue from postfix says: > >>> > >>> (lost connection with mailserver.foo.bar[private/lmtp-dovecot] > >>> while sending end of data -- message may be sent more than once) > >>> > >>> The problem started with dovecot 2.3.1. With 2.2.3x everything > >>> was fine. > >>> > >>> Any ideas? > >> > >> Hmm, I am wondering whether we already fixed this one implicitly. > >> I think we addressed some quota-related problems. Do you have the > >> opportunity to test this with git master(-2.3) ? > > > > Never mind, I can reproduce something here: > > > > lmtp(hugo)<953>: Fatal: master: > > service(lmtp): child 953 killed with signal 11 (core dumps disabled > > - https://dovecot.org/bugreport.html#coredumps) > > > > Working on it.. > > Fix scheduled for 2.3.2: > > https://github.com/dovecot/core/commit/847790d5aab84df38256a6f9b4849af0eb408419 > > Regards, > > Stephan. > pgpsmzBLQA4n6.pgp Description: Digitale Signatur von OpenPGP
Re: 2.3.1 with quota and lmtp; message may be sent more than once
Hi, thank you very much for your reply. Your solution seems to be a good workaround, until the patch from Stephan is available. Since I activated this setting in postfix, the problem doesn't appear any more. Frank Am Tue, 1 May 2018 23:43:13 +0300 schrieb Christos Chatzaras : > I had the same problem and the only workaround I found was to change > this to postfix main.cf : > > default_destination_recipient_limit = 1 > > > > > On 1 May 2018, at 11:12, Frank Ebert wrote: > > > > Hi, > > > > I have another problem with dovecot 2.3.1 on FreeBSD (smtpd is > > postfix 3.3.0). When one mail is sent with different recipients and > > the quota limit of one user is exceeded, the message will be > > delivered repeatedly to all users. The queue from postfix says: > > > > (lost connection with mailserver.foo.bar[private/lmtp-dovecot] while > > sending end of data -- message may be sent more than once) > > > > The problem started with dovecot 2.3.1. With 2.2.3x everything was > > fine. > > > > Any ideas? > > > > Thanx > > Frank pgp9dfZhtCDVi.pgp Description: Digitale Signatur von OpenPGP
Undefined SSL object
Hi community, when doing imapsync to my dovecot server (Host2) I get the following Host2 capability before authentication: IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH DEBUG: .../IO/Socket/SSL.pm:1117: global error: Undefined SSL object Host2: Socket successfuly converted to SSL Beside this message all works fine. What is it? SSL setting? How to overcome the message? Greetings, Frank
Mapping usernames used for authentication to UNIX usernames
Hi, I'm looking for some advice or pointers how to best solve a small problem that I have. I have no doubt that this can be done in dovecot, but I'm struggling to find the easiest way to implement it. First of all, what I have: I have a relative small dovecot setup for a dozen domains, and about 50 users in total. All users use IMAP to retrieve mail, and SMTP submission protocol to submit email. Because of the small size, every user has its own UNIX account, authentication is done using PAM and mail is stored in a Maildir folder in their home directory. Works perfectly! There is one minor inconvenience. When a new mail client is configured, users (often guided by the auto config generator of the mail client) tend to use their email address as the username to authenticate instead of their UNIX account name, which fails of course. Would it be possible to configure something that will map an email address to the UNIX account name and use the account name for authentication and obtaining the related information (uid, gid, home dir)? I do have two concerns: 1) I do not want to break existing mail configurations, so authentication with the UNIX username should still be possible. 2) I cannot do a simple reg. exp for the translation because every email domain has e.g. an i...@domain.com mailbox, and I do not want them all to go to UNIX user "info". As said, I would appreciate any advice on how this can be configured the easiest. Thanks in advance. Kind regards, Frank
Re: Dovecot v2.3.17 released
On Thu, 28 Oct 2021 12:12:53 +0300 (EEST) Aki Tuomi wrote: > We are pleased to release v2.3.17 of Dovecot. Hello, on my private fully updated Fedora 34 system I've replaced version 2.3.16 by version 2.3.17 without touching the configuration. Whereas version 2.3.16 worked the new 2.3.17 says Oct 28 11:29:27 christo dovecot[216609]: imap-login: Login: frank, 127.0.0.1, TLS Oct 28 11:29:27 christo dovecot[216609]: IMAP(frank,127.0.0.1): ID sent: name=imapsync, version=1.977, os=linux, vendor=Gilles LAMIRAL, support-url=https://imapsync.lamiral.info/, date=23-Dec-2019 20:18:02 +, side=host2 Oct 28 11:29:27 christo dovecot[216609]: IMAP(frank,127.0.0.1): Fatal: master: service(imap): child 216943 killed with signal 11 (core dumped) Oct 28 11:29:27 christo dovecot[216609]: imap-login: Login: frank, 127.0.0.1, TLS Oct 28 11:29:27 christo dovecot[216609]: IMAP(frank,127.0.0.1): Fatal: master: service(imap): child 216952 killed with signal 11 (core dumped) Oct 28 11:29:27 christo dovecot[216609]: imap-login: Login: frank, 127.0.0.1, TLS Oct 28 11:29:27 christo dovecot[216609]: IMAP(frank,127.0.0.1): Fatal: master: service(imap): child 216964 killed with signal 11 (core dumped) For comparison the old version Oct 28 11:36:58 christo dovecot[279524]: imap-login: Login: frank, 127.0.0.1, TLS Oct 28 11:36:58 christo dovecot[279524]: IMAP(frank,127.0.0.1): ID sent: name=imapsync, version=1.977, os=linux, vendor=Gilles LAMIRAL, support-url=https://imapsync.lamiral.info/, date=23-Dec-2019 20:18:02 +, side=host2 Oct 28 11:37:37 christo dovecot[279524]: IMAP(frank,127.0.0.1): Disconnected: Logged out [79451/32883563] If required here is the configuration which is rather old but worked until 2.3.16 # 2.3.16 (7e2e900c1a): /usr/local/dovecot/etc/dovecot/dovecot.conf # OS: Linux 5.14.13-200.fc34.x86_64 x86_64 Fedora release 34 (Thirty Four) ext3 # Hostname: christo auth_mechanisms = plain login default_client_limit = 1024 default_process_limit = 256 default_vsz_limit = 512 M first_valid_uid = 200 last_valid_uid = 65534 listen = * lmtp_save_to_detail_mailbox = yes login_greeting = m28a.ddns.net - IMAPs Service (dovecot) ready. login_log_format_elements = %u %r %c mail_location = maildir:/var/spool/mail/%u:LAYOUT=fs mail_log_prefix = "%Us(%u,%r): " mail_plugin_dir = /usr/dovecot/lib/dovecot/ mail_plugins = notify quota fts fts_squat acl namespace inbox { inbox = yes list = yes location = mailbox Drafts { special_use = \Drafts } mailbox Gesendet { special_use = \Sent } mailbox SPAM { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = subscriptions = yes type = private } passdb { args = dovecot driver = pam } plugin { fts = squat fts_squat = partial=4 full=10 mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename flag_change append mail_log_fields = uid box from subject msgid size flags mail_log_group_events = yes } postmaster_address = mailona...@mailbox.org protocols = imap service anvil { client_limit = 1024 } service auth { unix_listener auth-client { group = exim mode = 0660 user = exim } } service imap-login { inet_listener imap { port = 143 } process_limit = 512 process_min_avail = 3 } service imap-postlogin { executable = script-login /usr/local/sbin/dovecot-imap-post-login } service imap { executable = imap process_limit = 128 } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } } service pop3 { process_limit = 128 } ssl_cert =
Re: Dovecot v2.3.17 released
On Thu, 28 Oct 2021 11:39:42 + Aki Tuomi wrote: > Hi! > > Can you provide gdb bt full output for this crash? I fear this is far beyond my knowledge :-( but I will try. > Install debug symbols (if necessary) and > > gdb /usr/libexec/dovecot/imap /path/to/core What core? --Frank
Re: Dovecot v2.3.17 released
On Thu, 28 Oct 2021 17:32:28 +0300 (EEST) Aki Tuomi wrote: [ ... ] > I guess you are using systemd-coredump, so try > > coredumpctl dump -o core /usr/libexec/dovecot/imap That worked so I can provide # coredumpctl dump -o core /usr/local/dovecot/libexec/dovecot/imap PID: 309338 (imap) UID: 1953 (frank) GID: 12203 (elsner) Signal: 11 (SEGV) Timestamp: Thu 2021-10-28 15:48:43 CEST (2h 19min ago) Command Line: dovecot/imap [frank 127.0.0.1 STATUS] Executable: /usr/local/dovecot/libexec/dovecot/imap Control Group: /system.slice/dovecot.service Unit: dovecot.service Slice: system.slice Boot ID: c97b6e2b6f464589b7a50fbf4009d2bb Machine ID: 5367c967725543b39d46d1b5b5b90fa8 Hostname: christo Storage: /var/lib/systemd/coredump/core.imap.1953.c97b6e2b6f464589b7a50fbf4009d2bb.309338.163542892300.zst (present) Disk Size: 252.6K Message: Process 309338 (imap) of user 1953 dumped core. Stack trace of thread 309338: #0 0x7ff2193782cb fts_user_autoindex_exclude (lib20_fts_plugin.so + 0xa2cb) #1 0x7ff2193813b6 fts_mailbox_allocated (lib20_fts_plugin.so + 0x133b6) #2 0x7ff21984ad1c hook_mailbox_allocated (libdovecot-storage.so.0 + 0x62d1c) #3 0x7ff219845f11 mailbox_alloc (libdovecot-storage.so.0 + 0x5df11) #4 0x55d49e2003e5 imap_status_get (imap + 0x2b3e5) #5 0x55d49e1f0c6e cmd_status (imap + 0x1bc6e) #6 0x55d49e1f7494 command_exec (imap + 0x22494) #7 0x55d49e1f54c2 client_command_input (imap + 0x204c2) #8 0x55d49e1f5574 client_command_input (imap + 0x20574) #9 0x55d49e1f597d client_handle_next_command (imap + 0x2097d) #10 0x55d49e1f5f30 client_input (imap + 0x20f30) #11 0x7ff219733249 io_loop_call_io (libdovecot.so.0 + 0x116249) #12 0x7ff2197348f2 io_loop_handler_run_internal (libdovecot.so.0 + 0x1178f2) #13 0x7ff2197332f0 io_loop_handler_run (libdovecot.so.0 + 0x1162f0) #14 0x7ff2197334b0 io_loop_run (libdovecot.so.0 + 0x1164b0) #15 0x7ff2196a74f3 master_service_run (libdovecot.so.0 + 0x8a4f3) #16 0x55d49e1e6f85 main (imap + 0x11f85) #17 0x7ff219453b75 __libc_start_main (libc.so.6 + 0x27b75) #18 0x55d49e1e704e _start (imap + 0x1204e) HTH, Frank
Re: [EXT] Re: Dovecot v2.3.17 released
On Thu, 28 Oct 2021 19:17:40 +0300 (EEST) Aki Tuomi wrote: > > > On 28/10/2021 19:10 Frank Elsner wrote: > > > > > > On Thu, 28 Oct 2021 17:32:28 +0300 (EEST) Aki Tuomi wrote: > > > > [ ... ] > > > > > I guess you are using systemd-coredump, so try > > > > > > coredumpctl dump -o core /usr/libexec/dovecot/imap { ... ] > In the directory you ran that command, there will be now a file called > 'core'. Can you now do: > > gdb /usr/libexec/dovecot/imap core > bt full Hi Aki, I hope to deliver the requested info with this output (gdb) bt full #0 fts_user_autoindex_exclude (box=, box@entry=0x559500fdd138) at fts-user.c:347 fuser = #1 0x7f50d8f623b6 in fts_mailbox_allocated (box=0x559500fdd138) at fts-storage.c:806 flist = v = 0x559500fdd7b8 fbox = 0x559500fdd918 #2 0x7f50d942bd1c in hook_mailbox_allocated (box=box@entry=0x559500fdd138) at mail-storage-hooks.c:256 _data_stack_cur_id = 5 _foreach_end = 0x559500fce758 _foreach_ptr = 0x559500fce740 hooks = 0x7f50d8f90b40 ctx = 0x559500fde558 #3 0x7f50d9426f11 in mailbox_alloc (list=0x559500fd40c8, vname=vname@entry=0x559500f87620 "Administration", flags=flags@entry=0) at mail-storage.c:885 _data_stack_cur_id = 4 new_list = 0x559500fd40c8 storage = 0x559500fd48d8 box = 0x559500fdd138 open_error = MAIL_ERROR_NONE errstr = 0x0 __func__ = "mailbox_alloc" #4 0x5594fffcaae2 in cmd_create (cmd=0x559500fd38b8) at cmd-create.c:40 ns = 0x559500fd3390 --Type for more, q to quit, c to continue without paging-- mailbox = 0x559500f87620 "Administration" orig_mailbox = box = 0x559500fdc5a0 directory = len = 14 #5 0x5594fffd8494 in command_exec (cmd=cmd@entry=0x559500fd38b8) at imap-commands.c:201 hook = 0x559500f93580 finished = __func__ = "command_exec" #6 0x5594fffd64c2 in client_command_input (cmd=) at imap-client.c:1230 client = 0x559500fd2788 command = tag = 0x7f50d9331f3a "]A\\A]\303\061\300\303ff.\017\037\204" name = 0x5594fffea726 "CREATE" ret = __func__ = "client_command_input" #7 0x5594fffd6574 in client_command_input (cmd=) at imap-client.c:1297 client = 0x559500fd2788 command = tag = 0x559500f9e0e8 "161" name = 0x559500f9e0f0 "CREATE" ret = __func__ = "client_command_input" --Type for more, q to quit, c to continue without paging-- #8 0x5594fffd697d in client_handle_next_command (remove_io_r=, client=0x559500fd2788) at imap-client.c:1339 No locals. #9 client_handle_input (client=0x559500fd2788) at imap-client.c:1353 _data_stack_cur_id = 3 ret = remove_io = false handled_commands = false __func__ = "client_handle_input" #10 0x5594fffd6f30 in client_input (client=0x559500fd2788) at imap-client.c:1397 cmd = 0x559500f9b6a8 output = 0x559500fd31f0 bytes = 27 __func__ = "client_input" #11 0x7f50d9314249 in io_loop_call_io (io=0x559500fd3330) at ioloop.c:737 ioloop = 0x559500f8fe70 t_id = 2 __func__ = "io_loop_call_io" #12 0x7f50d93158f2 in io_loop_handler_run_internal (ioloop=ioloop@entry=0x559500f8fe70) at ioloop-epoll.c:222 ctx = 0x559500f925d0 events = event = 0x559500f92650 list = 0x559500f9b690 --Type for more, q to quit, c to continue without paging-- io = tv = {tv_sec = 1799, tv_usec = 999057} events_count = msecs = ret = 1 i = 0 j = 0 call = __func__ = "io_loop_handler_run_internal" #13 0x7f50d93142f0 in io_loop_handler_run (ioloop=0x559500f8fe70) at ioloop.c:789 __func__ = "io_loop_handler_run" #14 0x7f50d93144b0 in io_loop_run (ioloop=0x559500f8fe70) at ioloop.c:762 __func__ = "io_loop_run" #15 0x7f50d92884f3 in master_service_run (service=0x559500f8fcd0, callback=callback@entry=0x5594fffe4c90 ) at master-service.c:863 No locals. #16 0x5594fffc7f85 in main (argc=, argv=) at main.c:564 set_roots = {0x559498e0 , 0x55949600 , 0x0} login_set = {auth_socket_path = 0x559500f877f8 "\003", postlogin_socket_path = 0x0, postlogin_timeout_secs = 60, callback = 0x5594fffe5640 , failure_callback = 0x5594fffe4d60 , request_auth_token = true} service_flags = storage_service_flags = (MAIL_STORAGE_SERVICE_FLAG_NO_NAMESPACES | MAIL_STORAGE_SERVICE_FLAG_NO_SSL_CA) --Type for more, q to quit, c to continue without paging-- username = auth_socket_path = c = error = 0x7fffe05085a8 "" (gdb) By for today, Frank
Re: Dovecot v2.3.17.1 Released
On Tue, 7 Dec 2021 12:44:33 +0200 (EET) Aki Tuomi wrote: > We are happy to announce 2.3.17.1 patch release of Dovecot. This contains > some fixes for issues found after 2.3.17 release. I still get the old error: Dec 7 12:05:02 christo dovecot[481494]: master: Dovecot v2.3.17.1 (476cd46418) starting up for imap Dec 7 12:05:17 christo dovecot[481540]: imap-login: Login: frank, 192.168.28.84, TLS Dec 7 12:05:18 christo dovecot[481540]: IMAP(frank,192.168.28.84): Fatal: master: service(imap): child 481654 killed with signal 11 (core dumped) # coredumpctl dump -o core /usr/local/dovecot/libexec/dovecot/imap PID: 481654 (imap) UID: 1953 (frank) GID: 12203 (elsner) Signal: 11 (SEGV) Timestamp: Tue 2021-12-07 12:05:17 CET (2min 0s ago) Command Line: dovecot/imap [frank 192.168.28.84 SELECT] Executable: /usr/local/dovecot/libexec/dovecot/imap Control Group: /system.slice/dovecot.service Unit: dovecot.service Slice: system.slice Boot ID: e991a6fd1fac42aa98913522106cb1c6 Machine ID: 5367c967725543b39d46d1b5b5b90fa8 Hostname: christo Storage: /var/lib/systemd/coredump/core.imap.1953.e991a6fd1fac42aa98913522106cb1c6.481654.163887511700.zst (present) Disk Size: 252.4K Message: Process 481654 (imap) of user 1953 dumped core. Stack trace of thread 481654: #0 0x7fbd353c32cb fts_user_autoindex_exclude (lib20_fts_plugin.so + 0xa2cb) #1 0x7fbd353cc3b6 fts_mailbox_allocated (lib20_fts_plugin.so + 0x133b6) #2 0x7fbd35895d1c hook_mailbox_allocated (libdovecot-storage.so.0 + 0x62d1c) #3 0x7fbd35890f11 mailbox_alloc (libdovecot-storage.so.0 + 0x5df11) #4 0x55ceb1aa65d2 select_open (imap + 0x1a5d2) #5 0x55ceb1aae494 command_exec (imap + 0x22494) #6 0x55ceb1aac4c2 client_command_input (imap + 0x204c2) #7 0x55ceb1aac574 client_command_input (imap + 0x20574) #8 0x55ceb1aac97d client_handle_next_command (imap + 0x2097d) #9 0x55ceb1aacf30 client_input (imap + 0x20f30) #10 0x7fbd3577e1e9 io_loop_call_io (libdovecot.so.0 + 0x1161e9) #11 0x7fbd3577f892 io_loop_handler_run_internal (libdovecot.so.0 + 0x117892) #12 0x7fbd3577e290 io_loop_handler_run (libdovecot.so.0 + 0x116290) #13 0x7fbd3577e450 io_loop_run (libdovecot.so.0 + 0x116450) #14 0x7fbd356f24f3 master_service_run (libdovecot.so.0 + 0x8a4f3) #15 0x55ceb1a9df85 main (imap + 0x11f85) #16 0x7fbd3549eb75 __libc_start_main (libc.so.6 + 0x27b75) #17 0x55ceb1a9e04e _start (imap + 0x1204e) Sad, Frank
Quota: How/where to set/change
Hi experts. in the output of imapsync I found: Host2: found quota, presented in raw IMAP Sending: 7 GETQUOTAROOT INBOX Sent 22 bytes Read: * QUOTAROOT INBOX "User quota" * QUOTA "User quota" (STORAGE 420325 1953125) 7 OK Getquotaroot completed (0.001 + 0.000 secs). Host2: Quota current storage is 430412800 bytes. Limit is 20 bytes. So 21.52 % full Host2 is under my control and running dovecot-2.3.10.1. I need to increase the quota above 2 GB but don't know where it comes from and therefor don't know what to do. This is the doveconf -a: | # 2.3.10.1 (a3d0e1171): /usr/local/dovecot/etc/dovecot/dovecot.conf | # OS: Linux 5.7.6-201.fc32.x86_64 x86_64 Fedora release 32 (Thirty Two) ext3 | # Hostname: christo.fritz.box | # NOTE: Send doveconf -n output instead when asking for help. | auth_anonymous_username = anonymous | auth_cache_negative_ttl = 1 hours | auth_cache_size = 0 | auth_cache_ttl = 1 hours | auth_cache_verify_password_with_worker = no | auth_debug = no | auth_debug_passwords = no | auth_default_realm = | auth_failure_delay = 2 secs | auth_gssapi_hostname = | auth_krb5_keytab = | auth_master_user_separator = | auth_mechanisms = plain login | auth_policy_check_after_auth = yes | auth_policy_check_before_auth = yes | auth_policy_hash_mech = sha256 | auth_policy_hash_nonce = | auth_policy_hash_truncate = 12 | auth_policy_log_only = no | auth_policy_reject_on_fail = no | auth_policy_report_after_auth = yes | auth_policy_request_attributes = login=%{requested_username} pwhash=%{hashed_password} remote=%{rip} device_id=%{client_id} protocol=%s | auth_policy_server_api_header = | auth_policy_server_timeout_msecs = 2000 | auth_policy_server_url = | auth_proxy_self = | auth_realms = | auth_socket_path = auth-userdb | auth_ssl_require_client_cert = no | auth_ssl_username_from_cert = no | auth_stats = no | auth_use_winbind = no | auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@ | auth_username_format = %Lu | auth_username_translation = | auth_verbose = no | auth_verbose_passwords = no | auth_winbind_helper_path = /usr/bin/ntlm_auth | auth_worker_max_count = 30 | base_dir = /var/run/dovecot | config_cache_size = 1 M | debug_log_path = | default_client_limit = 1024 | default_idle_kill = 1 mins | default_internal_group = dovecot | default_internal_user = dovecot | default_login_user = dovenull | default_process_limit = 256 | default_vsz_limit = 512 M | deliver_log_format = msgid=%m: %$ | dict_db_config = | director_flush_socket = | director_mail_servers = | director_max_parallel_kicks = 100 | director_max_parallel_moves = 100 | director_output_buffer_size = 10 M | director_ping_idle_timeout = 30 secs | director_ping_max_timeout = 1 mins | director_servers = | director_user_expire = 15 mins | director_user_kick_delay = 2 secs | director_username_hash = %Lu | disable_plaintext_auth = yes | dotlock_use_excl = yes | doveadm_allowed_commands = | doveadm_api_key = | doveadm_http_rawlog_dir = | doveadm_password = | doveadm_port = 0 | doveadm_socket_path = doveadm-server | doveadm_ssl = no | doveadm_username = doveadm | doveadm_worker_count = 0 | dsync_alt_char = _ | dsync_commit_msgs_interval = 100 | dsync_features = | dsync_hashed_headers = Date Message-ID | dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server -u%u -U | first_valid_gid = 1 | first_valid_uid = 200 | haproxy_timeout = 3 secs | haproxy_trusted_networks = | hostname = | imap_capability = | imap_client_workarounds = | imap_fetch_failure = disconnect-immediately | imap_hibernate_timeout = 0 | imap_id_log = | imap_id_retain = no | imap_id_send = name * | imap_idle_notify_interval = 2 mins | imap_literal_minus = no | imap_logout_format = in=%i out=%o deleted=%{deleted} expunged=%{expunged} trashed=%{trashed} hdr_count=%{fetch_hdr_count} hdr_bytes=%{fetch_hdr_bytes} body_count=%{fetch_body_count} body_bytes=%{fetch_body_bytes} | imap_max_line_length = 64 k | imap_metadata = no | imap_urlauth_host = | imap_urlauth_logout_format = in=%i out=%o | imap_urlauth_port = 143 | imapc_cmd_timeout = 5 mins | imapc_connection_retry_count = 1 | imapc_connection_retry_interval = 1 secs | imapc_features = | imapc_host = | imapc_list_prefix = | imapc_master_user = | imapc_max_idle_time = 29 mins | imapc_max_line_length = 0 | imapc_password = | imapc_port = 143 | imapc_rawlog_dir = | imapc_sasl_mechanisms = | imapc_ssl = no | imapc_ssl_verify = yes | imapc_user = | import_environment = TZ CORE_OUTOFMEM CORE_ERROR | info_log_path = | instance_name = dovecot | last_valid_gid = 0 | last_valid_uid = 65534 | lda_mailbox_autocreate = no | lda_mailbox_autosubscribe = no | lda_original_recipient_header = | libexec_dir = /usr/local/dovecot/libexec/dovecot | listen = * | lmtp_add_received_header = yes | lmtp_client_workarounds = | lmtp_hdr_delivery_address = final | lmtp_proxy = no | lmtp_proxy_rawlog_dir = | lmtp_rawlog_dir = | lmtp_rcpt_check_quota
Re: post-delivery virus scan
On Wed, 9 Nov 2016 15:36:33 -0600 Brad Koehn wrote: [ ... ] > To help detect and remove the infected messages after they’ve been delivered > to users’ mailboxes, I created a small script that iterates the INBOX and > Junk mailbox directories, scans recent messages for viruses, and deletes them > if found. The source of my script (run via cron) is here: > https://gitlab.koehn.com/snippets/9 Bad idea. The user may already taken the action needed for infection. And what about legal aspects? In my country (Germany), information suppression would be punishable. Just my 0.02 €, Frank
Re: Unable to access apt.dovecot.fi
Hi Alexandre, this is a known problem (see http://dovecot.org/pipermail/dovecot/2016-November/106081.html). > Hi, > > Can you please contact us at support at dovecot.fi > <http://dovecot.org/cgi-bin/mailman/listinfo/dovecot> to get this issue > resolved. > > Sami > Frank Am 12.01.2017 um 10:17 schrieb Alexandre Ellert: > Hi, > > I bought a Dovecot Enterprise repository acces in 2013 and since > several months, I can't access it anymore. > > It seem that my credential are broken. > When doing an apt-get update : > > W: Failed to fetch > http://apt.dovecot.fi/3rdparty/debian/wheezy/dists/wheezy/main/binary-amd64/Packages > 401 Unauthorized > W: Failed to fetch > http://apt.dovecot.fi/stable-2.2/debian/wheezy/dists/wheezy/main/binary-amd64/Packages > 401 Unauthorized > > And here is my sources.list : > # cat /etc/apt/sources.list.d/dovecot.list > deb http://USER:passw...@apt.dovecot.fi/stable-2.2/debian/wheezy wheezy main > # cat /etc/apt/sources.list.d/dovecot-3rdparty.list > deb http://USER:passw...@apt.dovecot.fi/3rdparty/debian/wheezy wheezy main > > Thank you for help. > > Alexandre -- smime.p7s Description: S/MIME Cryptographic Signature
Re: The end of Dovecot Director?
On 2022-10-21 11:38, Heiko Schlittermann wrote: Apparently, Dovecot Director is going to be removed in the next major version of Dovecot and the commercial Dovecot cluster architecture will be its successor: We - the communitiy - are free to continue development of the director. So, who's going to fork dovecot (director)? Ciao - Frank
Re: The end of Dovecot Director?
Am 2022-10-26 11:52, schrieb Maciej Milaszewski: Will there be a fork dovecot ? Hm, maybe it would be possible to just fork the director component? But it would still require a passionate C developer. Whether LibreCot or FreeDirector will be born... I'd be happy to support both! And don't feel obligated to use these names ;) Ciao - Frank
Re: The end of Dovecot Director?
On 2022-11-01 16:58, Mark Moseley wrote: TL;DR: I think the real issue here is that Dovecot is removing *existing, long-standing, critical functionality* from the open source version. That is a huge, huge red flag. It certainly looks like a poor decision, driven by corporate interests. Makes me wonder which other feature will be moved to the commercial edition once the dust has settled. It really hurts the great reputation Dovecot has built over all these years. I've got my first Dovecot installation back in ~2006 and ever since I've been advocating it as the best IMAP server. So sad to see this feature removal now. Ciao - Frank
Re: The end of Dovecot Director?
On 2022-11-02 09:11, Aki Tuomi wrote: You can also see the email sent by others which shows how you can do this without replication, using proxy and passdb to direct users to right backend. Which is basically what director does. It's not the same thing. It is not critical functionality. You can feasibly run a two-node dovecot system on NFS without having director. It seems to be critical enough to offer a replacement for paying customers, while at the same time leaving the community edition with no valid replacement. Ciao - Frank
Dovecot 2.2.18.2: Panic: file fs-api.c: line 756 (fs_copy): assertion failed: (src->fs == dest->fs)
Hello, a colleague found some strange messages in the logs: Oct 27 13:08:43 mail postfix/qmgr[1618]: E83C8180F56: from=, size=298937, nrcpt=2 (queue active) Oct 27 13:08:43 mail dovecot: lmtp(6740): Connect from local Oct 27 13:08:43 mail dovecot: lmtp(us...@domain.de): gYFbBEdpL1ZUGgAA0nA0dQ: message-id=<035901d110b0$3929bc20$ab7d3460$@domain.de>: saved mail to INBOX (from: us...@domain.de, subject: WG: Matthias, size: 295392) Oct 27 13:08:43 mail postfix/lmtp[6702]: E83C8180F56: to=, relay=mail.domain.de[private/dovecot-lmtp], delay=0.41, delays=0.36/0/0/0.05, dsn=2.0.0, status=sent (250 2.0.0 gYFbBEdpL1ZUGgAA0nA0dQ Saved) Oct 27 13:08:43 mail dovecot: lmtp(mailarc...@domain.de): Panic: file fs-api.c: line 756 (fs_copy): assertion failed: (src->fs == dest->fs) Oct 27 13:08:43 mail dovecot: lmtp(mailarc...@domain.de): Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(+0x7b53a) [0x7f10419e553a] -> /usr/lib64/dovecot/libdovecot.so.0(+0x7b5a6) [0x7f10419e55a6] -> /usr/lib64/dovecot/libdovecot.so.0(+0x281ea) [0x7f10419921ea] -> /usr/lib64/dovecot/libdovecot.so.0(+0x3163a) [0x7f104199b63a] -> /usr/lib64/dovecot/libdovecot-storage.so.0(sdbox_copy+0x4c4) [0x7f1041cbad94] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_copy+0x7a) [0x7f1041c9f37a] -> /usr/lib64/dovecot/libdovecot-lda.so.0(mail_deliver_save+0x1a7) [0x7f1041f891b7] -> /usr/lib64/dovecot/libdovecot-lda.so.0(mail_deliver+0x11b) [0x7f1041f8956b] -> dovecot/lmtp() [0x406922] -> dovecot/lmtp() [0x40730d] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x5b) [0x7f10419f7fbb] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0xaf) [0x7f10419f918f] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x9) [0x7f10419f8049] -> /usr/lib64/dovecot/ libdovec ot.so.0(io_loop_run+0x38) [0x7f10419f80c8] -> /usr/lib64/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7f1041997043] -> dovecot/lmtp(main+0x18b) [0x404dbb] -> /lib64/libc.so.6(__libc_start_main+0xfd) [0x7f10415f4d5d] -> dovecot/lmtp() [0x404b49] Oct 27 13:08:43 mail dovecot: lmtp(mailarc...@domain.de): Fatal: master: service(lmtp): child 6740 killed with signal 6 (core dumps disabled) Oct 27 13:08:43 mail postfix/lmtp[6702]: E83C8180F56: to=, relay=mail.domain.de[private/dovecot-lmtp], delay=0.41, delays=0.36/0/0/0.05, dsn=4.4.2, status=deferred (lost connection with mail.domain.de[private/dovecot-lmtp] while sending end of data -- message may be sent more than once) Postfix always_bcc set to mailarc...@domain.de. [root@mail ~]# rpm -qa | grep dove dovecot-ee-2.2.18.2-1.el6.x86_64 dovecot-ee-managesieve-0.4.8-1.el6.x86_64 dovecot-ee-pigeonhole-0.4.8-1.el6.x86_64 [root@mail ~]# doveconf -n # 2.2.18.2 (866bffbafde7): /etc/dovecot/dovecot.conf # Pigeonhole version 0.4.8 (73d4f6cd676a) # OS: Linux 2.6.32-573.7.1.el6.x86_64 x86_64 CentOS release 6.7 (Final) ext4 auth_cache_negative_ttl = 0 auth_mechanisms = plain login deliver_log_format = message-id=%m: %$ (from: %f, subject: %s, size: %p) dict { quota = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext } disable_plaintext_auth = no imap_client_workarounds = tb-extra-mailbox-sep mail_attachment_dir = /storage/mail/attachments mail_attachment_hash = %{sha512} mail_gid = vmail mail_location = sdbox:/storage/mail/%d/%n mail_plugins = acl quota mail_uid = vmail 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 index ihave duplicate namespace { list = children location = sdbox:/storage/mail/%%d/%%n/ prefix = shared/%%u/ separator = / subscriptions = no type = shared } namespace { list = children location = maildir:/storage/mail/public:INDEX=/storage/mail/%d/%n/public prefix = public/ separator = / subscriptions = no type = public } namespace inbox { inbox = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox "Gelöschte Objekte" { special_use = \Trash } mailbox "Gesendete Objekte" { special_use = \Sent } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } prefix = subscriptions = yes type = private } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { acl = vfile acl_shared_dict = file:/storage/mail/shared-mailboxes sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap lmtp sieve service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } } service dict { unix_listener dict { group = vmail mode = 0660 user = vmail } } service imap-login { inet_listener imaps { ssl = yes } } service lmtp { unix_listene
Problems after upgrade from 2.0 to 2.2
Hi all, after upgrade from some 2.0 version to 2.2.19 (debian) i face map login problems: # doveconf -n # 2.2.19 (ca91d540fd87): /etc/dovecot/dovecot.conf # Pigeonhole version 0.4.9 # OS: Linux 2.6.32-5-amd64 x86_64 Debian 8.2 ext4 auth_debug = yes auth_debug_passwords = yes auth_verbose = yes auth_verbose_passwords = plain debug_log_path = /var/log/dovecot-debug.log hostname = test.my.domain.de info_log_path = /var/log/dovecot.log mail_access_groups = smmta mail_debug = yes mail_location = mbox:/extra/mail/mbox.dir/%u/mailboxes:DIRNAME=mBoX-MeSsAgEs:INDEX=/extra/mail/mbox.dir/%u/index:CONTROL=/extra/mail/mbox.dir/%u/control:INBOX=/extra/mail/%u mail_plugins = quota mail_privileged_group = smmta 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 index ihave duplicate namespace inbox { location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { driver = pam } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename flag_change append quota = fs:User quota quota_rule = *:storage=1G quota_rule2 = Trash:storage=+100M quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = file:~/sieve;active=~/.dovecot.sieve } postmaster_address = postmas...@my.domain.de protocols = " imap sieve pop3" quota_full_tempfail = yes ssl = required ssl_cert = , method=PLAIN, rip=134.169.39.105, lip=134.169.39.22, mpid=9475, TLS, session=<...> dovecot-debug.log: Nov 12 07:47:27 imap-login: Debug: SSL: elliptic curve secp384r1 will be used for ECDH and ECDHE key exchanges Nov 12 07:47:27 auth: Debug: auth client connected (pid=11158) Nov 12 07:47:27 imap-login: Debug: SSL: where=0x10, ret=1: before/accept initialization [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2001, ret=1: before/accept initialization [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2001, ret=1: unknown state [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2001, ret=1: unknown state [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2001, ret=1: unknown state [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2001, ret=1: unknown state [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2001, ret=1: unknown state [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2001, ret=1: unknown state [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2002, ret=-1: unknown state [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2002, ret=-1: unknown state [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2001, ret=1: unknown state [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2002, ret=-1: unknown state [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2001, ret=1: unknown state [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2001, ret=1: unknown state [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2001, ret=1: unknown state [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2001, ret=1: unknown state [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x20, ret=1: SSL negotiation finished successfully [134.169.39.105] Nov 12 07:47:27 imap-login: Debug: SSL: where=0x2002, ret=1: SSL negotiation finished successfully [134.169.39.105] Nov 12 07:47:27 auth: Debug: client in: AUTH1 PLAIN service=imap secured session=QkLwUFIkXsCGqSdplip=134.169.39.22 rip=134.169.39.105 lport=993 rport=49246 resp= (previous base64 data removed) Nov 12 07:47:27 auth-worker(11140): Debug: pam(frank,134.169.39.105): lookup service=dovecot Nov 12 07:47:27 auth-worker(11140): Debug: pam(frank,134.169.39.105): #1/1 style=1 msg=Password: Nov 12 07:47:27 auth: Debug: client passdb out: OK 1 user=frank Nov 12 07:47:27 auth: Debug: master in: REQUEST 3038248961 11158 1 4e2362c2872f9288b7c8c3ebd8469620session_pid=11159 request_auth_token Nov 12 07:47:27 auth-worker(11140): Debug: pam(frank,134.169.39.105): lookup Nov 12 07:47:27 auth: Debug: master userdb out: USER3038248961 frank system_groups_user=frankuid=1000 gid=100 home=/home/frank auth_token=1e04d2c61fb327ec14c1e54ff678d73a325d20bf Nov 12 07:47:27 imap(frank): Debug: Loading modules from directory: /usr/lib/dovecot/modules Nov 12 07:47:27 imap(frank): Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
Re: Problems after upgrade from 2.0 to 2.2
Thanks a lot! This was added by a new debian package file! They added the 15-mailboxes.conf file with this input-namespace. It’s a bad thing. For changed configuration the installer asks which version, old or new to take, but new files are installed without confirmation. But that’s a debian problem, not dovecot. Best regards, Frank > Am 12.11.2015 um 08:58 schrieb Christian Kivalo : > > Hi, > > On 2015-11-12 08:03, Frank Rust wrote: >> Hi all, >> after upgrade from some 2.0 version to 2.2.19 (debian) i face map >> login problems: >> # doveconf -n >> # 2.2.19 (ca91d540fd87): /etc/dovecot/dovecot.conf >> # Pigeonhole version 0.4.9 >> # OS: Linux 2.6.32-5-amd64 x86_64 Debian 8.2 ext4 >> auth_debug = yes >> auth_debug_passwords = yes >> auth_verbose = yes >> auth_verbose_passwords = plain >> debug_log_path = /var/log/dovecot-debug.log >> hostname = test.my.domain.de >> info_log_path = /var/log/dovecot.log >> mail_access_groups = smmta >> mail_debug = yes >> mail_location = >> mbox:/extra/mail/mbox.dir/%u/mailboxes:DIRNAME=mBoX-MeSsAgEs:INDEX=/extra/mail/mbox.dir/%u/index:CONTROL=/extra/mail/mbox.dir/%u/control:INBOX=/extra/mail/%u >> mail_plugins = quota >> mail_privileged_group = smmta >> 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 index ihave duplicate >> namespace inbox { >> location = >> mailbox Drafts { >>special_use = \Drafts >> } >> mailbox Junk { >>special_use = \Junk >> } >> mailbox Sent { >>special_use = \Sent >> } >> mailbox "Sent Messages" { >>special_use = \Sent >> } >> mailbox Trash { >>special_use = \Trash >> } >> prefix = >> } > > Missing inbox = yes in your default namespace. > > See wiki http://wiki2.dovecot.org/Namespaces > >> passdb { >> driver = pam >> } >> plugin { >> mail_log_events = delete undelete expunge copy mailbox_delete >> mailbox_rename flag_change append >> quota = fs:User quota >> quota_rule = *:storage=1G >> quota_rule2 = Trash:storage=+100M >> quota_warning = storage=95%% quota-warning 95 %u >> quota_warning2 = storage=80%% quota-warning 80 %u >> sieve = file:~/sieve;active=~/.dovecot.sieve >> } >> postmaster_address = postmas...@my.domain.de >> protocols = " imap sieve pop3" >> quota_full_tempfail = yes >> ssl = required >> ssl_cert = > ssl_cipher_list = >> EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA256:EECDH+aRSA+RC4:EDH+aRSA >> EECDH RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS >> ssl_key = > ssl_prefer_server_ciphers = yes >> ssl_protocols = !SSLv2 !SSLv3 >> userdb { >> driver = passwd >> } >> verbose_ssl = yes >> protocol lda { >> mail_plugins = >> } > > [ snip ] > >> Nov 12 07:47:27 imap(frank): Debug: Namespace inbox: type=private, >> prefix=, sep=, inbox=no, hidden=no, list=yes, subscriptions=yes > ^^^^ > inbox not set. > >> location=mbox:/extra/mail/mbox.dir/frank/mailboxes:DIRNAME=mBoX-MeSsAgEs:INDEX=/extra/mail/mbox.dir/frank/index:CONTROL=/extra/mail/mbox.dir/frank/control:INBOX=/extra/mail/frank >> Nov 12 07:47:27 imap(frank): Debug: fs: >> root=/extra/mail/mbox.dir/frank/mailboxes, >> index=/extra/mail/mbox.dir/frank/index, indexpvt=, >> control=/extra/mail/mbox.dir/frank/control, inbox=/extra/mail/frank, >> alt= >> Nov 12 07:47:27 imap(frank): Debug: fs quota add mailbox dir = >> /extra/mail/mbox.dir/frank/mailboxes >> Nov 12 07:47:27 imap(frank): Debug: fs quota block device = >> /dev/mapper/ownCloudVG-ownCloudData >> Nov 12 07:47:27 imap(frank): Debug: fs quota mount point = /extra >> Nov 12 07:47:27 imap(frank): Debug: fs quota mount type = ext4 >> Nov 12 07:47:27 imap-login: Debug: SSL alert: close notify [134.169.39.105] >> What could cause the problem? >> The problem is not quota related (I enhanced the allowed quota and got >> the same results) >> best regards, >> Frank > > regards > christian
Double folders?
Hi, I upgraded my dovecot install from 2.0.19 to 2.2.19. I haved update the configuration, accordingly, but I when I open roundcube, I see multiple folders like sent, trash, facebook, etc... I not sure if am missing something or not. Here is my configure: [root@mgmt ~]# cat dovecot_config.txt # 2.2.19: /etc/dovecot/dovecot.conf # OS: Linux 3.4.4 armv5tel Gentoo Base System release 2.1 ext3 auth_mechanisms = plain login disable_plaintext_auth = no first_valid_gid = 207 first_valid_uid = 207 last_valid_gid = 207 last_valid_uid = 207 listen = *, [::] mail_gid = 207 mail_location = maildir:/var/vmail/%u/Maildir/:INDEX=/var/vmail/%u/indexes mail_plugins = quota mail_uid = 207 namespace { inbox = yes location = prefix = INBOX. separator = . name = } namespace { location = mailbox { special_use = \Drafts name = Drafts } mailbox { special_use = \Junk name = Junk } mailbox { special_use = \Sent name = Sent } mailbox { special_use = \Trash name = Trash } prefix = name = inbox } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } protocols = imap pop3 service replication-notify-fifo { name = aggregator } service anvil-auth-penalty { name = anvil } service auth-worker { user = $default_internal_user name = auth-worker } service { unix_listener { group = postfix mode = 0666 user = postfix path = /var/spool/postfix/private/auth } unix_listener { group = mail mode = 0666 user = mail path = auth-userdb } name = auth } service config { name = config } service dict-async { name = dict-async } service dict { name = dict } service login/proxy-notify { name = director } service dns-client { name = dns_client } service doveadm-server { name = doveadm } service imap-hibernate { name = imap-hibernate } service imap { name = imap-login } service imap-urlauth { name = imap-urlauth-login } service imap-urlauth-worker { name = imap-urlauth-worker } service token-login/imap-urlauth { name = imap-urlauth } service imap-master { name = imap } service indexer-worker { name = indexer-worker } service indexer { name = indexer } service ipc { name = ipc } service lmtp { name = lmtp } service log-errors { name = log } service pop3 { name = pop3-login } service login/pop3 { name = pop3 } service replicator-doveadm { name = replicator } service login/ssl-params { name = ssl-params } service stats-mail { name = stats } ssl_cert =
Re: "anvil: Error: connect limit: disconnection for unknown pid 17659 + ident lmtp/backup@backup.invalid"
On Thu, 7 Jul 2016 14:31:04 +0200 Ralf Hildebrandt wrote: > I updated to 2.3.0 today, and now I'm getting these entries in my log: ^ Hey, what's that? Typo or secret version? --Frank Elsner
Re: [Dovecot] Connection dropped by IMAP server
Le 21/07/2011 02:21, Duane Hill a écrit : Wednesday, July 20, 2011, 4:56:20 PM, you wrote: On 7/20/2011 2:52 PM, Marc Perkel wrote: Some time people running Squirrelmail get connection dropped by imap server. Anyone know what causes this? Thanks in advance. More details. It only happens occasionally and restarting Dovecot fixes it. It's as if I'm running out of something. Without knowing more system and configuration details, it would be tricky to guess. I had the same problem it seems squirrelmail open too much sessions ( one at each user's request ), I solved it bye installing imapproxy between the webmail and the imap server to cache sessions. hope this help
[Dovecot] Dovecot server shared mailboxes only
Hello For internal use I need to setup an imap server that will ONLY runs SHARED mailboxes. Is there anything particuliar to run such server ? I plan to use maildir on this one to get advantage of the "last seen" flag Thanks for any light.
[Dovecot] DIsctionnary flat file format for shared mailboxes ?
Hello I would be grateful if someone could send an example of a dictionnary flat file used by the shared mailboxes feature, it has very few here so a flat file will be enough I think. Thank you
Re: [Dovecot] Update 2.0.12 -> 2.0.13 is broken
On Mon, 01 Aug 2011 08:47:36 -0600 Willie Gillespie wrote: > On 08/01/2011 02:26 AM, Christian Felsing wrote: > > Hello, > > > > today I tried to update 2.0.12 to 2.0.13, but I got those messages, only: > > > > Aug 1 10:20:27 mail dovecot: master: Dovecot v2.0.13 starting up (core > > dumps disabled) > > Aug 1 10:20:33 mail dovecot: imap-login: Login: user=<***@***.**>, > > method=PLAIN, rip=192.168.1.99, lip=192.168.1.1 > > , mpid=5123, TLS > > Aug 1 10:20:33 mail dovecot: imap-postlogin: Error: script-login: Error: > > user ***@***.**: Error reading configurati > > on: net_connect_unix(/opt/dovecot-2.0.13/var/run/dovecot/config) failed: > > Permission denied > > Aug 1 10:20:33 mail dovecot: imap-postlogin: Error: script-login: Fatal: > > Internal error occurred. Refer to server log for more info > > rmation. > > Aug 1 10:20:33 mail dovecot: log: Error: service(imap-postlogin): child > > 5124 returned error 89 (Fatal failure) > > > > What has happened ? > > Error reading configuration: > net_connect_unix(/opt/dovecot-2.0.13/var/run/dovecot/config) failed: > Permission denied > > Looks like permission is denied to this file. I had the same problem. You may want to read the thread "Re: [Dovecot] v2.0.13 released" starting Wed, 11 May 2011 21:03:07 +0200 with Message-Id: --Frank Elsner
Re: [Dovecot] How do I change the date format displayed on webmail?
On Wed, 10 Aug 2011 05:38:06 -0700 (PDT) huntson wrote: > > I am running Dovecot on OS X Lion and the webmail displays the date in a > European style format - day of the month and then month number. How can I > reverse this? This is not dovecot's job, consult your webmail preferences. --Frank Elsner
Re: [Dovecot] v2.1.alpha1 released
On Thu, 01 Sep 2011 12:27:32 +0300 Timo Sirainen wrote: > http://dovecot.org/releases/2.1/alpha/dovecot-2.1.alpha1.tar.gz > http://dovecot.org/releases/2.1/alpha/dovecot-2.1.alpha1.tar.gz.sig [ ... ] > + Statistics tracking via stats service. Exported via doveadm stats. My 2.0.13 configuration works perfect with dovecot-2.1.alpha1. What must I add to my configuration to enable the stats service? --Frank Elsner
Re: [Dovecot] v2.1.alpha1 released
On Thu, 1 Sep 2011 17:05:56 +0300 Timo Sirainen wrote: > On 1.9.2011, at 16.57, Frank Elsner wrote: > > >>+ Statistics tracking via stats service. Exported via doveadm stats. > > > > My 2.0.13 configuration works perfect with dovecot-2.1.alpha1. > > What must I add to my configuration to enable the stats service? > > mail_plugins = $mail_plugins stats > protocol imap { > mail_plugins = $mail_plugins imap_stats > } > plugin { > stats_refresh = 10s > stats_track_cmds = yes > } > > Then you can use doveadm stats top/dump. Ok, works. But when I stop dovecot I get Sep 1 17:08:17 seymour dovecot: master: Warning: Killed with signal 15 (by pid=7896 uid=0 code=kill) Sep 1 17:08:17 seymour dovecot: anvil: Panic: file master-service.c: line 584 (master_service_client_connection_de stroyed): assertion failed: (service->total_available_count > 0) Sep 1 17:08:17 seymour dovecot: auth: Error: read(anvil-auth-penalty) failed: EOF Sep 1 17:08:17 seymour dovecot: auth: Error: net_connect_unix(anvil-auth-penalty) failed: Permission denied --Frank Elsner
Re: [Dovecot] v2.1.alpha1 released
On Sun, 04 Sep 2011 18:34:13 +0300 Timo Sirainen wrote: > On Thu, 2011-09-01 at 21:09 +0200, Frank Elsner wrote: > > But when I stop dovecot I get > > > > Sep 1 17:08:17 seymour dovecot: master: Warning: Killed with signal 15 (by > > pid=7896 uid=0 code=kill) > > Sep 1 17:08:17 seymour dovecot: anvil: Panic: file master-service.c: line > > 584 (master_service_client_connection_de > > stroyed): assertion failed: (service->total_available_count > 0) > > http://hg.dovecot.org/dovecot-2.1/rev/66453d942761 should fix this. Works. --Frank Elsner
[Dovecot] Controling users access ?
Hello We are going to split our mailhub in two :-) one for students and one for the others Does Dovecot 2 provide some mechanisms to filter users's' login ? a flat file would be enough for my usage ( I use pam_ldap nss_ldap with nsswitch ) thanks
[Dovecot] clarifications on shared mailboxes
Hello I need some clarifications on shared mailboxes. Actually we use MBOX format with "real" unix users , but I've been asked to create some shared mailboxes for some users who need to have some for their working groups. What would be the best way to create those shared mailboxes ? Would it be possible to create some "shared space" on the server in maildir format to get advantage of the last seen flag ? If yes some config examples would be a great help. See attach the doveconf -n output ( certificates names have been obscured ;-) ) Thank you. # 2.0.14: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 7.4-RELEASE amd64 auth_verbose_passwords = plain auth_worker_max_count = 100 debug_log_path = /var/log/dovecot/debug.log default_client_limit = 6144 default_process_limit = 1024 disable_plaintext_auth = no info_log_path = /var/log/dovecot/info.log log_path = /var/log/dovecot/dovecot.log mail_location = mbox:%h/:INDEX=/raid/cache/dovecot/index/%u:INBOX=/raid/var/mail/%u:CONTROL=%h/ mail_temp_dir = /var/tmp 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_lock_timeout = 3 mins mbox_write_locks = fcntl mmap_disable = yes passdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { acl = vfile sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } postmaster_address = postmas...@esiee.fr protocols = imap pop3 sendmail_path = /usr/local/sbin/sendmail service auth { client_limit = 7169 } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } process_min_avail = 10 service_count = 1 vsz_limit = 1 G } service imap { process_limit = 2048 vsz_limit = 1 G } service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } } ssl_ca =
Re: [Dovecot] TLS Authentication Confusion
On Thu, 10 Nov 2011 19:28:55 + Dick Middleton wrote: > On 11/10/11 19:17, Carlos Mennens wrote: > > I asked a user today to make sure his incoming and outgoing email was > > using TLS. He told me it wasn't possible because my Dovecot / Postfix > > daemons were only listening on TCP 25 & 143 according to a port scan > > he did. He told me the only way I could enable encrypted secure > > sessions between the client & server is to enable port 993 (IMAPs). > > Yes you are right. Port 993 is for IMAPS (SSH). TLS is normally on the same > port as plain. > > The difference between SSH and TLS is that with SSH the encryption is set up > before any application communication takes place. i.e all application packets > are contained in the encrypted payload. With TLS the application starts > communication and then the application sets up encryption of its payload. :%s/SSH/SSL/g --Frank
[Dovecot] undefined symbol: o_stream_switch_ioloop
Hi, running dovecot-2.0.14 under Fedora 14 with kernel 2.6.35.14-103.fc14.i686.PA I've found a strange error in log which I've nerver observed before when startung dovecot: auth-worker: Error: dlopen(/usr/local/dovecot/lib/dovecot/auth/libauthdb_imap.so) failed: /usr/local/dovecot/lib/dovecot/auth/libauthdb_imap.so: undefined symbol: o_stream_switch_ioloop Dovecot seems to work normal despite the error message. Any enlightment welcome. --Frank Elsner
Re: [Dovecot] undefined symbol: o_stream_switch_ioloop
On Fri, 11 Nov 2011 13:10:57 +0200 Timo Sirainen wrote: > On 11.11.2011, at 13.01, Frank Elsner wrote: > > > running dovecot-2.0.14 under Fedora 14 with kernel > > 2.6.35.14-103.fc14.i686.PA > .. > > auth-worker: Error: > > dlopen(/usr/local/dovecot/lib/dovecot/auth/libauthdb_imap.so) failed: > > /usr/local/dovecot/lib/dovecot/auth/libauthdb_imap.so: undefined symbol: > > o_stream_switch_ioloop > > authdb_imap is from Dovecot v2.1. It doesn't exist in v2.0.14.. Nov 11 15:22:13 seymour dovecot: master: Dovecot v2.0.15 starting up (core dumps disabled) Nov 11 15:22:13 seymour dovecot: auth: Error: dlopen(/usr/local/dovecot/lib/dovecot/auth/libauthdb_imap.so) failed: /usr/local/dovecot/lib/dovecot/auth/libauthdb_imap.so: undefined symbol: o_stream_switch_ioloop This is definitly version 2.0.15 starting. But ... /usr/local/dovecot/lib/dovecot/auth has date Nov 9 10:17 usr/local/dovecot/lib/dovecot/auth/libauthdb_imap.so has date Nov 9 10:17 This was the time I've tested dovecot-2.1. --Frank Elsner
[Dovecot] Re(2): undefined symbol: o_stream_switch_ioloop
On Fri, 11 Nov 2011 15:28:44 +0100 Frank Elsner wrote: [ ... ] > But ... > > /usr/local/dovecot/lib/dovecot/auth has date Nov 9 10:17 > usr/local/dovecot/lib/dovecot/auth/libauthdb_imap.so has date Nov 9 10:17 > > This was the time I've tested dovecot-2.1. After removing all files from Nov 9 10:17 in /usr/local/dovecot/lib/dovecot version 2.0.15 start without the error message :-) --Frank Elsner
Re: [Dovecot] dovecot as an imap "client"
On Wed, 23 Nov 2011 15:19:34 +0100 David LEROUX wrote: > Hi, > I need to get emails from one of my users imap account on a server which > is not managed by us to his local imap mailbox. imapsync comes to my mind. - http://imapsync.lamiral.info/ - http://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapsync --Frank Elsner
[Dovecot] sieve under lmtp using wrong homedir ?
Hi, i have a problem with dovecot-2.0.15. All is working well except lmtp. Sieve scripts are correctly saved under /var/vmail/test.com/test/sieve, but under lmtp sieve will use /var/vmail//testuser/ Uid testuser has mail=t...@test.com configured in ldap. As i could see in the debug logs, there is a difference between the auth "master out" lines, but why ? working if managesieve stores scripts: Jan 11 15:02:42 auth: Debug: master in: REQUEST 3533701121 23001 1 7ec31d3c65cb934785e8eb0f33a182ae Jan 11 15:02:42 auth: Debug: ldap(t...@test.com,10.234.201.4): result: mail(user)=t...@test.com Jan 11 15:02:42 auth: Debug: master out: USER 3533701121 t...@test.com home=/var/vmail/test.com/test uid=5000gid=5000 Jan 11 15:02:42 managesieve(t...@test.com): Debug: Effective uid=5000, gid=5000, home=/var/vmail/test.com/test but under lmtp not: Jan 11 14:39:53 auth: Debug: master in: USER1 testuser service=lmtplip=10.234.201.9rip=10.234.201.4 Jan 11 14:39:53 auth: Debug: auth(testuser,10.234.201.4): username changed testuser -> t...@test.com Jan 11 14:39:53 auth: Debug: ldap(t...@test.com,10.234.201.4): result: mail(user)=t...@test.com Jan 11 14:39:53 auth: Debug: master out: USER 1 t...@test.com home=/var/vmail//testuser uid=5000gid=5000 Jan 11 14:39:53 lmtp(8499): Debug: auth input: t...@test.com home=/var/vmail//testuser uid=5000 gid=5000 Jan 11 14:39:53 lmtp(8499): Debug: changed username to t...@test.com Jan 11 14:39:53 lmtp(8499, t...@test.com): Debug: Effective uid=5000, gid=5000, home=/var/vmail//testuser Jan 11 14:39:53 lmtp(8499, t...@test.com): Debug: Quota root: name=User quota backend=maildir args= Jan 11 14:39:53 lmtp(8499, t...@test.com): Debug: Quota rule: root=User quota mailbox=* bytes=2147483648 messages=0 Jan 11 14:39:53 lmtp(8499, t...@test.com): Debug: Quota warning: bytes=1932735283 (90%) messages=0 reverse=no command=quota-warning 90 t...@test.com Jan 11 14:39:53 lmtp(8499, t...@test.com): Debug: maildir++: root=/var/vmail/test.com/test/Maildir, index=/var/dovecot/indexes/test.com/test, control=, inbox=/var/vmail/test.com/test/Maildir, alt= Jan 11 14:39:53 lmtp(8499, t...@test.com): Debug: trash: No trash setting - plugin disabled Jan 11 14:39:53 lmtp(8499, t...@test.com): Debug: sieve: include: sieve_global_dir is not set; it is currently not possible to include `:global' scripts. Jan 11 14:39:53 lmtp(8499, t...@test.com): Debug: pla8CymRDU8zIQAAFrfQGQ: sieve: user's script path /var/vmail//testuser/.dovecot.sieve doesn't exist (using global script path in stead) Jan 11 14:39:53 lmtp(8499, t...@test.com): Debug: pla8CymRDU8zIQAAFrfQGQ: sieve: user has no valid personal script Jan 11 14:39:53 lmtp(8499, t...@test.com): Debug: pla8CymRDU8zIQAAFrfQGQ: sieve: no scripts to execute: reverting to default delivery. Jan 11 14:39:53 lmtp(8499, t...@test.com): Debug: Namespace : Using permissions from /var/vmail/test.com/test/Maildir: mode=0700 gid=-1 Thanks, for your help. Frank dovecot-front.conf Description: Binary data dovecot-back.conf Description: Binary data
[Dovecot] converting from mbox to maildir ?
Hello We are planning to convert our mailhub ( freebsd 7.4 ) from mbox format to maildir format. I've read the documentation and performed some tests on another machine it is a bit long ... I would like some feedback from guys who did this operation and need some advice on what to convert first ? - first convert INBOX then convert IMAP folders ? - first convert IMAP folders then convert INBOX ? the machine use real users thru openldap ( pam_ldap + nss_ldap ) another problem is disk space. The users's email data takes about 2 Terabytes of data and I cannot duplicate as I only have 3 Tb on the raid array of the server. My idea is to use one of our NFS netapp filer during the convertion to throw the result of the convertion on an NFS mounted directory. Anyone did this before ? If yes I would be greatly interrested by their experience Thank you
[Dovecot] INBOX and IMAP forlders on differents machines ?
Hello In MBOX format would it be possible with dovecot 2 to have two machines one containing the INBOX and the other containing IMAP folders. Of course this need a frontend but would it be possible ? thanks
[Dovecot] Temporary forbid some users login ?
hello is there a way to forbid SOME ( not all ) users's login with dovecot 2 ? I need to move their IMAP folders to another place with more disk space but I don't want to stop dovecot IMAP service for the other users as the moving process will be a bit long ( 1 Tb to move ) thanks
Re: [Dovecot] converting from mbox to maildir ?
Le 02/01/2012 09:39 PM, Timo Sirainen a écrit : On 30.1.2012, at 10.37, Frank Bonnet wrote: We are planning to convert our mailhub ( freebsd 7.4 ) from mbox format to maildir format. I'd do it one user at a time with dsync, but unfortunately: the machine use real users thru openldap ( pam_ldap + nss_ldap ) nss_ldap can't store the mail_location override field needed to distinguish mbox user from maildir user. Maybe you could temporarily switch to some other userdb, which would allow extra fields. Also this requires that you deliver mails using dovecot-lda/lmtp. another problem is disk space. The users's email data takes about 2 Terabytes of data and I cannot duplicate as I only have 3 Tb on the raid array of the server. With one-user-at-a-time conversion this wouldn't be an issue. so is there a massive conversion method ? thanks
Re: [Dovecot] converting from mbox to maildir ?
Le 02/02/2012 10:20 AM, Timo Sirainen a écrit : On Thu, 2012-02-02 at 09:53 +0100, Frank Bonnet wrote: Le 02/01/2012 09:39 PM, Timo Sirainen a écrit : On 30.1.2012, at 10.37, Frank Bonnet wrote: We are planning to convert our mailhub ( freebsd 7.4 ) from mbox format to maildir format. I'd do it one user at a time with dsync, but unfortunately: the machine use real users thru openldap ( pam_ldap + nss_ldap ) nss_ldap can't store the mail_location override field needed to distinguish mbox user from maildir user. Maybe you could temporarily switch to some other userdb, which would allow extra fields. Also this requires that you deliver mails using dovecot-lda/lmtp. another problem is disk space. The users's email data takes about 2 Terabytes of data and I cannot duplicate as I only have 3 Tb on the raid array of the server. With one-user-at-a-time conversion this wouldn't be an issue. so is there a massive conversion method ? dsync works for that too: 1. dsync backup all users somewhere 2. wait close to the time you can shut down dovecot 3. dsync backup all users the second time 4. shutdown dovecot and MTA 5. dsync backup once more (hopefully this will be relatively quick) The idea is that you can do incremental dsync backups. You'll of course need to do this in a way that you don't run out of disk space.. Well I have NFS access to a Netapp filer with a LOT of disk space I need some modifications in my dovecot configuration to use NFS I think ? see below the output of doveconf -n thanks mail# doveconf -n # 2.0.16: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 7.4-RELEASE amd64 auth_verbose_passwords = plain auth_worker_max_count = 100 debug_log_path = /var/log/dovecot/debug.log default_client_limit = 6144 default_process_limit = 1024 default_vsz_limit = 1 G disable_plaintext_auth = no info_log_path = /var/log/dovecot/info.log log_path = /var/log/dovecot/dovecot.log mail_location = mbox:%h/:INDEX=/raid/cache/dovecot/index/%u:INBOX=/raid/var/mail/%u:CONTROL=%h/ mail_temp_dir = /var/tmp 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 ihave mbox_lock_timeout = 3 mins mbox_write_locks = fcntl mmap_disable = yes passdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { acl = vfile sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } postmaster_address = postmas...@esiee.fr protocols = imap pop3 sendmail_path = /usr/local/sbin/sendmail service auth { client_limit = 7169 } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } process_min_avail = 10 service_count = 1 vsz_limit = 3 G } service imap { process_limit = 2048 vsz_limit = 3 G } service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } } ssl_ca = /etc/ssl/xxx.pem ssl_cert =
Re: [Dovecot] converting from mbox to maildir ?
Le 02/02/2012 11:10 AM, Timo Sirainen a écrit : On Thu, 2012-02-02 at 10:33 +0100, Frank Bonnet wrote: dsync works for that too: 1. dsync backup all users somewhere 2. wait close to the time you can shut down dovecot 3. dsync backup all users the second time 4. shutdown dovecot and MTA 5. dsync backup once more (hopefully this will be relatively quick) The idea is that you can do incremental dsync backups. You'll of course need to do this in a way that you don't run out of disk space.. Well I have NFS access to a Netapp filer with a LOT of disk space I need some modifications in my dovecot configuration to use NFS I think ? No need for any modifications. As long as you don't have multiple Dovecots in different servers accessing the same mails via NFS, there's no trouble. mmap_disable = yes Looks like you also have this already enabled. This is recommended (not required) with NFS, but if you're not normally using NFS at all you shouldn't enable this. OK thank you
[Dovecot] 2.0.X -> 2.1 pitfalls?
Hi all, are there any pitfalls known for the migration from 2.0.18 to 2.1? Can I simply stop dovecot, make install and start again? --Frank Elsner
[Dovecot] FreeBSD maintainer ?
Hello Does the FreeBSD Dovecot's port maintainer read this mailing-list ? Thanks
Re: [Dovecot] FreeBSD maintainer ?
hello I'm wondering when you will port 2.1.1 version ? ;-) Thanks Le 27/02/2012 08:07, Attila Nagy a écrit : On 02/26/12 08:22, Frank Bonnet wrote: Does the FreeBSD Dovecot's port maintainer read this mailing-list ? If you read it, you may know the answer (depending on which port do you use).
[Dovecot] What's behind the message ...
... Warning: /media/Backup28a is no longer mounted. If this is intentional, remove it with doveadm mount Hello, the above message appeared when I restarted dovecot. What has dovecot to deal with my USB-Backup-Disk? Dovecot cares about filesystem without any relation to the mail system? Why this? What's bedind? Thanks in advance, Frank Elsner
Re: [Dovecot] What's behind the message ...
On Wed, 29 Feb 2012 19:31:12 +0200 Timo Sirainen wrote: > On 29.2.2012, at 19.27, Frank Elsner wrote: > > > ... Warning: /media/Backup28a is no longer mounted. If this is intentional, > > remove it with doveadm mount > > > > Hello, > >the above message appeared when I restarted dovecot. > > > > What has dovecot to deal with my USB-Backup-Disk? > > Dovecot cares about filesystem without any relation to the mail system? > > No, but Dovecot doesn't really know what the mail filesystems are. You can > add: > > doveadm mount add '/media/*' ignore > > Perhaps this should be a default. > > > Why this? What's bedind? > > http://markmail.org/message/ad6f4fg3js6ljykg Thanks for the pointer! --Frank Elsner
[Dovecot] dovecot 2.1.1 + pigeonhole + avelsieve
Hello all, I've squirrelmail-webmail-1.4.22, dovecot 2.1.1, dovecot-2.1-pigeonhole-0.3.0 installed and working. But I've problems to get the avelsieve plugin for squirrelmail working with dovecot. The "Message Filters" show up in "Options" of squirrelmail, but "Could not log on to timsieved daemon on your IMAP server ." dovecot log shows: Mar 6 00:00:47 seymour dovecot: managesieve-login: Disconnected: Too many invalid commands. (no auth attempts in 0 secs): 192.168.28.53, secured Where to look for configuration error(s)? | root@seymour: /usr/local/dovecot/src<156> dovecot -n | # 2.1.1: /usr/local/dovecot/etc/dovecot/dovecot.conf | # OS: Linux 2.6.35.14-106.fc14.i686.PAE i686 Fedora release 14 (Laughlin) ext3 | default_vsz_limit = 512 M | disable_plaintext_auth = no | first_valid_uid = 200 | last_valid_uid = 65534 | listen = * | lmtp_save_to_detail_mailbox = yes | login_greeting = c64.shuttle.de - IMAPs Service (dovecot) ready. | login_log_format_elements = %u %r %c | mail_location = maildir:/var/spool/mail/%u | mail_log_prefix = "%Us(%u,%r): " | mail_plugin_dir = /usr/dovecot/lib/dovecot/ | mail_plugins = " notify quota" | 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 ihave | passdb { | args = dovecot | driver = pam | } | plugin { | mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename flag_change append | mail_log_fields = uid box from subject msgid size flags | mail_log_group_events = yes | quota = maildir:User quota | quota_rule = *:storage=2G | quota_rule2 = Trash:storage=+100M | sieve = ~/.sieve | sieve_dir = ~/sieve | } | postmaster_address = postmas...@moltke28.b.shuttle.de | protocols = imap sieve | service anvil { | client_limit = 1027 | } | service auth { | unix_listener auth-client { | group = exim | mode = 0660 | user = exim | } | } | service imap-login { | inet_listener imap { | port = 143 | } | inet_listener imaps { | port = 993 | ssl = yes | } | process_limit = 512 | process_min_avail = 10 | } | service imap-postlogin { | executable = script-login /usr/dovecot/bin/imap-post-login | } | service imap { | executable = imap imap-postlogin | } | service lmtp { | inet_listener lmtp { | address = 0.0.0.0 | port = 24 | } | } | service managesieve-login { | inet_listener sieve { | port = 4190 | } | } | service pop3-login { | inet_listener pop3 { | port = 110 | } | inet_listener pop3s { | port = 995 | ssl = yes | } | } | service pop3 { | process_limit = 1024 | } | ssl_cert =
[Dovecot] French characters from 2.0.x to 2.1.3
Hello Maybe it's a coincidence but it "seems" since I upgrade from 2.0.18 to 2.1.3 that some French characters ( a with accents by example ) are not well displayed anymore using thunderbird and are replaced by a "?" character Thanks for any info
[Dovecot] Configuration advices for a 50000 mailboxes server(s)
Hello I need some feedbacks advices of experienced admins I will have to setup in few monthes an email system for approx 50K "intensives" users. The only mandatory thing will be I must use HP proliant servers The operating system will be FreeBSD or Linux Thank you for any advices
Re: [Dovecot] Configuration advices for a 50000 mailboxes server(s)
hello Thanks for your answer , MY problem will be IMAPS connections I dunno how much I will have but it would be possible that we'll have 4000/6000 imaps concurent connections during working hours . POP3 users will be very few Le 17/04/2012 13:54, Mauricio López Riffo a écrit : Frank, Here we have approx. 200K users with 4000 concurrent connections (90% POP3 users) All servers in virtual environment Vmware, supermicro servers and Netapp Metrocluster storage solutions (nfs storage with 10G ethernet network) POP3 sessions take betwen 40 and 300 milisecons at connect, auth and list. All accounts lives in LDAP, CentOS 5 and exim like a mta relay. Regards El 17-04-2012 4:54, Frank Bonnet escribió: Hello I need some feedbacks advices of experienced admins I will have to setup in few monthes an email system for approx 50K "intensives" users. The only mandatory thing will be I must use HP proliant servers The operating system will be FreeBSD or Linux Thank you for any advices
Re: [Dovecot] French characters from 2.0.x to 2.1.3
On 04/23/2012 01:18 PM, Timo Sirainen wrote: On 13.4.2012, at 18.01, Frank Bonnet wrote: Maybe it's a coincidence but it "seems" since I upgrade from 2.0.18 to 2.1.3 that some French characters ( a with accents by example ) are not well displayed anymore using thunderbird and are replaced by a "?" character Dovecot doesn't send decoded characters to IMAP clients. Of course there might be something else going on, but I can't really guess what it could be. OK thanks , maybe an update of thunderbird ?
[Dovecot] mixed MBOX and Maildir format ?
Hello would it be possible to have mixed formats in Dovecot 2.1.x userland ? I mean MBOX format for INBOXes Maildir format for IMAP folders ( to let users create subfolders ) Thank you
[Dovecot] Exim / Dovecot and AUTH LOGIN
Hi to both adressed mailing lists, I followed the instructions in http://wiki2.dovecot.org/HowTo/EximAndDovecotSASL exim.conf: | plain: | driver = dovecot | public_name = PLAIN | server_socket = /var/run/dovecot/auth-client | server_set_id = $auth1 | | login: | driver = dovecot | public_name = LOGIN | server_socket = /var/run/dovecot/auth-client | server_set_id = $auth1 10-master.conf for dovecot: | service auth { | # auth_socket_path points to this userdb socket by default. It's typically | # used by dovecot-lda, doveadm, possibly imap process, etc. Its default | # permissions make it readable only by root, but you may need to relax these | # permissions. Users that have access to this socket are able to get a list | # of all usernames and get results of everyone's userdb lookups. | # unix_listener auth-userdb { | #mode = 0600 | #user = | #group = | # } | | # Exim SMTP AUTH | unix_listener auth-client { | mode = 0660 | user = exim | group = exim | } PLAIN Authentication works perfect, LOGIN gives 2012-05-08 15:08:43 login authenticator failed for xx.tu-berlin.de [130.149.X.YY]: 435 Unable to authenticate at present: authentication socket protocol error Where is the problem? Kind regards, Frank Elsner
[Dovecot] [+]: Exim / Dovecot and AUTH LOGIN
On Tue, 8 May 2012 15:22:11 +0200 Frank Elsner wrote: > > Hi to both adressed mailing lists, > > I followed the instructions in > http://wiki2.dovecot.org/HowTo/EximAndDovecotSASL Forgot to mention the versions :-( exim 4.77 dovecot 2.1.6 self compiled under Fedora 14. --Frank Elsner
Re: [Dovecot] [exim] Exim / Dovecot and AUTH LOGIN
On Tue, 08 May 2012 19:47:39 +0200 Jonas Eckerman wrote: > On 2012-05-08 15:22, Frank Elsner wrote: > > [About exim authenticating PLAIN and LOGIN against dovecot auth socket] > > > PLAIN Authentication works perfect, LOGIN gives > > > 2012-05-08 15:08:43 login authenticator failed for xx.tu-berlin.de > > [130.149.X.YY]: 435 Unable to authenticate at present: authentication > > socket protocol error > > This is just a guess since I'm not too good at dovecot, but could it be > that you need to set at least "auth_mechanisms = plain login" your in > dovecot config? Yeah, that was it! You made my day! --Frank Elsner
Re: [Dovecot] mixed MBOX and Maildir format ?
On 05/09/2012 02:20 AM, Timo Sirainen wrote: On Tue, 2012-05-08 at 09:16 +0200, Frank Bonnet wrote: Hello would it be possible to have mixed formats in Dovecot 2.1.x userland ? I mean MBOX format for INBOXes Maildir format for IMAP folders ( to let users create subfolders ) You could, although I think it's a bad idea (more complex, mbox breaks easlier, etc.) http://wiki2.dovecot.org/Namespaces#Examples Hello Yes I know it is far from the best solution , but this will be temporary my final goal is to convert all users's email space to maildir but I cannot do it all at once because of time it will take. I cannot stop my production server 24 hours to convert all mailboxes from MBOX to Maildir or I would have to face at a users's riot !!!
Re: [Dovecot] mixed MBOX and Maildir format ?
On 05/09/2012 09:24 AM, Frank Bonnet wrote: On 05/09/2012 02:20 AM, Timo Sirainen wrote: On Tue, 2012-05-08 at 09:16 +0200, Frank Bonnet wrote: Hello would it be possible to have mixed formats in Dovecot 2.1.x userland ? I mean MBOX format for INBOXes Maildir format for IMAP folders ( to let users create subfolders ) You could, although I think it's a bad idea (more complex, mbox breaks easlier, etc.) http://wiki2.dovecot.org/Namespaces#Examples Hello Yes I know it is far from the best solution , but this will be temporary my final goal is to convert all users's email space to maildir but I cannot do it all at once because of time it will take. I cannot stop my production server 24 hours to convert all mailboxes from MBOX to Maildir or I would have to face at a users's riot !!! BTW would it be possible to run 2 Dovecot instances on the same server ? one running on std ports numbers and one running on customs ports numbers thank you
Re: [Dovecot] mixed MBOX and Maildir format ?
On 05/09/2012 02:20 AM, Timo Sirainen wrote: On Tue, 2012-05-08 at 09:16 +0200, Frank Bonnet wrote: Hello would it be possible to have mixed formats in Dovecot 2.1.x userland ? I mean MBOX format for INBOXes Maildir format for IMAP folders ( to let users create subfolders ) You could, although I think it's a bad idea (more complex, mbox breaks easlier, etc.) http://wiki2.dovecot.org/Namespaces#Examples And ... ( at last I promise ) would it be possible to convert some IMAP folders during the transfert WITHOUT stopping the production ? I mean , actually all mailboxes are in MBOX format ( INBOX and IMAP folders ) what I would like to do is : When a user is not connected I transfert his/her IMAP folders from the server's local disk to a NFS mounted bigger and expendable partition ( NetAPP filer's volume ) During this transfert I also would like to convert the IMAP folders format from MBOX to Maildir Is it possible ? thank you
[Dovecot] server with only shared mailboxes ?
hello I would like to setup a separate server with only shared mailboxes for internal use links to doc welcome (dovecot 2 ) thank you Envoyé de mon iPhone.
[Dovecot] How to make Dovecot verbous
Hello I am struggling with Dovecot 2 (coming from Dovecot 1.0.10) with mysql Authentification for Postfix. I get errors when using it: dovecot: auth: Fatal: Unknown database driver 'mysql' dovecot: master: Error: service(auth): command startup failed, throttling But a first thing would be to log the real errors, if there are any, so I set in /etc/dovecot/conf.d/10-logging.conf auth_verbose, auth_verbose_passwords, auth_debug, auth_debug_passwords, mail_debug, verbose_ssl all to yes and I set: debug_log_path = /var/log/dovecot-debug.log but there is no logfile after restarting dovecot. How can I enable a (verbous) own Logfile in Dovecot? frank
Re: [Dovecot] How to make Dovecot verbous
I found the logfile problem: it was an error in 10-logging.conf auth_verbose_passwords = yes this gives an error and all the logging settings are not working. I found it with: doveadm log find Now dovecot logs into the given logfiles. but really not much, still the same information only. I read there: May 16 15:24:16 auth: Fatal: Unknown database driver 'mysql' May 16 15:24:16 master: Error: service(auth): command startup failed, throttling But I have the mysql driver, when checking: root@myserver:# dovecot --build-options | tail -n4 Mail storages: shared mdbox sdbox maildir mbox cydir raw --> SQL driver plugins: --> mysql postgresql sqlite Passdb: checkpassword ldap pam passwd passwd-file shadow sql Userdb: checkpassword ldap(plugin) nss passwd prefetch passwd-file sql Anyway I didn't compile it myself, I installed it with aptitude on ubuntu 12.04. Must be with mysql. > -Ursprüngliche Nachricht- > Von: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] Im > Auftrag von Ken > Stevenson > Gesendet: Mittwoch, 16. Mai 2012 15:32 > An: dovecot@dovecot.org > Betreff: Re: [Dovecot] How to make Dovecot verbous > > With regard to your original problem, it sounds like you don't have > mysql support compiled into Dovecot (--with-mysql option). Not sure what > the logging problem is. I've debugged authentication using just > auth_debug_passwords=yes, but I didn't enable separate log files so the > messages were in maillog. > > On 2012-05-16 09:20, Frank Walter wrote: > > Hello > > > > I am struggling with Dovecot 2 (coming from Dovecot 1.0.10) with > > mysql Authentification for Postfix. > > I get errors when using it: > > > > dovecot: auth: Fatal: Unknown database driver 'mysql' > > dovecot: master: Error: service(auth): command startup failed, > > throttling > > > > But a first thing would be to log the real errors, if there are any, > > so I set in > > > > /etc/dovecot/conf.d/10-logging.conf > > > > auth_verbose, auth_verbose_passwords, auth_debug, > > auth_debug_passwords, mail_debug, verbose_ssl > > > > all to yes and I set: > > > > debug_log_path = /var/log/dovecot-debug.log > > > > but there is no logfile after restarting dovecot. > > > > How can I enable a (verbous) own Logfile in Dovecot? > > > > frank
Re: [Dovecot] How to make Dovecot verbous
Thank you very much, this was not installed!!! dovecot-mysql Oh my god :) > -Ursprüngliche Nachricht- > Von: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] Im > Auftrag von Timo > Sirainen > Gesendet: Mittwoch, 16. Mai 2012 15:45 > An: Frank Walter > Cc: Dovecot Mailing List > Betreff: Re: [Dovecot] How to make Dovecot verbous > > On 16.5.2012, at 16.40, Frank Walter wrote: > > > I found the logfile problem: > > > > it was an error in 10-logging.conf > > > > auth_verbose_passwords = yes > > > > this gives an error and all the logging settings are not working. > > Auth process doesn't log anything except the one error at startup, because it > dies > immediately after that. > > > May 16 15:24:16 auth: Fatal: Unknown database driver 'mysql' > .. > > Anyway I didn't compile it myself, I installed it with aptitude on ubuntu > > 12.04. > > Must be with mysql. > > apt-get install dovecot-mysql
[Dovecot] Public mailboxes
hello I'm trying to setup a server with public mailboxes only but I cannot succeed. Anyone could help me a bit ? thank you here is the doveconf -n output # 2.1.6: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 7.4-RELEASE-p3 amd64 auth_debug = yes debug_log_path = /var/log/dovecot/debug.log disable_plaintext_auth = no info_log_path = /var/log/dovecot/info.log log_path = /var/log/dovecot/dovecot.log mail_debug = 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 ihave namespace { list = children location = maildir:/var/mail/public prefix = public. separator = / subscriptions = no type = public } namespace inbox { location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { acl = vfile sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } ssl_cert =
Re: [Dovecot] Public mailboxes
Le 19/05/2012 20:44, Timo Sirainen a écrit : On Fri, 2012-05-18 at 14:31 +0200, Frank Bonnet wrote: I'm trying to setup a server with public mailboxes only but I cannot succeed. Do you still have specific users? Do you want the users to have subscriptions? Do you need ACLs? yes I need specific users using ACL and yes I would like users have subsciptions If it's simply a fully public server, you wouldn't really need to set up namespaces at all. the server is not really public , what I need is to have some users's groups shared mailboxes to work together in the same mailbox. I also need acls because some users will have read only access The Maildir format is a must because I also need the last seen feature Thak you for your help
Re: [Dovecot] Public mailboxes
Le 19/05/2012 22:49, Timo Sirainen a écrit : On 19.5.2012, at 23.40, Frank Bonnet wrote: Le 19/05/2012 20:44, Timo Sirainen a écrit : On Fri, 2012-05-18 at 14:31 +0200, Frank Bonnet wrote: I'm trying to setup a server with public mailboxes only but I cannot succeed. Do you still have specific users? Do you want the users to have subscriptions? Do you need ACLs? yes I need specific users using ACL and yes I would like users have subsciptions OK, so then you need to have a per-user mail_location for the subscriptions. Something like: namespace { list = children location = maildir:/var/mail/public prefix = public/ separator = / subscriptions = no type = public } namespace inbox { location = maildir:/var/lib/dovecot/empty:CONTROL=/var/mail/user/%u prefix = / inbox = yes } With the "empty" directory being non-writable, the users can't create any private mailboxes, but with the writable control directory they can store subscriptions there. OK I see, Thanks a LOT Timo !
Re: [Dovecot] Public mailboxes
Le 19/05/2012 22:49, Timo Sirainen a écrit : On 19.5.2012, at 23.40, Frank Bonnet wrote: Le 19/05/2012 20:44, Timo Sirainen a écrit : On Fri, 2012-05-18 at 14:31 +0200, Frank Bonnet wrote: I'm trying to setup a server with public mailboxes only but I cannot succeed. Do you still have specific users? Do you want the users to have subscriptions? Do you need ACLs? yes I need specific users using ACL and yes I would like users have subsciptions OK, so then you need to have a per-user mail_location for the subscriptions. Something like: namespace { list = children location = maildir:/var/mail/public prefix = public/ separator = / subscriptions = no type = public } namespace inbox { location = maildir:/var/lib/dovecot/empty:CONTROL=/var/mail/user/%u prefix = / inbox = yes } With the "empty" directory being non-writable, the users can't create any private mailboxes, but with the writable control directory they can store subscriptions there. So in that case Thunderbird will "see" the subscribables folders that are living in /var/mail/public ? Thank you
[Dovecot] Dovecot 2 fails after correct login
Hello I installed dovecot 2.0.9 (and dovecot-mysql!) on my Ubuntu 12.04 LTS root-server to work together with Postfix 2.9.1-4 After some struggle, I got Postfix's auth working, using dovecot for smtp-authentification with mysql. But dovecot himself is not working properly. When I connect, after giving plaintext password I read the error in the client (I connect for debug reasons with a dos-box on windows): telnet example.org 110 +OK Dovecot ready. USER m...@example.org +OK PASS myplainpassword -ERR [IN-USE] Internal error occurred. Refer to server log for more information. If I do: ... PASS thisisthewrongpassword I get: -ERR Authentication failed. And this is the debug-log (I changed IP and names, server to 1.2.3.4 me to 5.6.7.8 server-name to example.org, my email to m...@example.org): May 20 12:14:54 auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth May 20 12:14:54 auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so May 20 12:14:54 auth: Debug: auth client connected (pid=25337) May 20 12:14:57 auth: Debug: client in: AUTH1 PLAIN service=pop3 lip=1.2.3.4 rip=5.6.7.8 lport=110 rport=1731 resp=AGZyYW5jQGV3Ni5vcmcAMzE0MTU= May 20 12:14:57 auth-worker: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth May 20 12:14:57 auth-worker: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so May 20 12:14:57 auth-worker: Debug: pam(m...@example.org,5.6.7.8): lookup service=dovecot May 20 12:14:57 auth-worker: Debug: pam(m...@example.org,5.6.7.8): #1/1 style=1 msg=Password: May 20 12:15:00 auth-worker: Debug: sql(m...@example.org,5.6.7.8): query: SELECT email as user, password FROM view_users WHERE email='m...@example.org'; May 20 12:15:00 auth: Debug: client out: OK 1 user=m...@example.org May 20 12:15:00 auth: Debug: master in: REQUEST 4018667521 25337 1 ccd274c0359454ad3beae53ccb1cc03b May 20 12:15:00 auth: Debug: passwd(m...@example.org,5.6.7.8): lookup May 20 12:15:00 auth: Debug: prefetch(m...@example.org,5.6.7.8): passdb didn't return userdb entries, trying the next userdb May 20 12:15:00 auth-worker: Debug: sql(m...@example.org,5.6.7.8): SELECT home, uid, gid FROM users WHERE username = 'me' AND domain = 'example.org' May 20 12:15:00 auth: Debug: master out: FAIL 4018667521 And with wrong password: ... May 20 12:42:51 auth-worker: Debug: sql(m...@example.org,5.6.7.8): query: SELECT email as user, password FROM view_users WHERE email='m...@example.org'; May 20 12:42:51 auth-worker: Debug: sql(m...@example.org,5.6.7.8): PLAIN-MD5(thisisthewrongpassword) != '7d7ba8201b765ffd4b212268b8c34d1c' May 20 12:42:53 auth: Debug: client out: FAIL 1 user=m...@example.org I don't understand the error messages (yet), could somebody please give me a hint? My dovecot.conf: passdb { driver = sql args = /etc/dovecot/dovecot-sql.conf } userdb { driver = prefetch } userdb { driver = sql args = /etc/dovecot/dovecot-sql.conf } dovecot-sql.conf: driver = mysql connect = host=127.0.0.1 dbname=maildb user=mailuser password=mailpassword default_pass_scheme = PLAIN-MD5 password_query = SELECT email as user, password FROM view_users WHERE email='%u'; 10-auth.conf: disable_plaintext_auth = no auth_mechanisms = plain !include auth-system.conf.ext and in my 10-master.conf I have: service imap-login { inet_listener imap { } inet_listener imaps { } } service pop3-login { inet_listener pop3 { } inet_listener pop3s { } } service lmtp { unix_listener lmtp { } } service imap { } service pop3 { } service auth { unix_listener auth-userdb { mode = 0660 } unix_listener /var/spool/postfix/private/auth { mode = 0666 user = postfix group = postfix } } service auth-worker { } service dict { unix_listener dict { } } I enabled logging in 10-logging.conf, enabled ssl in 10-ssl.conf and put the path in 10-mail.conf. Beside this I didn't change the defaults. Thank you for help! frank
Re: [Dovecot] Dovecot 2 fails after correct login
Tim! Missing the "crucial part" of your mail made me scrutinize more exactly in the configuration parts of my dovecot installation. I discovered now, that in my previous (working) 1.0.10 Dovecot config. I have set the userdb to static: userdb static { args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes } So I will try with this again. Since yet, very thank you for your hint and enlightenment :) Cheers > -Ursprüngliche Nachricht- > Von: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] Im > Auftrag von Tim > Smith > Gesendet: Sonntag, 20. Mai 2012 14:49 > An: dovecot@dovecot.org > Betreff: Re: [Dovecot] Dovecot 2 fails after correct login > > Sorry - seem to have missed the crucial part of my email!! I meant to say: > > Do u not need a separate user_query in your dovecot-sql.conf to return > the userdb data? > > Sorry! >
Re: [Dovecot] Dovecot 2 fails after correct login
Surely this was still a bit mistakely: userdb static { args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes } but it should be: userdb static { driver = static args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes } Dovecot talks, if I start him: root@myserver:~# dovecot doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: userdb is missing driver :) And now, after setting the user and group of the whole dir (which was just copied without the permissions owner and groups): /home/vmail to vmail: chown -R vmail:vmail /home/vmail THE GOOD DOVECOT IS WORKING! Tank again, Tim!!! Kinds, frank > -Ursprüngliche Nachricht- > Von: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] Im > Auftrag von Frank > Walter > Gesendet: Sonntag, 20. Mai 2012 15:32 > An: 'Tim Smith'; dovecot@dovecot.org > Betreff: Re: [Dovecot] Dovecot 2 fails after correct login > > Tim! > Missing the "crucial part" of your mail made me scrutinize more exactly in the > configuration parts of my dovecot installation. > I discovered now, that in my previous (working) 1.0.10 Dovecot config. I have > set the > userdb to static: > > userdb static { > args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes > } > > So I will try with this again. > Since yet, very thank you for your hint and enlightenment :) > > Cheers > > > > -Ursprüngliche Nachricht- > > Von: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] Im > > Auftrag von Tim > > Smith > > Gesendet: Sonntag, 20. Mai 2012 14:49 > > An: dovecot@dovecot.org > > Betreff: Re: [Dovecot] Dovecot 2 fails after correct login > > > > Sorry - seem to have missed the crucial part of my email!! I meant to say: > > > > Do u not need a separate user_query in your dovecot-sql.conf to return > > the userdb data? > > > > Sorry! > >
Re: [Dovecot] Public mailboxes
On 05/20/2012 09:57 AM, Frank Bonnet wrote: Le 19/05/2012 22:49, Timo Sirainen a écrit : On 19.5.2012, at 23.40, Frank Bonnet wrote: Le 19/05/2012 20:44, Timo Sirainen a écrit : On Fri, 2012-05-18 at 14:31 +0200, Frank Bonnet wrote: I'm trying to setup a server with public mailboxes only but I cannot succeed. Do you still have specific users? Do you want the users to have subscriptions? Do you need ACLs? yes I need specific users using ACL and yes I would like users have subsciptions OK, so then you need to have a per-user mail_location for the subscriptions. Something like: namespace { list = children location = maildir:/var/mail/public prefix = public/ separator = / subscriptions = no type = public } namespace inbox { location = maildir:/var/lib/dovecot/empty:CONTROL=/var/mail/user/%u prefix = / inbox = yes } With the "empty" directory being non-writable, the users can't create any private mailboxes, but with the writable control directory they can store subscriptions there. I've configured as the followin , but I am unable to list folders inside Thunderbird with the "Subscribe" menu # 2.1.6: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 7.4-RELEASE-p3 amd64 auth_debug = yes debug_log_path = /var/log/dovecot/debug.log disable_plaintext_auth = no info_log_path = /var/log/dovecot/info.log log_path = /var/log/dovecot/dovecot.log mail_debug = yes mail_full_filesystem_access = 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 ihave namespace { list = children location = maildir:/var/mail/public prefix = public/ separator = / subscriptions = no type = public } namespace inbox { inbox = yes location = maildir:/var/lib/dovecot/empty:CONTROL=/var/lib/dovecot/indexes/%u mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = separator = / type = private } passdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { acl = vfile sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } userdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext driver = ldap } protocol imap { mail_plugins = " imap_acl acl" }
Re: [Dovecot] Sieve regex never matches
Hi Timo, >> Both scripts compile fine, but their regex never match. Has anyone >> an idea why? I'm using Dovecot 1.0.0 on Debian Etch stable. > > So I guess you also use Debian-compiled Sieve plugin? It's possible that > it doesn't have regex support compiled in. I'm not sure if it gives any > errors or if it just silently ignores it.. No, no errors, so regex support was compiled in. The regex just never matched/always returned false. I've installed version 1.0.5 from the Debian testing branch yesterday evening, and now it works, so the problem has already been fixed. Frank
[Dovecot] SYN flooding / pipe() failed: Too many open files
Hello *, I've the following problem with dovecot 1.0.7: /var/log/messages shows | Dec 13 13:48:27 mailbox kernel: possible SYN flooding on port 143. Sending cookies. and /var/log/maillog shows (Please note: nearly the same time): | Dec 13 13:48:28 mailbox dovecot: pipe() failed: Too many open files This leads to an unresponsive mail service and requires a dovecot restart. What can be done to prevent this? BTW, this is my dovecot -n: # 1.0.7: /usr/local/dovecot/etc/dovecot.conf base_dir: /var/run/dovecot/ protocols: imap imaps pop3 pop3s ssl_cert_file: /usr/local/dovecot/etc/mailbox.pem ssl_key_file: /usr/local/dovecot/etc/mailbox.key disable_plaintext_auth: no login_dir: /var/run/dovecot//login login_executable(default): /usr/local/dovecot/libexec/dovecot/imap-login login_executable(imap): /usr/local/dovecot/libexec/dovecot/imap-login login_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3-login login_greeting: TU-Berlin.DE POP3-/IMAP Service ready login_log_format_elements: %u %r %c login_processes_count: 24 login_max_processes_count: 512 verbose_proctitle: yes mail_location: maildir:/var/Mail/Boxes/%1u/%u mailbox_idle_check_interval: 15 maildir_copy_with_hardlinks: yes maildir_copy_preserve_filename: yes mail_executable(default): /usr/local/dovecot/libexec/dovecot/imap mail_executable(imap): /usr/local/dovecot/libexec/dovecot/imap mail_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3 mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugin_dir(default): /usr/local/dovecot/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/dovecot/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/dovecot/lib/dovecot/pop3 mail_log_prefix: %Ls(%u): imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(pop3): outlook-idle pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xu%08Xv pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login anonymous count: 32 passdb: driver: ldap args: /usr/local/dovecot/etc/dovecot-ldap.conf userdb: driver: static args: uid=777 gid=12 plugin: quota: maildir:ignore=Trash Kind regards ______ Frank Elsner /c/o Technische Universitaet Berlin | / tubIT [BD], Sekr. E-N 50 | | Einsteinufer 17 | | Phone: +49 30 314 23897 D-10587 Berlin | | eMail: [EMAIL PROTECTED] Germany__| |_| in dubio pro exim
Re: [Dovecot] 1.1b13 build in FreeBSD fails using 'make'; 'gmake' apparently required
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote on 31 Dec 2007 14:44: > There are many good reasons for not using the port. > > Dovecot is constantly releasing new betas that should be tested and it > might not be feasible to wait for them to go into ports. Yes, that's true. But I had never problems to test new versions with a modified port. I copied the port files to a new directory and changed the Makefile, e.g.: WRKDIR=${.CURDIR}/work DISTDIR= ${.CURDIR} PACKAGES= /var/ports/packages PORTNAME= dovecot DISTVERSION=1.1.beta8 CATEGORIES= mail ipv6 MASTER_SITES= http://www.dovecot.org/releases/1.1/beta/ You can test snapshots with: #DISTVERSION= 20071023 #MASTER_SITES= http://www.dovecot.org/nightly/ #WRKSRC=${WRKDIR}/dovecot-20070522 #CONFIGURE_ARGS+= --with-storages=mbox,maildir This works on FreeBSD-7 in a jail. Regards, Frank -- Frank Behrens, Osterwieck, Germany PGP-key 0x5B7C47ED on public servers available.
Re: [Dovecot] Delay on failed pw attempts
> Is there a way, or can a way be added, to add an "auth_failed_delay=10s" > style option that would put in an artificial delay after a failed > password attempt? > As it stands now, Dovecot seems highly vulnerable to widescale > brute-force password dictionary scans. > Even if it's not configurable, can a delay be hardcoded to something > like, say, 10 or 15 seconds? > -- > Dean Brooks > [EMAIL PROTECTED] I recently installed an application called Fail2Ban (http://www.fail2ban.org), which scans log files and filters out failed login attempts. If a configurable number of failed attempts from the same IP is found, the IP is blocked out via iptables or hosts.deny for some time (default 10 minutes). Works pretty well for SSH, though I'm still waiting for the first attempt on my IMAP or SMTP ports ;-) So instead of letting a brute force attack continue at a slower pace, Fail2Ban locks out the attacking system for some time, while a legitimate user can mistype his password at least once or twice without penalty. If he continues to mistype his password, he probably deserves to wait ;-) If anyone want's to try it, a working fail2ban-regex for dovecot 1.05 and mysql is: failregex = Info: auth-worker\(default\): sql\(.*,\): Password mismatch Info: auth-worker\(default\): sql\(.*,\): unknown user Frank
Re: [Dovecot] [debian] Etch Packages Available for v1.0.10
Hello, > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > Compiled only for i386 with source package available. > deb http://debian.delink.net/ etch-delink main > deb-src http://debian.delink.net/ etch-delink main > Cheers, Has anyone already made debian packages for one of the 1.1.x releases of Dovecot? Frank
[Dovecot] Problem with passwords surrounded by curly braces
Hello, one of my users set his password to something surrounded by curly braces, and promptly all access to his mailbox was refused. After looking through the logs I found an entry "Unknown password scheme ", where "" is the user's password, but without the curly braces. I then browsed through the documentation and there was explained that it is possible to prefix the password with the password scheme in curly braces, like "{PLAIN}" where is the password itself. Manually altering the users password in the database to "{PLAIN}" (where "" is the user's password WITH curly braces) fixed this problem for me at this time, but the time a user chooses such a strange password I would have to edit the table again. So in my opinion the {SCHEME}-prefix is not a useful thing. Why would anyone need it, anyway? Shouldn't all passwords have the same scheme which is set in the dovecot.conf file once? If the feature is indeed used: with a database lookup it should be replaced by an optional database field or, if that's not possible, it should be possible to disable this feature from the config file. Frank
[Dovecot] I/O leak: 0x804d580
Hello *, I'm running dovecot 1.0.10 on a Fedora 6 with this configuration # 1.0.10: /usr/local/dovecot/etc/dovecot.conf base_dir: /var/run/dovecot/ protocols: imap imaps pop3 pop3s ssl_cert_file: /usr/local/dovecot/etc/mailbox.pem ssl_key_file: /usr/local/dovecot/etc/mailbox.key disable_plaintext_auth: no login_dir: /var/run/dovecot//login login_executable(default): /usr/local/dovecot/libexec/dovecot/imap-login login_executable(imap): /usr/local/dovecot/libexec/dovecot/imap-login login_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3-login login_greeting: TU-Berlin.DE POP3-/IMAP Service ready login_log_format_elements: %u %r %c login_processes_count: 16 login_max_processes_count: 256 verbose_proctitle: yes mail_location: maildir:/var/Mail/Boxes/%1u/%u mailbox_idle_check_interval: 15 maildir_copy_with_hardlinks: yes maildir_copy_preserve_filename: yes mail_executable(default): /usr/local/dovecot/libexec/dovecot/imap mail_executable(imap): /usr/local/dovecot/libexec/dovecot/imap mail_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3 mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugin_dir(default): /usr/local/dovecot/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/dovecot/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/dovecot/lib/dovecot/pop3 mail_log_prefix: %Ls(%u): imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh tb-ext ra-mailbox-sep imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh tb-extra- mailbox-sep imap_client_workarounds(pop3): outlook-idle pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xu%08Xv pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login anonymous count: 16 passdb: driver: ldap args: /usr/local/dovecot/etc/dovecot-ldap.conf userdb: driver: static args: uid=777 gid=12 plugin: quota: maildir:ignore=Trash This workes fine but today these messages came up Jan 21 14:54:27 mailbox dovecot: imap(mich0731): Connection closed Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1455) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1255) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1300) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1295) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1292) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1290) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1218) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1214) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1212) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1210) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1208) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1206) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1198) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1196) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1194) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1168) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1166) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1146) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (970) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (940) Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (926) What has happened? Regards______ Frank Elsner /c/o Technische Universitaet Berlin | / tubIT [BD], Sekr. E-N 50 | | Einsteinufer 17 | | Phone: +49 30 314 23897 D-10587 Berlin | | eMail: [EMAIL PROTECTED] Germany__| |_| in dubio pro exim
Re: [Dovecot] I/O leak: 0x804d580
On Thu, 31 Jan 2008 17:24:47 +0200 Timo Sirainen wrote: > On Mon, 2008-01-21 at 15:15 +0100, Frank Elsner wrote: > > Jan 21 14:54:27 mailbox dovecot: imap(mich0731): Connection closed > > Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1455) > > Jan 21 14:54:27 mailbox dovecot: I/O leak: 0x804d580 (1255) > .. > > These I/O leaks happen only when Dovecot is shutting down (it probably > logged also "killed by signal"?). So although they shouldn't happen, > here they most likely just mean that deinitialization wasn't done > properly. I don't think it's worth the trouble to try to figure out why > they happened. Thanks. You're right, especially as it didn't happen again. --Frank Elsner
[Dovecot] Dovecot pgsqlauthentication database reconnection/failover problem
Hi, Our mail system uses dovecot-1.0-1.2.rc15.el5 in Centos-5.1 as our imap server. It connects to a pgsql database in another server as authentication backend. It works fine except occasionally fails to reconnect to the database after temporary network block, and dovecot has to be restarted to work again in such case. Since I can't find any specific setting in dovecot.conf to handle this reconnection problem, I opt to build a failover pgsql backend. Google led me to http://www.dovecot.org/list/dovecot/2008-January/027899.html. I followed the thread to modify my dovecot-sql.conf containing "connect = host=pgsql1 host=pgsql2 dbname= user=" If both databases are available, dovecot will choose pgsql2 as the default one, and user login works flawlessly. But when I block all traffic to host pgsql2, dovecot will repeatedly try pgsql2 and neglect available host pgsql1. I don't find relevent information in the dovecot wiki either. Can anyone here shed a light on me? Thanks in advance! Regards, Frank Wang
Re: [Dovecot] Dovecot pgsqlauthentication database reconnection/failover problem
> On Sat, 2008-02-16 at 21:46 +0800, Frank Wang wrote: > > Hi, > > Our mail system uses dovecot-1.0-1.2.rc15.el5 in Centos-5.1 as our > > imap server. It connects to a pgsql database in another server as > > authentication backend. It works fine except occasionally fails to > > reconnect to the database after temporary network block, and dovecot has > > to be restarted to work again in such case. > > It's most likely fixed in newer versions. For example there is one > PostgreSQL fix in v1.0.4 and another in v1.0.rc26. There may be other > fixes as well. > > You can find newer Dovecot RPMs for CentOS 5 from atrpms.net. > Thanks for the quick reply. I've tested the dovecot-1.0.10-0_66.el5 from atrpms.net. The reconnection problem hasn't occur during the test so far, good! I'll need sometime to test the stability though, as it's marked test in the repo. > > Google led me to > > http://www.dovecot.org/list/dovecot/2008-January/027899.html. I followed > > the thread to modify my dovecot-sql.conf containing "connect = > > host=pgsql1 host=pgsql2 dbname= user=" > > Currently this works only with MySQL. Is it possible to achieve similar failover using pgsql backend? As we had built other systems using the same pgsql database, migrate to mysql is not an option here. Regards, Frank Wang
Re: [Dovecot] Dovecot pgsqlauthentication database reco nnection/failover problem
> > Is it possible to achieve similar failover using pgsql backend? > > It would require writing code to support that, but I'm not going to get > around to it anytime soon. The MySQL-specific connection pooling code > should probably be moved to generic code that works with all SQL > backends. Yeah, with generic pooling code, it'll definitely increase dovecot's availability for more situation. Thanks for your nice work! Regards, Frank Wang
Re: [Dovecot] Dovecot pgsqlauthentication database reconnection/failover problem
> Everything that replaces a package in RHEL5/CentOS5 is in the testing > repo and will never become stable. > > E.g. just replace the "testing" label with "replaces vendor packages" > in this case. Still you should give it a good test anyways. Thanks for pointing it out.
Re: [Dovecot] UID inserted in the middle of mailbox errors
On Fri, 28 Mar 2008 10:53:49 -0400 Dean Brooks wrote: > Hi, > > We are still getting, on a daily basis, users who cannot move messages > to Trash or expunge Trash due to these errors: > >Mar 28 10:43:57 tm2 dovecot: [ID 107833 mail.error] IMAP(kss021): >mbox sync: UID inserted in the middle of mailbox >/home/kss021/Mail/Trash (3137 > 536, seq=2, idx_msgs=76) > > Our users have no other access to their mailbox other than Dovecot, > and we are using mbox format and 1.1rc3. With maildir format too Mar 27 10:19:26 mailbox dovecot: imap(exim4000): Maildir /var/Mail/Boxes/e/exim4000/.Trash sync: UID inserted in the middle of mailbox (105265 > 105264, file = 1206604287.H478110P28054.mailbox.tu-berlin.de,S=6185:2,b)
Re: [Dovecot] imap-login processes
On Fri, 16 May 2008 14:47:05 -0400 (EDT) Bryan Polk wrote: > On Fri, 16 May 2008, Joe Allesi wrote: > > > We had this same problem, and switching to high-performance mode helps. > > However, finding out which user or application is logging in, and > > controlling the end-user is the only way to fix it. In our case it was a > > multi-threaded application that used IMAP (excessively). Monitoring the > > maillog should help point you in the right direction. Dozens of these per > > minute should throw up a red-flag: > > > > Looking back through the log for today we only have about 7-35 > imap-logins happening per minute, from an assortment of users. There > doesn't appear to be one user that's doing more than others. One thing I > did notice was entries like this: > > imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, > lip=127.0.0.1, secured > > Is there a reason the rip/lip would say 127.0.0.1 for some small number of > users and not others? Do you have a Web-Interface like SquirrelMail or Horde on the same host? Our SquirrelMail shows up in this fashion. --Frank Elsner
[Dovecot] debugging dovecot and sieve
I have install dovecot and sieve and it doesn't appear to be working. Below is my dovecot.conf Are there some debugging settings I can use to test if dovecot is linking with sieve properly. Nothing appears to show up in the logs start dovecot.conf === cat /usr/local/etc/dovecot.conf base_dir = /var/run/dovecot/ auth_verbose=yes auth_debug=yes mail_debug=yes auth_debug_passwords=yes disable_plaintext_auth=no protocols = imap imaps pop3 pop3s protocol imap { mail_plugins = quota imap_quota imap_client_workarounds = outlook-idle delay-newmail } protocol pop3 { mail_plugins = quota pop3_client_workarounds = outlook-no-nuls oe-ns-eoh pop3_uidl_format = %08Xu%08Xx } protocol lda { postmaster_address = [EMAIL PROTECTED] mail_plugins = quota cmusieve log_path = /var/log/vmail/dovecot-deliver.log info_log_path = /var/log/vmail/dovecot-deliver.log } ## ## Logging ## # Log file to use for error messages, instead of sending them to syslog. # /dev/stderr can be used to log into stderr. log_path = /var/log/dovecot/error_log # Log file to use for informational and debug messages. # Default is the same as log_path. info_log_path = /var/log/dovecot/general_log # Prefix for each line written to log file. % codes are in strftime(3) # format. #log_timestamp = "%b %d %H:%M:%S " # Syslog facility to use if you're logging to syslog. Usually if you don't # want to use "mail", you'll use local0..local7. Also other standard # facilities are supported. #syslog_facility = mail #ssl_listen = ssl_disable = no ssl_cert_file = /etc/ssl/certs/dovecot.pem ssl_key_file = /etc/ssl/private/dovecot.pem #ssl_key_password = #ssl_ca_file = #ssl_verify_client_cert = no #ssl_parameters_regenerate = 168 # SSL ciphers to use #ssl_cipher_list = ALL:!LOW # Show protocol level SSL errors. #verbose_ssl = no #ssl_ca_file = /etc/pki/dovecot/certs/ca-bundle.crt mail_location = maildir:/var/vmail/%d/%u mail_extra_groups = mail first_valid_uid = 601 last_valid_uid = 601 maildir_copy_with_hardlinks = yes auth default { mechanisms = plain passdb sql { args = /etc/dovecot/sql.conf } userdb sql { args = /etc/dovecot/sql.conf } userdb prefetch { } user = nobody socket listen { master { # path = /var/run/dovecot/auth-master path = /usr/local/var/run/dovecot/auth-master mode = 0660 user = vmail group = mail } client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = mail } } } dict { } plugin { quota = maildir:storage=10240:messages=1000 acl = vfile:/etc/dovecot/acls trash = /etc/dovecot/trash.conf sieve = /var/vmail/%d/%u/.dovecot.sieve } = end dovecot.conf Thanks vfclists
Re: [Dovecot] maildirmake -q quota equivalent to set quota
On Thu, 26 Jun 2008 11:26:25 +0200 Eric PEYREMORTE wrote: > nobody knows ? I just need a tool to set quota directly to the maildir. > Maybe could i use maildirmake from courier-imap ? I vote "yes". You should try it. My old maildirsize files work perfect after migration from couriet to dovecot. --Frank Elsner
Re: [Dovecot] How to pull /var/mail mbox leftovers to Maildirs?
On Thu, 03 Jul 2008 23:15:20 -0400 Jeff Kowalczyk wrote: > I just got my preferred postfix+dovecot(-1.1.1) configuration working on > Ubuntu 8.04 server. Users and Maildirs migrated, etc. > > I wasn't seeing inbound mail (in the email client) until I set: > > sudo postconf -e 'home_mailbox = Maildir/' > > Which I hadn't needed in the previous server's main.cf > > I have a few hours worth of inbound mostly-spam in /var/mail/(username) > during the time I was figuring this out. > > What command line tools could I use to pull those message from the mboxes > to the Maildirs? The attached script might help. I used it during migration from UW-IMAP to dovecot. It worked, although I'm not the author :-) --Frank Elsner #!/usr/bin/perl -w # "Simple but Perfect" mbox to Maildir converter v0.3 # Copyright (C) 2001-2003 Philip Mak <[EMAIL PROTECTED]> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. use strict; use Date::Parse qw( str2time ); Settings # This will be used to set the file time (needed for courier-imap and some others) # $datestyle = "date": extract date from the "Date: " header # $datestyle = "from": extract date from the "From " mbox header my $datestyle = "date"; # Use maildir++ format (append the message size to the filename) my $maildirplus = 0; # Get the hostname my $hostname = `hostname`; chomp ($hostname); # check for valid arguments my ($maildir) = @ARGV; if (!$maildir) { print STDERR "Usage: perfect_maildir ~/Maildir < mbox\n"; exit 1; } elsif (! -d $maildir) { print STDERR "Cannot open $maildir\n"; exit 1; } # check for writable maildir unless (-w "$maildir/cur") { print STDERR "Cannot write to $maildir/cur\n"; exit 1; } unless (-w "$maildir/new") { print STDERR "Cannot write to $maildir/new\n"; exit 1; } my $num = 0; my $time = time; my $date; my $delivered_time; repeat: # read header my $headers = ''; my $flags = ''; my $subject = ''; while (my $line = ) { # detect end of headers last if $line eq "\n"; if ($datestyle eq "from") { # Get date from the "From " line (this should appears here for the first message only) $date = $1 if $line =~ /^From [^ ^\t]+[ \t]+(.{24})/; } elsif ($datestyle eq "date") { # Get date from the "Date: " header $date = $1 if $line =~ /^Date: (.*)$/; } # strip "From" line from header $headers .= $line unless $line =~ /^From ./; # detect flags $flags .= $1 if $line =~ /^Status: ([A-Z]+)/; $flags .= $1 if $line =~ /^X-Status: ([A-Z]+)/; $subject = $1 if $line =~ /^Subject: (.*)$/; } $num++; if ($datestyle =~ /(from|date)/) { $delivered_time = str2time("$date"); } else { $delivered_time = $time; } # open output file my $file; if ($flags =~ /O/) { $file = sprintf( "%s%05d%s", "$maildir/cur/$delivered_time.", $num, ".$hostname" ); my $extra = ''; $extra .= 'F' if $flags =~ /F/; # flagged $extra .= 'R' if $flags =~ /A/; # replied $extra .= 'S' if (($flags =~ /R/) || ($flags =~ /O/)); # seen $extra .= 'T' if $flags =~ /D/; # trashed $file .= ":2,$extra" if $extra; } else { $file = sprintf( "%s%05d%s", "$maildir/new/$delivered_time.", $num, ".$hostname" ); } # filter out the "DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA" message or the message doesn't exists if (($num == 1 and $subject eq "DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA") || (!$headers)) { $file = '/dev/null'; $num--; } open(FILE, ">$file"); print FILE "$headers\n"; while (my $line = ) { if ($datestyle eq "from") { # Get date from the "From " line (this should appears here for the first message only) $date = $1 if $line =~ /^From [^ ^\t]+[ \t]+(.{24})/; } # End of current message last if ($line =~ /^From ./); # unescape "From" $line =~ s/^>From (.)/From $1/; print FILE $line; } close(FILE); utime( $time, $delivered_time, $file ) if ($datestyle =~ /(from|date)/); if ($maildirplus) { my $size = -s $file; my $mdplusfile = $file; $mdplusfile =~ s/\.$hostname/.$hostname,S=$size/; rename $file,$mdplusfile; } goto repeat unless eof(STDIN); my $elapsed = time - $time; print "Inserted $num messages into maildir $maildir in $elapsed seconds\n";
[Dovecot] Sieve plugin should recompile when symbolic link changes [patch]
The sieve plugin compares the modification dates of sieve source and compiled script and compiles the script only if necessary. When the managesieve extension is used, it creates a symbolic link for the script. In order to switch between scripts managesieve changes the link only. Therefore the sieve plugin should include the modification date of an symlink in its decision about compilation. The attached patch adds this functionality. Regards, Frank -- Frank Behrens, Osterwieck, Germany PGP-key 0x5B7C47ED on public servers available. dovecot-sieveSymlink115.patch Description: Binary data
Re: [Dovecot] tcp-wrappers.patch
On Wed, 23 Jul 2008 15:31:20 +0200 Edgar Fuß wrote: > I'd like to see tcp-wrappers.patch getting integrated into dovecot. > I ported the original 1.0 patch to 1.1, but would prefer not to have to > maintain another local patch. > > As the name suggests, the patch adds libwrap support to dovecot. We use is to > limit access from outside our network to secure (imaps/pop3s) protocols only > and to exclude certain internal addresses from accessing dovecot in general. Why this? I do this with iptables. --Frank Elsner
Re: [Dovecot] tcp-wrappers.patch
On Wed, 23 Jul 2008 19:05:13 +0200 Edgar Fuß wrote: > > Why this? I do this with iptables. > Hm. Mainly because I find hosts.{allow,deny} easier to handle in this case > than (i)pf.conf. It's also somewhat more staightforward to maintain a single > pair of hosts.* files consistent accross all mail servers than to deal with > individual packet filter > rules. And, if you like to, you can do more elaborate things with tcp > wrappers than what I mentioned (and currently need). I maintain the iptables configuration(s) (on Fedora in /etc/sysconfig/iptables) across machines using scp or rsync. No problem. --Frank Elsner