Re: Dovecot v2.3.17.1 Released

2021-12-07 Thread Frank Elsner
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


Re: [EXT] Re: Dovecot v2.3.17 released

2021-10-28 Thread Frank Elsner
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 released

2021-10-28 Thread Frank Elsner
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: Dovecot v2.3.17 released

2021-10-28 Thread Frank Elsner
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

2021-10-28 Thread Frank Elsner
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 = 

Undefined SSL object

2021-01-30 Thread Frank Elsner
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


Quota: How/where to set/change

2020-07-03 Thread Frank Elsner
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 

[SOLVED] dovecot -2.2.24 on Fedora 31

2019-11-12 Thread Frank Elsner via dovecot


Hello Aki,
  thanks for your patience and help. 

I solved my problems by compiling dovecot-2.3.8 and following the migration 
hints I got it working. 


Happy, Frank


Re: dovecot -2.2.24 on Fedora 31

2019-11-11 Thread Frank Elsner via dovecot
On Tue, 12 Nov 2019 09:22:56 +0200 Aki Tuomi via dovecot wrote:
> Hi!
> 
> Can you try follow this guide to get a core dump
> 
> https://www.dovecot.org/bugreport-mail
> 
> then provide
> 
> 
> gdb /usr/lib/dovecot/auth /path/to/core
> 
> bt full

Sorry, I'm not familiar with gdb and can only provide this

# gdb /usr/local/dovecot//libexec/dovecot/auth
GNU gdb (GDB) Fedora 8.3.50.20190824-24.fc31
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/dovecot//libexec/dovecot/auth...
(gdb) bt full
No stack.
(gdb) r
Starting program: /usr/local/dovecot/libexec/dovecot/auth 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
__strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:173
173 movlpd  (%rdi), %xmm1

> Also doveconf -n could be useful.

Here it is:

# 2.2.36.4 (baf9232c1): /usr/local/dovecot/etc/dovecot/dovecot.conf
# OS: Linux 5.3.8-300.fc31.x86_64 x86_64 Fedora release 31 (Thirty One) ext3
# Hostname: seymour.fritz.box
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
  quota = maildir:User quota
  quota_rule = ?:storage=5G
  quota_rule2 = Trash:storage=+100M
}
postmaster_address = frank.els...@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
  }
  inet_listener imaps {
port = 993
ssl = yes
  }
  process_limit = 512
  process_min_avail = 3
}
service imap-postlogin {
  executable = script-login /usr/local/sbin/dovecot-imap-post-login
}
service imap {
  executable = imap imap-postlogin
  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 -2.2.24 on Fedora 31

2019-11-11 Thread Frank Elsner via dovecot
On Tue, 12 Nov 2019 00:17:28 +0100 Frank Elsner via dovecot wrote:
> On Mon, 11 Nov 2019 23:47:27 +0100 Frank Elsner via dovecot wrote:

  [ ... ]

> I narrowed the probelem down to the warnings
> 
> Warning: service auth { client_limit=128 } is lower than required under max. 
> load (768)
> Warning: service anvil { client_limit=256 } is lower than required under max. 
> load (643)

These messages disappear after changes in the auth and anvil config but I ran
into the following problem:

dovecot[355234]: master: Dovecot v2.2.36.4 (baf9232c1) starting up for imap
dovecot[355234]: master: Error: service(auth): command startup failed, 
throttling for 2 secs
dovecot[355237]: auth: Fatal: master: service(auth): child 355242 killed with 
signal 11 (core dumped)
dovecot[355234]: master: Error: service(auth): command startup failed, 
throttling for 4 secs
dovecot[355237]: auth: Fatal: master: service(auth): child 355256 killed with 
signal 11 (core dumped)
dovecot[355234]: master: Error: service(auth): command startup failed, 
throttling for 8 secs
dovecot[355237]: auth: Fatal: master: service(auth): child 355271 killed with 
signal 11 (core dumped)
dovecot[355234]: master: Error: service(auth): command startup failed, 
throttling for 16 secs
dovecot[355237]: auth: Fatal: master: service(auth): child 355285 killed with 
signal 11 (core dumped)
dovecot[355234]: master: Warning: Killed with signal 15 (by pid=1 uid=0 
code=kill)
dovecot[355237]: imap-login: Warning: Killed with signal 15 (by pid=1 uid=0 
code=kill)
dovecot[355237]: anvil: Warning: Killed with signal 15 (by pid=1 uid=0 
code=kill)
dovecot[355237]: config: Warning: Killed with signal 15 (by pid=1 uid=0 
code=kill)
dovecot[355237]: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)

I guess the solution is simple but I can't find it :-(


--Frank



Re: dovecot -2.2.24 on Fedora 31

2019-11-11 Thread Frank Elsner via dovecot
On Mon, 11 Nov 2019 23:47:27 +0100 Frank Elsner via dovecot wrote:

  [ ... ]
> I got dovecot-2.2.36.4 compiled but at start the log shows
> 
> dovecot[342614]: master: Dovecot v2.2.36.4 (baf9232c1) starting up for imap
> dovecot[342617]: ssl-params: Generating SSL parameters
> dovecot[342614]: master: Error: service(auth): command startup failed, 
> throttling for 2 secs
> dovecot[342617]: auth: Fatal: master: service(auth): child 342623 killed with 
> signal 11 (core dumped)
> dovecot[342614]: master: Error: service(auth): command startup failed, 
> throttling for 4 secs
> 
> The configuration files are from dovecot-2.2.24 whre they worked perfect.

I narrowed the probelem down to the warnings

Warning: service auth { client_limit=128 } is lower than required under max. 
load (768)
Warning: service anvil { client_limit=256 } is lower than required under max. 
load (643)

Where comes max. load from?


--Frank



Re: dovecot -2.2.24 on Fedora 31

2019-11-11 Thread Frank Elsner via dovecot
On Mon, 11 Nov 2019 17:30:37 +0200 (EET) Aki Tuomi via dovecot wrote:

  [ ... ]

> Is there some reason you want to use ancient dovecot? You should use 2.2.36 
> at least.

I got dovecot-2.2.36.4 compiled but at start the log shows

dovecot[342614]: master: Dovecot v2.2.36.4 (baf9232c1) starting up for imap
dovecot[342617]: ssl-params: Generating SSL parameters
dovecot[342614]: master: Error: service(auth): command startup failed, 
throttling for 2 secs
dovecot[342617]: auth: Fatal: master: service(auth): child 342623 killed with 
signal 11 (core dumped)
dovecot[342614]: master: Error: service(auth): command startup failed, 
throttling for 4 secs

The configuration files are from dovecot-2.2.24 whre they worked perfect.

What to do to get it working?
conf.d
PS: I can provide dovecot.conf and conf.d/10-auth.conf if necessary.


--Frank


Re: dovecot -2.2.24 on Fedora 31

2019-11-11 Thread Frank Elsner via dovecot
On Mon, 11 Nov 2019 17:30:37 +0200 (EET) Aki Tuomi via dovecot wrote:

 [ ... ]

> Is there some reason you want to use ancient dovecot? You should use 2.2.36 
> at least.

Migration from 32bit to 64bit. I want to avoid problems, so I used the version 
I have
compiled and used on the 32bit system.


--Frank


dovecot -2.2.24 on Fedora 31

2019-11-11 Thread Frank Elsner via dovecot
Hi,

I try to compile dovecot -2.2.24 on Fedora 31 and get the following error:

iostream-openssl.c: In function ‘openssl_iostream_verify_client_cert’:
iostream-openssl.c:118:37: error: dereferencing pointer to incomplete type 
‘X509_STORE_CTX’ {aka ‘struct x509_store_ctx_st’}
  118 |  subject = X509_get_subject_name(ctx->current_cert);
  | ^~
make[3]: *** [Makefile:561: iostream-openssl.lo] Error 1

All openssl packages installed. What's the reason and how solve the problem?

Kind regards, 
Frank Elsner


Re: post-delivery virus scan

2016-11-10 Thread Frank Elsner
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: "anvil: Error: connect limit: disconnection for unknown pid 17659 + ident lmtp/backup@backup.invalid"

2016-07-07 Thread Frank Elsner
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: spam folder and POP users

2014-11-20 Thread Frank Elsner
On Thu, 20 Nov 2014 17:29:05 -0500 Robert Moskowitz wrote:

  [ ... ]

 I am using roundcubemail for the webmail IMAP client.  Is there any way 
 for POP users to indicate that they do not want spam so nicely auto 
 moved to the IMAP spam folder?

Mixing POP and IMAP is really bad due to many reasons.
Peopla always complain where is my mail when using a web interface
after they have POPped at home.

You should consider to switch off POP. POP is for people living in caves.


Greeting, Frank


Re: identify MUA connecting?

2014-07-29 Thread Frank Elsner
On Tue, 29 Jul 2014 00:49:37 +0200 Reindl Harald wrote:
 
 Am 28.07.2014 22:40, schrieb Peter Chiochetti:
  Am 2014-07-28 um 21:15 schrieb Reindl Harald:
  Am 28.07.2014 20:57, schrieb Rick Romero:
  Am 28.07.2014 19:58, schrieb Juan Pablo:
  The reason I am wanting to do this is I would like to know if people
  are getting their email on personal devices
  instead of work secured / standardized phones
 
  IMHO, client certificates would work work well here.  I think Dovecot
  supports it
 
  yes, but you accept them or not
  that's a different story than log the MUA information
  
  Yes, it is a means to stop people from using insecure devices.
 
 a client certificate hadrly makes a device secure
 if the device is compromised your cert is gone
 
  So possibly a useful hint the OP may be interested in! Might well be that 
  its the reason for learning which MUA was used?
 
 well, what client is used is impossible
 
 there is no user-agent like HTTP and even for HTTP the header is not
 mandatory and rqeuire it will break your web-app for anybody who cares
 for privacy while gain nothing

Not in general: 

cyrus/imaps[9143]: client id: name Thunderbird version 24.6.0

I guess, dovecot simply must learn it.


--Frank Elsner


Re: [Dovecot] basic dsync wrapper for migration from another server

2014-03-28 Thread Frank Elsner
On Fri, 28 Mar 2014 17:41:24 +0100 Frank Elsner wrote:
 On Fri, 28 Mar 2014 14:45:05 +0100 Alan McGinlay wrote:
  Hi,
  
  I cobbled together this somewhat shoddy Bash script to migrate email 
  accounts from our Cyrus server to a new dovecot system. Feel free to 
  use, or laugh at it as you wish :)
 
 I do want to rate your script but do you know
  ^
 insert not here!

--Frank


pgpcmz_Gpczig.pgp
Description: PGP signature


Re: [Dovecot] basic dsync wrapper for migration from another server

2014-03-28 Thread Frank Elsner
On Fri, 28 Mar 2014 14:45:05 +0100 Alan McGinlay wrote:
 Hi,
 
 I cobbled together this somewhat shoddy Bash script to migrate email 
 accounts from our Cyrus server to a new dovecot system. Feel free to 
 use, or laugh at it as you wish :)

I do want to rate your script but do you know
http://www.cyrus2dovecot.sw.fu-berlin.de

Kind regards,
Frank


pgpQ131Wwx5Xr.pgp
Description: PGP signature


Re: [Dovecot] Allow both SSL/993 and STARTTLS/143 connections (secure only)

2014-01-03 Thread Frank Elsner
On Fri, 03 Jan 2014 10:08:15 -0500 Charles Marcus wrote:
 On 2014-01-03 8:32 AM, Charles Marcus cmar...@media-brokers.com wrote:
 
  Ok, up until now, I've only always allowed IMAPS connections to 
  dovecot on port 993.
 
  I want to also start allowing clients to user port143+STARTTLS, but I 
  walso want to make sure both ports are locked down to ONLY allow 
  secure connections. 
 
 And I just had an idea, but don't know if it is possible.
 
 Can I offer one namespace on one port (ie, SSL/993), and a different 
 namespace on the other port (STARTTLS/143)?

You dont' need 2 namespaces.

In 10-auth.conf set disable_plaintext_auth = yes


My 10-master.conf contains

| service imap-login {
|   inet_listener imap {
| port = 143
|   }
|   inet_listener imaps {
| port = 993
| ssl = yes
|   }

And this works.


--Frank Elsner



pgpUD5rT29dHJ.pgp
Description: PGP signature


[Dovecot] ssl-params regeneration with dovecot 2.2.7

2013-11-05 Thread Frank Elsner
Hello,

after switching from version 2.2.7 to 2.2.7 I miss the loglines which say:

ssl-params: Generating SSL parameters
ssl-params: SSL parameters regeneration completed

The configuration has not been changed and reads:

|  # 2.2.7: /usr/local/dovecot/etc/dovecot/dovecot.conf
|  # OS: Linux 2.6.35.14-106.fc14.i686.PAE i686 Fedora release 14 (Laughlin) 
ext3
|  auth_mechanisms = plain login
|  default_vsz_limit = 512 M
|  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 fts fts_squat
|  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
|quota = maildir:User quota
|quota_rule = *:storage=2G
|quota_rule2 = Trash:storage=+100M
|  }
|  postmaster_address = postmas...@moltke28.b.shuttle.de
|  protocols = imap
|  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/local/sbin/dovecot-imap-post-login
|  }
|  service imap {
|executable = imap imap-postlogin
|  }
|  service lmtp {
|inet_listener lmtp {
|  address = 0.0.0.0
|  port = 24
|}
|  }
|  service pop3-login {
|inet_listener pop3 {
|  port = 110
|}
|inet_listener pop3s {
|  port = 995
|  ssl = yes
|}
|  }
|  service pop3 {
|process_limit = 1024
|  }
|  ssl_cert = /usr/local/etc/c64.shuttle.de.CRT
|  ssl_key = /usr/local/etc/c64.shuttle.de-dovecot.KEY
|  ssl_parameters_regenerate = 1 hours
|  userdb {
|driver = passwd
|  }
|  verbose_proctitle = yes
|  protocol lmtp {
|mail_plugins = notify quota fts fts_squat
|  }
|  protocol lda {
|mail_plugins = notify quota fts fts_squat
|  }
|  protocol imap {
|imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags
|imap_logout_format = [%i/%o]
|mail_max_userip_connections = 0
|mail_plugins = notify quota fts fts_squat quota mail_log imap_quota 
listescape fts fts_squat
|  }


What's going on? No more logging or no regeneration?


Greetings, Frank Elsner


Re: [Dovecot] ssl-params regeneration with dovecot 2.2.7

2013-11-05 Thread Frank Elsner
On Tue, 5 Nov 2013 20:01:54 +0100 Frank Elsner wrote:
 Hello,
 
 after switching from version 2.2.7 to 2.2.7 I miss the loglines which say:

Sorry, typo. Should read

 after switching from version 2.2.6 to 2.2.7
  ^

--Frank


[Dovecot] dovecot: ssl-params

2013-10-09 Thread Frank Elsner

Hello *,

what is the reason for this strange behaviour?
May I ignore it? 

Oct  8 19:32:20 seymour dovecot: ssl-params: Generating SSL parameters
Oct  8 19:32:29 seymour dovecot: ssl-params: SSL parameters regeneration 
completed

Oct  9 07:01:05 seymour dovecot: ssl-params: Generating SSL parameters
Oct  9 07:01:06 seymour dovecot: imap-login: Login: frank, 192.168.28.1, TLS
Oct  9 07:01:06 seymour dovecot: ssl-params: SSL parameters regeneration 
completed
Oct  9 07:01:07 seymour dovecot: ssl-params: Error: epoll_ctl(del, 7) failed: 
No such file or directory
Oct  9 07:01:07 seymour dovecot: ssl-params: Error: epoll_ctl(del, 8) failed: 
No such file or directory


Kind regards,
Frank Elsner


[Dovecot] The sign in config files

2013-08-06 Thread Frank Elsner

Hallo experts,

what is the meaning of the  sign in config files as in

ssl_key = /etc/pki/tls/private/dovecot.key
  ^
  |
  ?


--Frank Elsner


Re: [Dovecot] Benchmarking: Dovecot vs Courier. Courier wins as POP3 server

2013-01-16 Thread Frank Elsner
On Wed, 16 Jan 2013 23:47:33 + Alexandr Sabitov wrote:
 Hi All,
 
 I have compared Dovecot performance to Courier and it appears that as a POP3 
 server Dovecot is slower in 2 times but as an IMAP server it is faster in 1.5 
 times. The same node (16CPUs), testing time is 30 min, please see results and 
 dovecot configs attached.
 Benchmark software is MStone used by Sendmail Inc so is is quite reliable.
 
 I do not see anything else to tweak in Dovecot to increase POP3 performance. 
 Can we all have some tips to improve it please ?

The Middle Age has called, it wants POP3 back.

--Frank Elsner


[Dovecot] Exim / Dovecot and AUTH LOGIN

2012-05-08 Thread Frank Elsner

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

2012-05-08 Thread Frank Elsner
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

2012-05-08 Thread Frank Elsner
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


[Dovecot] dovecot 2.1.1 + pigeonhole + avelsieve

2012-03-05 Thread Frank Elsner

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/src156 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 = /usr/local/etc/c64.shuttle.de.CRT
| ssl_cipher_list = ALL:!LOW:!SSLv2
| ssl_key = /usr/local/etc/c64.shuttle.de-dovecot.KEY
| ssl_parameters_regenerate = 6 hours
| userdb {
|   driver = passwd
| }
| verbose_proctitle = yes
| protocol lmtp {
|   mail_plugins =  notify quota quota
| }
| protocol lda {
|   mail_plugins =  notify quota quota
| }
| protocol imap {
|   imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags
|   imap_logout_format = [%i/%o]
|   mail_max_userip_connections = 0
|   mail_plugins =  notify quota mail_log quota imap_quota listescape
| }

And the avelsieve config.php has:

| /*  NEW OPTION (as of 0.9.4) 
|  * Space separated list of preferred SASL mechanisms for the authentication to
| * timsieved */
|
| $preferred_mech = PLAIN;


Ok, looking forward for any tip,
Frank Elsner


[Dovecot] What's behind the message ...

2012-02-29 Thread Frank Elsner

... 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 ...

2012-02-29 Thread Frank Elsner
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] 2.0.X - 2.1 pitfalls?

2012-02-17 Thread Frank Elsner

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


Re: [Dovecot] dovecot as an imap client

2011-11-23 Thread Frank Elsner
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] undefined symbol: o_stream_switch_ioloop

2011-11-11 Thread Frank Elsner

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

2011-11-11 Thread Frank Elsner
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

2011-11-11 Thread Frank Elsner
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] TLS Authentication Confusion

2011-11-10 Thread Frank Elsner
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


Re: [Dovecot] v2.1.alpha1 released

2011-09-05 Thread Frank Elsner
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


Re: [Dovecot] v2.1.alpha1 released

2011-09-01 Thread Frank Elsner
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

2011-09-01 Thread Frank Elsner
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] How do I change the date format displayed on webmail?

2011-08-10 Thread Frank Elsner
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] Update 2.0.12 - 2.0.13 is broken

2011-08-01 Thread Frank Elsner
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: e1qkegd-u9...@moltke28.b.shuttle.de


--Frank Elsner


Re: [Dovecot] v2.0.13 released

2011-05-11 Thread Frank Elsner
On Wed, 11 May 2011 18:52:21 +0300 Timo Sirainen wrote:  

  [ ... ]

   - script-login binary wasn't actually dropping privileges to the
 user/group/chroot specified by its service settings.

This version gives problems with my post-login script to track last usage,
which works perfect with 2.0.12.

Error messages:

May 11 20:38:53 seymour dovecot: master: Dovecot v2.0.13 starting up (core 
dumps disabled)
May 11 20:39:01 seymour dovecot: imap-login: Login: frank, 192.168.28.53, TLS
May 11 20:39:01 seymour dovecot: imap-postlogin: Error: script-login: Error: 
user frank: Error reading configuration: 
net_connect_unix(/var/run/dovecot/config) failed: Permission denied
May 11 20:39:01 seymour dovecot: imap-postlogin: Error: script-login: Fatal: 
Internal error occurred. Refer to server log for more information.
May 11 20:39:01 seymour dovecot: log: Error: service(imap-postlogin): child 
8651 returned error 89 (Fatal failure)
May 11 20:39:01 seymour dovecot: imap(frank): Post-login script denied access 
to user frank


# 2.0.12: /usr/local/dovecot/etc/dovecot/dovecot.conf
# OS: Linux 2.6.35.13-91.fc14.i686.PAE i686 Fedora release 14 (Laughlin) ext3
disable_plaintext_auth = no
first_valid_uid = 200
last_valid_uid = 65534
listen = *
login_greeting = c64.shuttle.de - IMAPs Service ready.
login_log_format_elements = %u %r %c
mail_location = maildir:/var/spool/mail/%u:INDEX=MEMORY
mail_log_prefix = %Us(%u,%r): 
mail_plugins =  notify quota
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
}
protocols = imap
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_min_avail = 3
}
service imap-postlogin {
  executable = script-login /usr/dovecot/bin/imap-post-login
  user = dovecot
}
service imap {
  executable = imap imap-postlogin
}
ssl_cert = /usr/local/etc/c64.shuttle.de.CRT
ssl_cipher_list = ALL:!LOW:!SSLv2
ssl_key = /usr/local/etc/c64.shuttle.de-dovecot.KEY
userdb {
  driver = passwd
}
verbose_proctitle = yes
protocol imap {
  imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags
  imap_logout_format = [%i/%o]
  mail_plugins =  notify quota mail_log quota imap_quota listescape
}


Procedure /usr/dovecot/bin/imap-post-login simply writes a datestamp to a file
with owner frank.

Any pointer to solution welcome.


--Frank Elsner



Re: [Dovecot] v2.0.13 released

2011-05-11 Thread Frank Elsner
On Wed, 11 May 2011 22:17:28 +0300 Timo Sirainen wrote:
 On 11.5.2011, at 22.03, Frank Elsner wrote:
 
  This version gives problems with my post-login script to track last usage,
  which works perfect with 2.0.12.
 
 That would be because of this change:
 
 - script-login binary wasn't actually dropping privileges to the
   user/group/chroot specified by its service settings.
 
  May 11 20:39:01 seymour dovecot: imap-postlogin: Error: script-login: 
  Error: user frank: Error reading configuration: 
  net_connect_unix(/var/run/dovecot/config) failed: Permission denied
 
 Hmm. I suppose it drops the privileges a bit too early now.. Well, you can 
 switch back to v2.0.12 behavior by removing the user=dovecot:
 
  service imap-postlogin {
   user = dovecot

Thanks, works.

 I'll fix it properly for v2.0.14 then. Another alternative would be to change 
 config socket's permissions to allow dovecot user to read/write it.

How to do that? 

PS: I'd like to have the lastlogin file to be owned by user dovecot.
Currently it is owned bx the user.


--Frank Elsner


Re: [Dovecot] v2.0.13 released

2011-05-11 Thread Frank Elsner
On Wed, 11 May 2011 22:37:22 +0300 Timo Sirainen wrote:
 On 11.5.2011, at 22.34, Frank Elsner wrote:
 
  I'll fix it properly for v2.0.14 then. Another alternative would be to 
  change config socket's permissions to allow dovecot user to read/write it.
  
  How to do that? 
 
 For example:
 
 service config {
   unix_listener config {
 group = dovecot
 mode = 0660
   }
 }
 
 (or just user=dovecot)
 
  PS: I'd like to have the lastlogin file to be owned by user dovecot.
 Currently it is owned bx the user.
 
 Not root?..

No.  
   -rw---  1 frank elsner   31 May 11 20:54 lastlogin


--Frank Elsner


Re: [Dovecot] Logging commands

2011-04-20 Thread Frank Elsner
On Wed, 20 Apr 2011 16:14:40 +0200 Luciano Mannucci wrote:
 
 Hello all,
 
 is there a way to make dovecot log the commands it gets from its
 clients both in imap and pop3? I need to log when messages are
 deleted so I can tell to the customer when and from which IP address
 his/her mailbox was emptied.

My conf.d/10-logging.conf for dovecot 2.0.12 contains

| # mail_log plugin provides more event logging for mail processes.
| plugin {
|   # Events to log. Also available: flag_change append
|   mail_log_events = delete undelete expunge copy mailbox_delete 
mailbox_rename flag_change
|   # Group events within a transaction to one line.
|   #mail_log_group_events = no
|   # Available fields: uid, box, msgid, from, subject, size, vsize, flags
|   # size and vsize are available only for expunge and copy events.
|   mail_log_fields = uid box from subject msgid size
| }


Maybe that helps you out.



--Frank Elsner


Re: [Dovecot] dovecot can't see mail that is there

2011-01-06 Thread Frank Elsner
On Thu, 6 Jan 2011 19:45:46 +0100 Joachim Ferreira wrote:

  [ ... ]

 If I login into the account and check the mail with the alpine (ex pine)
 client, I see that there are 10 mails.

From the Log I guess you're using POP, right?

 When I telnet localhost pop3 and login into the account, the list
 command says there are 0 mails.

I guess the previous POP session downloaded them.

You may want to switch to IMAP.

$SEARCHENGINE may help you to learn about the difference
  between POP and IMAP.


--Frank Elsmer


Re: [Dovecot] Mail history function?

2010-11-17 Thread Frank Elsner
On Wed, 17 Nov 2010 12:48:16 +0100 Oliver Berse wrote:
 I'm a newbie at Dovecot. For a company groupware I need a kind of a
 history function for mails to see which user sent which mail to whom / got
 which mail from whom. So I have to get the message ID of in- and outgoing
 mails (and write related data to a mysql database). My first idea was to
 monitor the log file with a daemon and search for strings like
 deliver(x...@y.z): 2010-11-15 17:34:56 Info:
 msgid=aanlktikorguieg2kguw2glmuld4tx-bpst4yhubuh...@a.b. I'm not sure
 if this is the right approach. Does anyone know a better solution with
 Dovecot?

I guess it should be done by the MTA. 


--Frank Elsner


Re: [Dovecot] Can't establish Dovecot authorization in Exim.

2010-06-30 Thread Frank Elsner
On Wed, 30 Jun 2010 23:26:09 +0900 秋元 亮二 wrote:
 
 Hi,
 
 I have some problem in Dovecot authorization in Exim for 
 outgoing SMTP.
 
 Version of Exim is 4.69 and the Exim was compiled 
 with AUTH_DOVECOT=yes and AUTH_PLAINTEXT=yes.
 Version of Dovecot 
 is 1.2.12.
 
 I use SSL for IMAP.  Is Exim neccesary to use SSL(TLS)
  for authorization of outgoing SMTP?

I guess NO because communication is via socket.

My exim-4.72 configuration (which doesn't use LOGIN) contains:

| plain:
|   driver = dovecot
|   public_name = PLAIN
|   server_socket = /var/run/dovecot/auth-client
|   server_set_id = $auth1


And the dovecot-1.2.12 configuration contains:

| auth default {
|   mechanisms = plain login
| 
|   passdb pam {
|  args = dovecot
|   }
| 
|   socket listen {
| client {
|   # The client socket is generally safe to export to everyone. Typical use
|   # is to export it to your SMTP server so it can do SMTP AUTH lookups
|   # using it.
|   path = /var/run/dovecot/auth-client
|   mode = 0666
| }
|   }
| }


Hope it helps. YMMV.


--Frank Elsner


Re: [Dovecot] Can't establish Dovecot authorization in Exim.

2010-06-30 Thread Frank Elsner
On Thu, 1 Jul 2010 04:31:55 +0900 __ __ wrote:
 
 Thank you for the responses.
 
 Do I need some setings for auth_advertise_hosts or ACL in Exim configuration 
 and need ports other than 25th (SMTP)?

Of course you should define to which hosts you advertise SMTP AUTH.
And within your ACLs you should allow AUTH only for SSL/TLS connections.

For example:

| hostlist   relay_hosts= 127.0.0.0/8 : 192.168.28.0/24
| auth_advertise_hosts  = !+relay_hosts
| ..
| acl_smtp_auth = check_auth
| acl_smtp_connect  = check_connect
| ..
| check_auth:
|   accept  hosts = +relay_hosts
|   accept  encrypted = *
|   denymessage = SSL/TLS encryption required for SMTP AUTH
| 
| check_connect:
|   warnhosts = +relay_hosts
|   control = allow_auth_unadvertised


--Frank Elsner


Re: [Dovecot] Dovecot aspects of fighting spam

2010-06-01 Thread Frank Elsner
On Tue, 1 Jun 2010 09:42:18 -0400 Phil Howard wrote:
 I see no documents in the Dovecot documents wiki on how Dovecot
 features can be used in the fight against spam.  One hit came up in a
 search, and it was about how to fight spam in the MoinMoin Wiki itself
 (e.g. TextCHAs and such).

Fighting against SPAM is the MTA's job. 
Dovecot's job is to provide access to the mailboxes for the users.


--Frank Elsner


Re: [Dovecot] Dovecot aspects of fighting spam

2010-06-01 Thread Frank Elsner
On Tue, 1 Jun 2010 10:02:56 -0400 Phil Howard wrote:
 On Tue, Jun 1, 2010 at 09:54, Frank Elsner fr...@moltke28.b.shuttle.de 
 wrote:
  On Tue, 1 Jun 2010 09:42:18 -0400 Phil Howard wrote:
  I see no documents in the Dovecot documents wiki on how Dovecot
  features can be used in the fight against spam.  One hit came up in a
  search, and it was about how to fight spam in the MoinMoin Wiki itself
  (e.g. TextCHAs and such).
 
  Fighting against SPAM is the MTA's job.
  Dovecot's job is to provide access to the mailboxes for the users.
 
 Dovecot would still be involved ... getting detected spam into a
 folder for users that don't want false positives to be deleted, and a
 feedback folder for recycling false negatives into detection training.

Ok, you obviously have a different environment and requirements.

- I do the delivery into special folder by the MTA (exim) and the LDA is 
  not used at all.

- detection training is not done.


Sorry, my world may be to narrow :-)



--Frank Elsner


Re: [Dovecot] Virusscanning

2010-04-12 Thread Frank Elsner
On Sun, 11 Apr 2010 20:06:34 +0200 Andreas Schulze wrote:
 Hello list,
 
 I use currently a non-dovecot pop3 proxy which has the ability
 to scan all passing mails for viruses. And I like dovecot.

I like dovecot too. But I think virus-scanning is for the MTA.


--Frank


Re: [Dovecot] Mailing list's prefix

2010-03-04 Thread Frank Elsner
On Thu, 04 Mar 2010 22:59:59 +0200 Timo Sirainen wrote:
 Do you think I'd break a lot of people's filters if I removed the
 prefix? :) Anyone strongly for/against removing it? It seems kind of
 annoying to me whenever I happen to think about it.

Removal gives 10 chars more for the subject. Remove it.


--Frank Elsner


Re: [Dovecot] Duplicate Elimination

2010-02-24 Thread Frank Elsner
On Wed, 24 Feb 2010 16:10:11 +0100 Bernd Petrovitsch wrote:
 On Mit, 2010-02-24 at 16:51 +0200, Timo Sirainen wrote:
 [...]
   (I hate the whole concept of dropping incoming messages as duplicates
  based on Message-ID. I would definitely want it disabled for my own
  mails, for example that would mean I couldn't filter messages to
  mailing lists based on List-ID: header, because the first mail usually
  comes directly from the other user, and then the second mail with the
  List-ID: would get dropped.)
 Aren't those usually two separate mails with different message-ids as
 one comes directly by the sender and the other generated by the
 mailinglist manager?

I guess you are wrong. Mailing list software does not change the Message-ID.


--Frank Elsner


Re: [Dovecot] Dovecot mbox

2010-02-24 Thread Frank Elsner
On Wed, 24 Feb 2010 14:26:07 -0600 (CST) Thomas M Goerger wrote:
 Hi,
 
 Just wondering for all you people using Dovecot out there.
 
 1. What mailbox protocol are you using?

maildir++

 2. What version of Dovecot?

dovecot-1.2.10, imaps only.


--Frank Elsner


[Dovecot] Migration 1.2.10 - dovecot-2.0.beta

2010-02-22 Thread Frank Elsner

Hello *,

I've a well functioning dovecot.1.2.10 installation. I'd like to migrate to 
dovecot.2.0.beta. Is it possible to use one (big) dovecot.conf or must I
split it into pieces into directory conf.d? What is the best procedure
to convert the configuration file? 

Any pointers welcome.



--Frank Elsner


Re: [Dovecot] leave mail on server workaround

2010-01-10 Thread Frank Elsner
On Sun, 10 Jan 2010 13:57:41 +0100 Kirill Miazine wrote:
 Thanks for the suggestion regarding quotas, but I'm really interested in
 an approach I just described. I want to be able to disable the
 possibility to leave mail on server after download.

Maybe you should disable POP in general an d offer IMAP only?

People who want their mail on their local computer can achive this
by copiyng from the (IMAP-)folder to the local folders. 


--Frank Elsner


Re: [Dovecot] forbid some users and machines ?

2009-12-07 Thread Frank Elsner
On Mon, 07 Dec 2009 14:00:45 +0100 Frank Bonnet wrote:
 Hello
 
 1 - Is there a way to forbid log in of some Dovecot's users ?
  I use NIS as authentication mechanism.
 
 2 - Is it possible to forbid some machines (IP addresses ) to
  connect to Dovecot server ?

Yes, with Linux you can use iptables.



--Frank Elsner


Re: [Dovecot] Filename keeps changing issue

2009-12-04 Thread Frank Elsner
On Fri, 04 Dec 2009 16:20:15 +0100 Paul Ezvan wrote:

  [ ... ]

 When I do ls Maildir/.Travail.Linux.Arch Linux/cur/ it says ls:
   ^

Unquoted blank? Guess it should read 

ls Maildir/.Travail.Linux.Arch\ Linux/cur/


--Frank Elsner


[Dovecot] ntpd / Time just moved backwards

2009-09-11 Thread Frank Elsner

Hello *,

strange happening yesterday. See this logfile lines:

Sep 10 20:45:52 seymour ntpd[9104]: synchronized to 192.53.103.108, stratum 1
Sep 10 20:58:07 seymour ntpd[9104]: synchronized to 134.34.3.18, stratum 1
Sep 10 21:21:02 seymour dovecot: dovecot: Fatal: Time just moved backwards by 
434 seconds. [ ... ]
Sep 10 21:26:36 seymour ntpd[9104]: no servers reachable
Sep 10 21:42:56 seymour ntpd[9104]: synchronized to 192.53.103.104, stratum 1
Sep 10 21:50:55 seymour ntpd[9104]: time reset +434.824810 s
Sep 10 21:54:09 seymour ntpd[9104]: synchronized to 130.149.7.71, stratum 2
Sep 10 21:55:07 seymour ntpd[9104]: synchronized to 129.69.1.153, stratum 1


What might happened? And where to ask also?


--Frank Elsner


Re: [Dovecot] External auth database process

2009-09-04 Thread Frank Elsner
On Fri, 4 Sep 2009 13:51:48 +0100 Aaron Roberts wrote:
 Hi,
 Is it possible to call a completely external process to authenticate users in 
 dovecot?

Yes, take a look at http://wiki.dovecot.org/AuthDatabase/CheckPassword


--Frank Elsner


[Dovecot] Handling of file maildirsize

2009-07-24 Thread Frank Elsner

Hello,

My exim is doing the deliveries, dovecot handles POP/IMAP.

Exim Log shows:

2009-07-24 14:03:40 1MUJUy-0001Jr-B0 == u...@domain.tu-berlin.de R=maildir_user 
T=maildir_delivery defer (2): No such file or directory: while opening or 
reading /var/Mail/Boxes/u/user/maildirsize

2009-07-24 14:20:32 1MUJUy-0001Jr-B0 = user u...@domain.tu-berlin.de 
F=u...@domain.tu-berlin.de R=maildir_user T=maildir_delivery S=2061 QT=16m52s 
DT=0s


The user was active using IMAP at 14:03:4*. 

Therefor there must be a short period of time where no maildirsize exists.

Can this really happen? If yes, could this behaviour be changed?


Kind regards,
Frank Elsner


Re: [Dovecot] Users with large (4GB) inboxes crippling dovecot

2009-05-28 Thread Frank Elsner
On Thu, 28 May 2009 02:07:01 -0700 (PDT) robforrest wrote:
 
 Hi all,
 
 I'm new here and would very much appreciate any help you can give me.
 
 We are running a rather outdated mail server that until recently has been
 running beautifully.  Under the pretense of it is ain't broke, don't fix
 it it hasn't been updated so is running Fedora Core 4 and dovecot v0.99.14.
 
 What is happening is that as users log in (via thunderbird), they are shown
 the contents of their mailboxes.  However, when they try and access a given
 email, they get no response even if they wait upwards of 10 minutes.  I
 believe that the problem has arisen from their huge inboxes, several users
 have inboxes in excess of 4GB.
 
 Do any of you know how I could split these large mbox files down in to
 manageable chunks of 1GB?

I don't know. I know that maildir is far better for this situation.
You should 
- Upgrade dovecot
- Convert to maildir format

For the conversion to maildir refer to the discussion on this list.


--Frank Elsner


Re: [Dovecot] Unknown quota backend / imap dump-capability process returned 89

2009-01-09 Thread Frank Elsner
On Fri, 09 Jan 2009 13:58:35 -0500 Timo Sirainen wrote:
 On Wed, 2008-12-17 at 14:12 +0100, Frank Elsner wrote:
  IEffective uid=65534, gid=65534, home=/tmp
  FUnknown quota backend: 0
 
 It sees QUOTA=0 or QUOTA=0:something environment for some reason.
 With this patch you'll see the entire environment value:
 http://hg.dovecot.org/dovecot-1.1/rev/3c2f9e53eb5c
 
  plugin:
quota: maildir:INBOX
 
 This looks correct.
 
  The mail_executable: /usr/dovecot/libexec/dovecot/imap-quota currently 
  reads:
 
 Have you tried without your own mail_executable?
 
 I don't really see how this error is possible with your configuration.

Mee too, can't remember the situation. too much changes in the meantime.

Meanwhile the problem is solved. 
Must have been a combination of several (maybe stupid) error of mine. 
Thanks anyway.


--Frank Elsner


Re: [Dovecot] verbose_proctitle not working with post-login

2009-01-09 Thread Frank Elsner
On Thu, 08 Jan 2009 15:41:17 -0500 Timo Sirainen wrote:
 On Wed, 2008-12-24 at 16:25 +0100, Frank Elsner wrote:
  Happy Xmas,
  
  when using a post-login procedure the verbose_proctitle = yes has no 
  effect.
  
  If it is feature
  then
   please explain
  else
   please fix the bug
  fi
 
 I suppose you mean you modified mail_executable to point to your own
 script? In that case it's really a bug in your script. Or I suppose also
 a bug in Dovecot's documentation. Updated:
 
 http://wiki.dovecot.org/PostLoginScripting
 
 Note the added $* in
 
 exec /usr/local/libexec/dovecot/imap $*

Thanks, now it works as desired.

But ...  In http://wiki.dovecot.org/PostLoginScripting
the example for Last-login tracking says

Finally execute the imap/pop3 binary. If you use both, you'll need two 
scripts.

Is this a must?

My dovecot.conf currently contains

mail_executable = /usr/dovecot/libexec/dovecot/post-login imap
and
mail_executable = /usr/dovecot/libexec/dovecot/post-login pop3

And post-login reads

| #!/bin/bash
| 
| PROTO=$1
| 
| # Set QUOTA_RULE from exim's quota table
|   ...
|   ...
| export QUOTA_RULE
| 
| exec -a $PROTO [$USER $IP] /usr/dovecot/libexec/dovecot/$PROTO

This works. 
ps -ef shows protocol, username and ip as if calling pop3/imap directly.


--Frank Elsner


[Dovecot] verbose_proctitle not working with post-login

2008-12-24 Thread Frank Elsner
Happy Xmas,

when using a post-login procedure the verbose_proctitle = yes has no effect.

If it is feature
then
 please explain
else
 please fix the bug
fi


--Frank Elsner


Re: [Dovecot] POP3 Immediate Connection Termination

2008-12-22 Thread Frank Elsner
On Mon, 22 Dec 2008 14:28:12 -0800 Kat Wisnosky wrote:
 mail_executable(pop3): /usr/lib/dovecot/pop3-login

Replace this by

mail_executable(pop3): /usr/lib/dovecot/pop3


--Frank Elsner


[Dovecot] Unknown quota backend / imap dump-capability process returned 89

2008-12-17 Thread Frank Elsner

Hi all,

I want to use maildir++ quota with dovecot but when starting I get:

 service dovecot start
Starting IMAP-Service (dovecot 1.1.7)
ILoading modules from directory: /usr/dovecot/lib/dovecot/imap
IModule loaded: /usr/dovecot/lib/dovecot/imap/lib10_quota_plugin.so
IModule loaded: /usr/dovecot/lib/dovecot/imap/lib11_imap_quota_plugin.so
IModule loaded: /usr/dovecot/lib/dovecot/imap/lib20_mail_log_plugin.so
IEffective uid=65534, gid=65534, home=/tmp
FUnknown quota backend: 0
Error: imap dump-capability process returned 89
Fatal: Invalid configuration in /usr/local/dovecot/etc/dovecot.conf


 dovecot -n
# 1.1.7: /usr/local/dovecot/etc/dovecot.conf
# OS: Linux 2.6.27 i686 Fedora Core release 6 (Zod) ext3
base_dir: /var/run/dovecot/
ssl_cert_file: /usr/local/etc/seymour.crt
ssl_key_file: /usr/local/etc/seymour.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot//login
login_executable: /usr/dovecot/libexec/dovecot/imap-login
login_greeting: c64.shuttle.de - Dovecot ready.
login_log_format_elements: %u %r %c
mail_max_userip_connections: 25
verbose_proctitle: yes
first_valid_uid: 100
last_valid_uid: 65534
mail_location: maildir:/var/mail/%u:INDEX=MEMORY
mail_debug: yes
maildir_copy_preserve_filename: yes
mail_executable: /usr/dovecot/libexec/dovecot/imap-quota
mail_plugins: mail_log quota imap_quota
mail_plugin_dir: /usr/dovecot/lib/dovecot/imap
mail_log_prefix: %Us(%u,%r): 
mail_log_max_lines_per_sec: 0
imap_client_workarounds: netscape-eoh tb-extra-mailbox-sep
imap_logout_format: [%i/%o]
auth default:
  executable: /usr/dovecot/libexec/dovecot/dovecot-auth
  master_user_separator: /
  count: 2
  passdb:
driver: pam
args: dovecot
  passdb:
driver: passwd-file
args: /usr/dovecot/etc/masters
  userdb:
driver: passwd
plugin:
  quota: maildir:INBOX
  mail_log_events: delete undelete expunge copy mailbox_delete


The mail_executable: /usr/dovecot/libexec/dovecot/imap-quota currently reads:

| #!/bin/sh
| 
| /usr/bin/logger -p mail.info -t dovecot imap-quota: Starting for $USER
| 
| exec /usr/dovecot/libexec/dovecot/imap


In the future this procedure will provide QUOTA_RULESs per usr.


Any pointers welcome.

--Frank Elsner




Re: [Dovecot] Dovecot 1.1.x or 1.2, which way to go for Kolab Server?

2008-10-07 Thread Frank Elsner
On Tue, 07 Oct 2008 15:15:38 +0300 Timo Sirainen wrote:
 On Tue, 2008-10-07 at 13:08 +0200, Sascha Wilde wrote:
  was written the other day we started to use Dovecot 1.2 for our Kolab
  with Dovecot project, but it turned out that there are quite a bunch of
  issues with 1.2 (which is ok, as it hasn't even been announced as beta
  till now).
 
 I'd like to hear these issues, since I'm not aware of any v1.2-specific
 bugs.
 
  How far from being production ready is 1.2 in your view?  
 
 Depends on how fast people report bugs to me.. I've been using it for my
 mails without problems for weeks. And about 3 other people also reported
 in the last few days that they're running it for their small mail
 servers.

Me too.


--Frank Elsner


Re: [Dovecot] 1.2.alpha1: file_dotlock_open() failed with subscription file

2008-09-11 Thread Frank Elsner
On Wed, 10 Sep 2008 21:48:01 +0300 Timo Sirainen wrote:
 On Wed, 2008-09-10 at 11:13 +0200, Frank Elsner wrote:
  Sep 10 01:28:38 seymour dovecot: IMAP(steffen,192.168.28.31): 
  fchown(/home/Mail/steffen/subscriptions.lock) failed: Operation not 
  permitted
 
 This'll improve the error message:
 http://hg.dovecot.org/dovecot-1.2/rev/c22b7db8c173
 
  File permissions are:
  
  -rw--- 1 steffen elsner 124 Aug 22 12:51 
  /home/Mail/steffen/subscriptions
 
 What about /home/Mail/steffen directory's? It's probably trying to
 preserve its group. If so, either change the group or chmod g+s it or
 give mail process permission for that group.

# ls -dal /home/Mail/steffen
drwxr-x--- 19 steffen mail 4096 Sep 10 22:12 /home/Mail/steffen/


--Frank Elsner


Re: [Dovecot] 1.2.alpha1: file_dotlock_open() failed with subscription file

2008-09-11 Thread Frank Elsner
On Thu, 11 Sep 2008 11:12:05 +0300 Timo Sirainen wrote:
 On Thu, 2008-09-11 at 09:54 +0200, Frank Elsner wrote:
  On Wed, 10 Sep 2008 21:48:01 +0300 Timo Sirainen wrote:
   On Wed, 2008-09-10 at 11:13 +0200, Frank Elsner wrote:
Sep 10 01:28:38 seymour dovecot: IMAP(steffen,192.168.28.31): 
fchown(/home/Mail/steffen/subscriptions.lock) failed: Operation not 
permitted
   
   This'll improve the error message:
   http://hg.dovecot.org/dovecot-1.2/rev/c22b7db8c173
   
File permissions are:

-rw--- 1 steffen elsner 124 Aug 22 12:51 
/home/Mail/steffen/subscriptions
   
   What about /home/Mail/steffen directory's? It's probably trying to
   preserve its group. If so, either change the group or chmod g+s it or
   give mail process permission for that group.
  
  # ls -dal /home/Mail/steffen
  drwxr-x--- 19 steffen mail 4096 Sep 10 22:12 /home/Mail/steffen/
 
 Does it need to have mail group? I'd say chgrp it to elsner.

No. Changed.


Thanks, Frank Elsner


[Dovecot] 1.2.alpha1: file_dotlock_open() failed with subscription file

2008-09-10 Thread Frank Elsner

Hi *,

running dovecot 1.2.alpha1 I find the following messages in the log:

Sep 10 01:28:38 seymour dovecot: IMAP(steffen,192.168.28.31): 
fchown(/home/Mail/steffen/subscriptions.lock) failed: Operation not permitted
Sep 10 01:28:38 seymour dovecot: IMAP(steffen,192.168.28.31): 
file_dotlock_open() failed with subscription file 
/home/Mail/steffen/subscriptions: Operation not permitted
Sep 10 01:28:38 seymour dovecot: IMAP(steffen,192.168.28.31): 
fchown(/home/Mail/steffen/subscriptions.lock) failed: Operation not permitted
Sep 10 01:28:38 seymour dovecot: IMAP(steffen,192.168.28.31): 
file_dotlock_open() failed with subscription file 
/home/Mail/steffen/subscriptions: Operation not permitted
Sep 10 01:28:52 seymour dovecot: IMAP(steffen,192.168.28.31): 
fchown(/home/Mail/steffen/subscriptions.lock) failed: Operation not permitted
Sep 10 01:28:52 seymour dovecot: IMAP(steffen,192.168.28.31): 
file_dotlock_open() failed with subscription file 
/home/Mail/steffen/subscriptions: Operation not permitted

File permissions are:

-rw--- 1 steffen elsner 124 Aug 22 12:51 /home/Mail/steffen/subscriptions

And finally the output of dovecot -n reads:

# 1.2.alpha1: /usr/local/dovecot/etc/dovecot.conf
base_dir: /var/run/dovecot/
ssl_cert_file: /usr/local/etc/seymour.crt
ssl_key_file: /usr/local/etc/seymour.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot//login
login_executable: /usr/dovecot/libexec/dovecot/imap-login
login_greeting: c64.shuttle.de - Dovecot ready.
login_log_format_elements: %u %r %c
login_processes_count: 2
verbose_proctitle: yes
first_valid_uid: 100
last_valid_uid: 65534
mail_location: maildir:/home/Mail/%u:INDEX=MEMORY
maildir_copy_preserve_filename: yes
mail_executable: /usr/dovecot/libexec/dovecot/imap
mail_plugin_dir: /usr/dovecot/lib/dovecot/imap
mail_log_prefix: %Us(%u,%r): 
mail_log_max_lines_per_sec: 100
imap_client_workarounds: netscape-eoh tb-extra-mailbox-sep
imap_logout_format: [%i/%o]
auth default:
  executable: /usr/dovecot/libexec/dovecot/dovecot-auth
  master_user_separator: /
  passdb:
driver: pam
args: dovecot
  passdb:
driver: passwd-file
args: /usr/dovecot/etc/masters
  userdb:
driver: passwd
plugin:
  mail_log_events: delete undelete expunge copy mailbox_delete


What's behind? Critical? How to solve?



Regards, Frank Elsner


Re: [Dovecot] Error starting dovecot

2008-09-06 Thread Frank Elsner
On Fri, 5 Sep 2008 20:09:07 -0300 Diego Ledesma wrote:
 
  [ ... ]

 I only installed dovecot-common package.
 Also, i setted protocols to none.
 
 Does anyone know why i get that error message?

Protocols none also means no imap.

BTW ... imap is a protocol :-)


--Frank Elsner


Re: [Dovecot] Error starting dovecot

2008-09-06 Thread Frank Elsner
On Sat, 6 Sep 2008 13:23:54 -0200 Diego Ledesma wrote:
 On Sat, Sep 6, 2008 at 10:57 AM, Frank Elsner
 [EMAIL PROTECTED] wrote:
  On Fri, 5 Sep 2008 20:09:07 -0300 Diego Ledesma wrote:
 
   [ ... ]
 
  I only installed dovecot-common package.
  Also, i setted protocols to none.
 
  Does anyone know why i get that error message?
 
  Protocols none also means no imap.
 
  BTW ... imap is a protocol :-)
 
 
  --Frank Elsner
 
 
 Oh. According to the comments in my dovecot.conf setting protocols to
 none means that only dovecot-auth is enabled...
 What should i write under Protocols to just enable that?

My dovecot.conf contains
protocols = imap imaps

BTW, Please keep the thread on the mailing list, Cced here.


--Frank Elsner


Re: [Dovecot] How to pull /var/mail mbox leftovers to Maildirs?

2008-07-04 Thread Frank Elsner
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 = STDIN) {
  # 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 = STDIN) {
  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;


Re: [Dovecot] maildirmake -q quota equivalent to set quota

2008-06-26 Thread Frank Elsner
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] imap-login processes

2008-05-16 Thread Frank Elsner
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=faizalmi, 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


Re: [Dovecot] UID inserted in the middle of mailbox errors

2008-03-28 Thread Frank Elsner
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] I/O leak: 0x804d580

2008-01-31 Thread Frank Elsner
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] I/O leak: 0x804d580

2008-01-21 Thread Frank Elsner

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   



[Dovecot] SYN flooding / pipe() failed: Too many open files

2007-12-13 Thread Frank Elsner
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] gssapi, kerberos and webmail

2007-09-14 Thread Frank Elsner
On Fri, 14 Sep 2007 10:02:39 +0200 Denis Cardon wrote:

  [ ... ]

 how do people on this mailing list handle kerberos authentication with 
 webmail? Do you use other kind of authentication on privileged port (ie 
 with access only from apache) and just do a login/nopassword 
 authentication (like an uid base authentication through ldapi:/// on an 
 ldap directory for example) ?

My squirrelmail talks imap to the server (localhost in my case) an does no
authentication by its own. I guess most webmailers work this way.


--Frank Elsner



[Dovecot] imap / 1,.0.5: Connection closed: Broken pipe

2007-09-14 Thread Frank Elsner
Hello *,

since the upgrade to version 1.0.5 (from 1.0.3) I observe lines of the form

   imap(): Connection closed: Broken pipe

in the logfile, which I've never seen before.


What's behind? Should I care about? 


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   



[Dovecot] Disconnected: Shutting down:

2007-09-11 Thread Frank Elsner

Hello,

dovecot-1.0.3 on Fedora 6 works perfect in general but sometimes the system 
becomes unresponsive and the log file shows tons of messages like this:


  ...   imap-login: Disconnected: Shutting down: 127.0.0.1, secured
  ...   pop3-login: Disconnected: Shutting down: aa.bb.cc.dd


Restarting dovecot helps, but what's behind? 
What can I do to prevent this?


dovecot -n output:

# 1.0.3: /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: 20
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: 20
  passdb:
driver: ldap
args: /usr/local/dovecot/etc/dovecot-ldap.conf
  userdb:
driver: static
args: uid=777 gid=12
plugin:
  quota: maildir:ignore=Trash


Best 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] UW-IMAP to Dovecot conversion - How to migrate the folders?

2007-08-22 Thread Frank Elsner
On Wed, 22 Aug 2007 07:11:24 -0600 Kyle Wheeler wrote:
 On Tuesday, August 21 at 02:06 PM, quoth Patrick - South Valley Internet:
  Thanks Kyle, but how do I convert the mbox-like IMAP folders into 
  something Dovecot can read with the new config?
 
 One way (the most straightforward) is to use any of the available 
 mbox-to-maildir converter scripts. Search google for the text mbox to 
 maildir and you should get references to a bunch of them.

I had success using perfect_maildir.pl, 
surf to http://perfectmaildir.home-dn.net/


--Frank Elsner



Re: [Dovecot] v1.1.alpha3 released

2007-08-13 Thread Frank Elsner
On Mon, 13 Aug 2007 15:10:53 +0300 Timo Sirainen wrote:
 http://dovecot.org/releases/1.1/alpha/dovecot-1.1.alpha3.tar.gz
 http://dovecot.org/releases/1.1/alpha/dovecot-1.1.alpha3.tar.gz.sig

Replaced 1.0.3 by 1.1.alpha3 but got many error messages

 

Aug 13 14:59:09 seymour dovecot: Dovecot v1.1.alpha3 starting up
Aug 13 14:59:20 seymour dovecot: imap-login: Login: user, aaa.bbb.ccc.ddd
Aug 13 14:59:20 seymour dovecot: IMAP(user): Corrupted mailbox list index file 
/home/user/MailDir/dovecot.list.index.uidmap: dir_size is smaller than record c
ount
Aug 13 14:59:20 seymour dovecot: IMAP(user): /home/user/MailDir/dovecot.list.i
ndex: Desync: uid_validity changed 1186740711 - 1187009960
Aug 13 14:59:20 seymour dovecot: IMAP(user): Corrupted mailbox list index file 
/home/user/MailDir/dovecot.list.index.uidmap: dir_size is smaller than record c
ount
Aug 13 14:59:20 seymour dovecot: IMAP(user): Log synchronization error at seq=6
,offset=636 for /home/user/MailDir/dovecot.list.index: Append with UID 1, but n
ext_uid = 2


--Frank Elsner



[Dovecot] auth_cache_...

2007-07-26 Thread Frank Elsner

Hello,

the dovecot-example.conf states:

# Authentication cache size in kilobytes. 0 means it's disabled.
# Note that bsdauth, PAM and vpopmail require cache_key to be set for caching
# to be used.
#auth_cache_size = 0
# Time to live in seconds for cached data. After this many seconds the cached
# record is no longer used, *except* if the main database lookup returns
# internal failure. We also try to handle password changes automatically: If
# user's previous authentication was successful, but this one wasn't, the
# cache isn't used. For now this works only with plaintext authentication.
#auth_cache_ttl = 3600

auth_cache_size = 0, does it mean cache can grow ad infinitum 
 or does it mean no cache at all ?


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] Convert plugin mbox to maildir has no effect

2007-04-12 Thread Frank Elsner
On Wed, 11 Apr 2007 23:10:53 +0200 guenther wrote:
 On Wed, 2007-04-11 at 08:57 +0200, Frank Elsner wrote:
  On Tue, 10 Apr 2007 17:58:03 +0200 guenther wrote:
   On Tue, 2007-04-10 at 17:06 +0300, Timo Sirainen wrote:
On Sun, 2007-04-08 at 23:26 +0200, Frank Elsner wrote:
 
 Apr  8 23:13:36 seymour dovecot: IMAP(migrant): Mailbox conversion: 
 Couldn't create mailbox directory .gnome2_private

Maildir uses . as hierarchy separator, so this filename is invalid.
I'm not sure if convert_skip_broken_mailboxes=yes should just cause
these to be ignored, but for now it doesn't..
   
   Just spotted the above error message (deleted previous posts already),
   and it strikes me as seriously odd.
   
   Dots in mbox file names are usually embedded (as in dovecot.org),
   where it makes sense, as opposed to beginning with a dot. Even worse,
   this particular name is kind of weird for a mail folder...
   
   However, this name is well known to me:
   
 [EMAIL PROTECTED] ~]$ ls -ld .gnome2_private
 drwx--  2 guenther users 4096 Jul 21  2005 .gnome2_private/
  
  Me Too :-)
 
 Hmm, so one of your users really got a mail folder named gnome2_private?
 Odd...

No, of course. It's one of the dot files, which nearly each application creates.

 Anyway, another idea hit me -- is this really an invalid name, as Timo
 said? I don't know the convert plugin and what it logs, and I don't know
 the exact details of Maildir either. However, creating a mail folder
 named gnome2_private in your MUA will result in a dir by that name
 with a leading dot. Just like the name in the error message, no?

Valid name or not, that's not the primary question.

What abot the idea to ignore directories and check the contents of files
for beeing am mail folder? If yes, then comes the question about the name.
 
   I'd check where the Maildir data actually is being created and what
   files are being attempted to convert. Almost looks like the Maildir dirs
   are being created in the users $HOME...
  
  No, dovecot.conf contains
 
 I did not want you to paste the settings again, but to check if the
 Maildir files are being created where you expect them. Grepping or
 changing conf files doesn't mean anything, if the running process
 doesn't use this particular version. ;)

The Maildir directory was created, but no folder converted.
BTW: Thanks for explaining trivia. :-)


--Frank Elsner
 
   guenther
 
 
 -- 
 char *t=[EMAIL PROTECTED];
 main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;il;i++){ i%8? c=1:
 (c=*++x); c128  (s+=h); if (!(h=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
 
 



Re: [Dovecot] Convert plugin mbox to maildir has no effect

2007-04-10 Thread Frank Elsner
On Tue, 10 Apr 2007 17:06:02 +0300 Timo Sirainen wrote:
 On Sun, 2007-04-08 at 23:26 +0200, Frank Elsner wrote:
  Apr  8 23:13:36 seymour dovecot: IMAP(migrant): Mailbox conversion: 
  Couldn't create mailbox directory .gnome2_private
 
 Maildir uses . as hierarchy separator, so this filename is invalid.
 I'm not sure if convert_skip_broken_mailboxes=yes should just cause
 these to be ignored, but for now it doesn't..

Could this behaviour be changed?

I guess it's not a rare case for installations with UW-IMAP and
would make the switch to dovecot much more attractive :-)


Regards, Frank Elsner 



Re: [Dovecot] Convert plugin mbox to maildir has no effect

2007-04-10 Thread Frank Elsner
On Tue, 10 Apr 2007 17:39:14 +0300 Timo Sirainen wrote:
 On Tue, 2007-04-10 at 16:15 +0200, Frank Elsner wrote:
  On Tue, 10 Apr 2007 17:06:02 +0300 Timo Sirainen wrote:
   On Sun, 2007-04-08 at 23:26 +0200, Frank Elsner wrote:
Apr  8 23:13:36 seymour dovecot: IMAP(migrant): Mailbox conversion: 
Couldn't create mailbox directory .gnome2_private
   
   Maildir uses . as hierarchy separator, so this filename is invalid.
   I'm not sure if convert_skip_broken_mailboxes=yes should just cause
   these to be ignored, but for now it doesn't..
  
  Could this behaviour be changed?
 
 Won't do anything to v1.0. Maybe for v1.0.1. Anyway already implemented
 to CVS HEAD (which will become v1.1):

Thanks. I'll give it a try.

  [ ... ]

  | plugin {
  |   convert_mail = mbox:~/:INBOX=/var/mail/%u
  |   convert_skip_broken_mailboxes=yes
  
  
  Currently this doesn't work :-(
 
 You mean it doesn't work because you have these dot-directories? It
 would work if you didn't have them..

Tell this to the .gnome* and similiar people :-)


--Frank



Re: [Dovecot] Convert plugin mbox to maildir has no effect

2007-04-08 Thread Frank Elsner
On Fri, 09 Mar 2007 15:58:59 +0200 Timo Sirainen wrote:
 On Fri, 2007-03-09 at 14:54 +0100, Sylvain Nemtua wrote:
  convert_mail: mbox:/var/mail:INBOX=/var/mail/%u
 
 This is most likely wrong. You're telling Dovecot that the user's
 non-INBOX mailboxes are in /var/mail. If you have only inboxes, set
 rather something like mbox:/some/empty/dir:INBOX=/var/mail/%
 u:INDEX=MEMORY
 
 Hmm. Since this seems to be so common problem, maybe I should make
 mbox::INBOX=/var/mail/%u work too..
 
  Any thoughts ? Is there a particular settings to use ? Anything wrong
  with my setup ?
 
 The real problem is that you didn't tell Dovecot to load the convert
 plugin:
 
 mail_plugins = convert

I have a similiar problem with dovecot 1.0.rc31.
Please note that /usr/dovecot is a link to /usr/local/dovecot on my system.


 /usr/dovecot/sbin/dovecot -n
# /usr/local/dovecot/etc/dovecot.conf
base_dir: /var/run/dovecot/
protocols: imap
listen: *:10143
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /var/run/dovecot//login
login_executable: /usr/dovecot/libexec/dovecot/imap-login
login_log_format_elements: USER=%u IP=%r
verbose_proctitle: yes
first_valid_uid: 100
last_valid_gid: 65534
mail_location: maildir:/home/%u/MailDir
maildir_copy_with_hardlinks: yes
maildir_copy_preserve_filename: yes
mail_executable: /usr/dovecot/libexec/dovecot/imap
mail_plugins: convert
mail_plugin_dir: /usr/dovecot/lib/dovecot/imap
imap_client_workarounds: netscape-eoh tb-extra-mailbox-sep
auth default:
  verbose: yes
  passdb:
driver: pam
args: dovecot
  userdb:
driver: passwd
plugin:
  convert_mail: mbox:~/:INBOX=/var/spool/mail/%u
  convert_skip_broken_mailboxes: no

But this setup gives 

 service dovecot start
Starting IMAP-Service (dovecot 1.0.rc31)Eopen(/.temp.seymour.elsner.lan.5894.59e
ab08fc33e142b) failed: Permission denied
Error: imap dump-capability process returned 89
   [FAILED]

Any pointer to overcome this problem welcome.


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] Convert plugin mbox to maildir has no effect

2007-04-08 Thread Frank Elsner

Sorry to answer my own question.

On Sun, 8 Apr 2007 22:36:05 +0200 Frank Elsner wrote:

  [ ... ]

 plugin:
   convert_mail: mbox:~/:INBOX=/var/spool/mail/%u
   convert_skip_broken_mailboxes: no

After changing this to

convert_mail = mbox:/home/%u:INBOX=/var/spool/mail/%u

 Because currently UW-IMAP is in use

convert_skip_broken_mailboxes = yes
 
  ...

  service dovecot start
 Starting IMAP-Service (dovecot 
 1.0.rc31)Eopen(/.temp.seymour.elsner.lan.5894.59e
 ab08fc33e142b) failed: Permission denied
 Error: imap dump-capability process returned 89
[FAILED]#

The above error disappeared and now the log shows:

Apr  8 23:13:36 seymour dovecot: imap-login: Login: USER=migrant, 
[192.168.28.53]
Apr  8 23:13:36 seymour dovecot: IMAP(migrant): Loading modules from directory: 
/usr/dovecot/lib/dovecot/imap
Apr  8 23:13:36 seymour dovecot: IMAP(migrant): Module loaded: 
/usr/dovecot/lib/dovecot/imap/lib20_convert_plugin.so
Apr  8 23:13:36 seymour dovecot: IMAP(migrant): Effective uid=1988, gid=100, 
home=/home/migrant
Apr  8 23:13:36 seymour dovecot: IMAP(migrant): mbox: 
data=/home/migrant:INBOX=/var/spool/mail/migrant
Apr  8 23:13:36 seymour dovecot: IMAP(migrant): mbox: root=/home/migrant, 
index=/home/migrant, inbox=/var/spool/mail/migrant
Apr  8 23:13:36 seymour dovecot: IMAP(migrant): mbox: 
data=/home/migrant:INBOX=/var/spool/mail/migrant
Apr  8 23:13:36 seymour dovecot: IMAP(migrant): mbox: root=/home/migrant, 
index=/home/migrant, inbox=/var/spool/mail/migrant
Apr  8 23:13:36 seymour dovecot: IMAP(migrant): maildir: 
data=/home/migrant/MailDir
Apr  8 23:13:36 seymour dovecot: IMAP(migrant): maildir: 
root=/home/migrant/MailDir, index=/home/migrant/MailDir, control=, inbox=
Apr  8 23:13:36 seymour dovecot: IMAP(migrant): Mailbox conversion: Couldn't 
create mailbox directory .gnome2_private
Apr  8 23:13:36 seymour dovecot: child 9905 (imap) returned error 89


--Frank Elsner