Re: 451 4.3.0 Temporary internal failure

2015-08-03 Thread Urban Loesch

Hi,

according to dovecot.conf lmtp stores all mails temporarily in "/tmp/" 
that are bigger than 256KB. You can change the directory in dovecot.conf 
or you should increase the /tmp/ size. It could be that /tmp/ is a 
ramdisk. Check /etc/fstab.


Which os you are using?
What does "df -hT" say?
What does /etc/fstab say?

Regards
Urban

Am 03.08.2015 um 19:54 schrieb Nutsch:

Hi

i can send mails without problems in any direction, except when the
attachments are bigger than 1 MB. I alway get this message

relay=mail.example.net[private/dovecot-lmtp], delay=35155,
delays=35155/0.03/0.02/0.09, dsn=4.3.0, status=deferred (host
mail.example.net[private/dovecot-lmtp] said: 451 4.3.0 Temporary
internal failure (in reply to end of DATA command)) Aug  3 19:34:34
46185 dovecot: lmtp(6477): Disconnect from local: Temporary internal
failure (in DATA)


postconf message_size_limit
message_size_limit = 0
postconf mail_size_limit
mailbox_size_limit = 0

i can send big attachments to an extern address but not from intern to
intern. Someone said that maybe the tmp directory is the problem so i
checked the size.

ls -ald /tmp/; df -h /tmp/
drwxrwxrwt 4 root root 80 Aug  3 19:44 /tmp/
Filesystem  Size  Used Avail Use% Mounted on
-   1,0M  4,0K 1020K   1% /tmp
root@example:/tmp#

is there a connection between lmtp and the size of the tmp directory?
And why is the size 1,0M, tmp is not an own partion. Should i increase
the size? And if yes, how?

df -h
Filesystem  Size  Used Avail Use% Mounted on
/dev/vzfs80G   12G   69G  15% /

???

br. noctua


451 4.3.0 Temporary internal failure

2015-08-03 Thread Nutsch

Hi

i can send mails without problems in any direction, except when the 
attachments are bigger than 1 MB. I alway get this message


relay=mail.example.net[private/dovecot-lmtp], delay=35155, 
delays=35155/0.03/0.02/0.09, dsn=4.3.0, status=deferred (host 
mail.example.net[private/dovecot-lmtp] said: 451 4.3.0 Temporary 
internal failure (in reply to end of DATA command)) Aug  3 19:34:34 
46185 dovecot: lmtp(6477): Disconnect from local: Temporary internal 
failure (in DATA)



postconf message_size_limit
message_size_limit = 0
postconf mail_size_limit
mailbox_size_limit = 0

i can send big attachments to an extern address but not from intern to 
intern. Someone said that maybe the tmp directory is the problem so i 
checked the size.


ls -ald /tmp/; df -h /tmp/
drwxrwxrwt 4 root root 80 Aug  3 19:44 /tmp/
Filesystem  Size  Used Avail Use% Mounted on
-   1,0M  4,0K 1020K   1% /tmp
root@example:/tmp#

is there a connection between lmtp and the size of the tmp directory? 
And why is the size 1,0M, tmp is not an own partion. Should i increase 
the size? And if yes, how?


df -h
Filesystem  Size  Used Avail Use% Mounted on
/dev/vzfs80G   12G   69G  15% /

???

br. noctua


Re: How to import an mbox to an existing user as a new mailbox

2015-08-03 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 3 Aug 2015, Paul Hoffman wrote:

On 2 Aug 2015, at 23:27, Steffen Kaiser wrote:

On Sun, 2 Aug 2015, Paul Hoffman wrote:

Greetings. I have a bunch of mbox files that I want to import to an 
existing user, each into a new mailbox. That is, I want to import the file 
project1.mbox to user Foo, into a newly-created mailbox called "Project 
1". Is there a dovecot tool to do this on the server?


do you have access to the file system of the mail storage? Can you call 
doveadm on the server? What mail storage do you use now, Maildir, mbox, ... 
?


Sorry for being unclear earlier. Yes, yes, mbox.


copy project1.mbox to '/path/to/user/mail/storage/Project 1.mbox' and 
make sure, the user has file system rights to access the file at all.


Maybe, you need to add the new mailbox to the user's subscription file, in 
order to have it show up.


- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBVb93wnz1H7kL/d9rAQIsaQf8DMKWBQkIDcpj5T7+c4Fo4hK8CcSllEq3
1bjERFLVDXxMnMzInhwtUjlcoCnjgSI0D7bC4xe6xaO/viXCSFi94H56nGMrApih
0wkD0e3Dd3P44T+C/X1hZl6eAj6PPKETvWt8z00amUrtyhXhpGWggVeqQYob2YyM
qprG3SuYqdsxfDGX5wOUiq0xtkLfQUQl5m60mwOiSnsv7VOCPsUl6y7XSgfb3wKv
CBD23kL6cnsbLmrtqNXxGxD9RAMrTqpKEBRYw6Tj8K1xRJxbC7ysblDXK6S9ZqCi
gjIs4m7pll8Ap8I45xXBD6gEZFfUy7qfhSWzkom073KivesGgh5MSw==
=BbrX
-END PGP SIGNATURE-


Re: How to import an mbox to an existing user as a new mailbox

2015-08-03 Thread Paul Hoffman

On 2 Aug 2015, at 23:27, Steffen Kaiser wrote:


On Sun, 2 Aug 2015, Paul Hoffman wrote:

Greetings. I have a bunch of mbox files that I want to import to an 
existing user, each into a new mailbox. That is, I want to import the 
file project1.mbox to user Foo, into a newly-created mailbox called 
"Project 1". Is there a dovecot tool to do this on the server?


do you have access to the file system of the mail storage? Can you 
call doveadm on the server? What mail storage do you use now, Maildir, 
mbox, ... ?


Sorry for being unclear earlier. Yes, yes, mbox.

So, I take it this is a doveadm command. :-) Will this be just "import", 
or a combination of "mailbox" and "import"?


--Paul Hoffman


Renaming shared mailbox makes it disappear from sharee

2015-08-03 Thread Andy Csillag
I've run into an interesting thing.  If a mailbox has been shared to a second 
user (I'll call it the sharee), and there are subfolders on that mailbox, and 
the sharee renames one of those subfolders, it disappears from view to the 
sharee.  The only way I've been able discover to fix it is to have the sharee 
create a new subfolder -- then the renamed folder shows up again; in addition 
to the newly created folder.

For example, fi...@example.org shares it's INBOX to sec...@example.org.  
There's a folder INBOX/thing, which second@ renames to INBOX/renamed (ACLs 
permitting).  second@ can no longer can see INBOX/renamed (or INBOX/thing for 
that matter), via IMAP's LIST command.  But if second@ creates a new folder 
INBOX/other, INBOX/renamed is now visible.

This is very reproducible for me.  I also tried it without the imappostlogin 
bit (in the dovecot -n).  Anyone else run into this?

No NFS is involved, this is a single machine setup.

Output of dovecot -n
# 2.2.18: /dovecot/etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.8
# OS: Linux 2.6.32-504.el6.x86_64 x86_64 CentOS release 6.6 (Final) xfs
auth_master_user_separator = *
auth_mechanisms = plain login
dict {
  acl = mysql:/dovecot/etc/dovecot/dovecot-dict-sql.conf.ext
}
disable_plaintext_auth = no
lda_mailbox_autosubscribe = yes
mail_home = mdbox:/dovecot/var/homedirs/%2Mu/%2.2Mu/%u
mail_location = mdbox:/dovecot/var/mailboxes/%2Mu/%2.2Mu/%u
mail_plugins = acl
mail_shared_explicit_inbox = yes
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date index ihave duplicate 
vnd.dovecot.pipe vnd.dovecot.filter vnd.dovecot.execute
namespace {
  list = children
  location = mdbox:/dovecot/var/mailboxes/%%2Mu/%%2.2Mu/%%u
  prefix = shared/%%u/
  separator = /
  subscriptions = no
  type = shared
}
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
    special_use = Drafts
  }
  mailbox Junk {
    special_use = Junk
  }
  mailbox Sent {
    special_use = Sent
  }
  mailbox "Sent Messages" {
    special_use = Sent
  }
  mailbox Trash {
    special_use = Trash
  }
  prefix =
}
passdb {
  args = /dovecot/etc/dovecot/mastership-sql.conf
  driver = sql
  master = yes
  pass = yes
}
passdb {
  args = /dovecot/etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  acl = vfile
  acl_shared_dict = proxy::acl
  sieve_after = /dovecot/etc/dovecot/sieve/99-autofile.sieve
  sieve_after2 = /dovecot/etc/dovecot/sieve/98-notify-biz-address.sieve
  sieve_execute_bin_dir = /dovecot/etc/dovecot/sieve-execute
  sieve_execute_socket_dir = sieve-execute
  sieve_extensions = +vnd.dovecot.execute +vnd.dovecot.filter +vnd.dovecot.pipe
  sieve_filter_bin_dir = /dovecot/etc/dovecot/sieve-filter
  sieve_filter_socket_dir = sieve-filter
  sieve_pipe_bin_dir = /dovecot/etc/dovecot/sieve-pipe
  sieve_pipe_socket_dir = sieve-pipe
  sieve_plugins = sieve_extprograms
}
postmaster_address = postmas...@domain.com
sendmail_path = /dovecot/sbin/sendmail
service dict {
  unix_listener dict {
    user = dovecot
  }
}
service imap-postlogin {
  executable = script-login /dovecot/etc/dovecot/imappostlogin
  user = $default_internal_user
}
service imap {
  executable = imap imap-postlogin
}
ssl = no
userdb {
  args = uid=dovecot gid=dovecot home=/dovecot/var/mailboxes/%%2Mu/%%2.2Mu/%%u
  driver = static
}
protocol lmtp {
  mail_plugins = acl sieve
}
protocol lda {
  mail_plugins = acl sieve
}
protocol imap {
  mail_plugins = acl imap_acl
}

 


Structure of dovecot.index.pvt.log

2015-08-03 Thread Miloslav Hůla

Hi,

we are migrating from Cyrus to Dovecot and I would like to migrate seen 
flags for shared folder too.


We have Dovecot 2.2.13 prepared as:
location = 
maildir:/vmail/user/%%n/Maildir:INDEXPVT=/vmail/user/%n/Maildir/Shared/%%n


Now I'm looking for 'dovecot.index.pvt.log' syntax to be able migrate 
Seen flags. All I know is, that index contains messages UID and Seen flag.


May I ask you for a link to doc (if it exists) or into a source code? 
Should I care about 'dovecot.index.pvt.log' timestamps?


Thank you, Milo


Re: sharing INBOX with ACL -> share all folders

2015-08-03 Thread Chris Ross

> On Jul 28, 2015, at 05:13, Marco Giunta  wrote:
> 
> Hi at all,
> I have a problem with ACL; I want to share INBOX and Sent folder to an other 
> user, but when I configure ACL on INBOX, all folders are shared (Sent, Junk, 
> Draft, Trash, etc)

  Hello, Marco.  Unfortunately I don’t know why you are seeing the behavior you 
are, and hope that someone else will be able to help.

  However, you seem to have accomplished something I’m wanting to do, and have 
as yet been unable to get working.  I have a Users INBOX that I want to share 
to other users, but something is wrong with the way I’ve configured ACLs and 
sharing.

  Perhaps we could discuss off-list more of what your configuration looks like, 
and how you got there?  I’m running on FreeBSD with the ports system version of 
 dovecot2 2.2.16, currently, although I think I’m due an upgrade.

  You say you’re have "My Dovecot instance use a single user”, and I think 
that’s different than I.  My Maildir directories and files are all owned by the 
UNIX user that owns the file.  Maybe this is causing me the permissions 
problems I’m seeing.  Is having it all running as one [UNIX] user a typical 
configuration for dovecot2?  Or just typical of installations using ACLs?

  Thank you.

 - Chris



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Dovecot 2.2.18 Panic: file index-mail-binary.c

2015-08-03 Thread Michael Borgelt
Hi.
I have tried this email also with thunderbird imap which works. So this is
as special Problem with the imap-module of the Horde framework. I will do
some more debugging this evening.

My Horde framework has the following Versions:
Horde Groupware Webmail Edition 5.2.7
Horde (horde) 5.2.6
Horde_Imap_Client 2.29.1

Regards, Michael.

Am 28.07.2015 um 09:12 schrieb Michael Borgelt:
> Hi,
> I got the following in my dovecot log's on an particular email message
> with dovecot-imap.
>
> ---snip---
> Jul 28 08:42:11 hermes dovecot: imap(mborgelt): Panic: file
> index-mail-binary.c: line 354 (blocks_count_lines): assertion failed:
> (ret == -1)
> Jul 28 08:42:11 hermes dovecot: imap(mborgelt): Error: Raw backtrace:
> /usr/lib/dovecot/libdovecot.so.0(+0x740f2) [0xb75780f2] ->
> /usr/lib/dovecot/libdovecot.so.0(+0x74212) [0xb7578212] ->
> /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0xb7520484] ->
> /usr/lib/dovecot/libdovecot-storage.so.0(+0x99bbb) [0xb76a] ->
> /usr/lib/dovecot/libdovecot-storage.so.0(index_mail_get_binary_stream+0x92)
> [0xb76ac122] ->
> /usr/lib/dovecot/libdovecot-storage.so.0(mail_get_binary_stream+0x72)
> [0xb7639172] ->
> /usr/lib/dovecot/libdovecot-storage.so.0(imap_msgpart_open+0x183)
> [0xb76ed323] -> dovecot/imap(+0x1a2b4) [0x800c32b4] ->
> dovecot/imap(+0x18907) [0x800c1907] ->
> dovecot/imap(imap_fetch_more+0x3d) [0x800c2aad] ->
> dovecot/imap(cmd_fetch+0x359) [0x800b5299] ->
> dovecot/imap(command_exec+0x4f) [0x800bff1f] -> dovecot/imap(+0x15c3b)
> [0x800bec3b] -> dovecot/imap(+0x15cc9) [0x800becc9] ->
> dovecot/imap(client_handle_input+0x13d) [0x800bf03d] ->
> dovecot/imap(client_input+0x95) [0x800bf445] ->
> /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x5e) [0xb758c2fe] ->
> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0xe2)
> [0xb758d522] ->
> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x1a)
> [0xb758c38a] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x49)
> [0xb758c419] ->
> /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x25) [0xb75261a5]
> -> dovecot/imap(main+0x384) [0x800b1f54] ->
> /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xf3)
> [0xb735ea63] -> dovecot/imap(+0x913a) [0x800b213a]
> Jul 28 08:42:11 hermes dovecot: imap(mborgelt): Fatal: master:
> service(imap): child 30866 killed with signal 6 (core dumped)
> ---snip---
>
> The dovecot -n output.
> ---snip---
> # 2.2.18: /etc/dovecot/dovecot.conf
> # OS: Linux 4.1.3 i686 Debian stretch/sid
> lda_mailbox_autocreate = yes
> login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e
> %c %k
> mail_location = maildir:~/Maildir
> mailbox_list_index = yes
> managesieve_notify_capability = mailto
> managesieve_sieve_capability = fileinto reject envelope
> encoded-character vacation subaddress comparator-i;ascii-numeric
> relational regex imap4flags copy include variables body enotify
> environment mailbox date ihave
> namespace inbox {
>   inbox = yes
>   location =
>   mailbox Drafts {
> special_use = \Drafts
>   }
>   mailbox Junk {
> special_use = \Junk
>   }
>   mailbox Sent {
> special_use = \Sent
>   }
>   mailbox "Sent Messages" {
> special_use = \Sent
>   }
>   mailbox Trash {
> special_use = \Trash
>   }
>   prefix =
> }
> passdb {
>   driver = pam
> }
> plugin {
>   antispam_allow_append_to_spam = no
>   antispam_backend = pipe
>   antispam_debug_target = syslog
>   antispam_pipe_program = /usr/local/bin/sa-learn.sh
>   antispam_pipe_program_notspam_arg = --ham
>   antispam_pipe_program_spam_arg = --spam
>   antispam_spam = Junk
>   antispam_trash = Trash
>   antispam_verbose_debug = 1
>   sieve = ~/.dovecot.sieve
>   sieve_dir = ~/sieve
>   sieve_vacation_send_from_recipient = yes
> }
> protocols = " imap sieve"
> ssl_cert =  ssl_cipher_list =
> ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
> ssl_dh_parameters_length = 2048
> ssl_key =  ssl_prefer_server_ciphers = yes
> ssl_protocols = !SSLv3 !SSLv2
> userdb {
>   driver = passwd
> }
> protocol lda {
>   log_path = /var/log/dovecot_deliver.log
>   mail_plugins = sieve
> }
> protocol imap {
>   mail_plugins = antispam
> }
> ---snip---
>
> gdb output:
> GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
> Copyright (C) 2014 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> 
> Thi