Re: [Dovecot] Sieve is not getting the propper RCPT from the LMTP daemon

2014-02-11 Thread Greg Rivers

On Tue, 11 Feb 2014, Stephan Bosch wrote:


On 12/24/2013 2:15 PM, klondike wrote:

The relevant lines for the test e-mail I sent are these:
sieve: info: started log at Dec 24 13:37:23.
main script: line 9: info: DEBUG: envelope to `klondike (at) gentoo.org'.
main script: line 10: info: DEBUG: envelope from `klondike (at) gentoo.org'.
info: msgid=<52b97ff7.6050...@gentoo.org>: stored mail into mailbox 'INBOX'.


A similar issue was mentioned and solved a little later on the mailing
list, so that is why I forgot about this one. That involved Sendmail though:

http://www.dovecot.org/list/dovecot/2014-January/094385.html



If you read further down that thread, you'll see that both Miquel van 
Smoorenburg and Steffen Kaiser pointed out that this solution only works 
in the case where there is one and only one recipient.  So it's not a 
general solution.


Because of that, I am using dovecot LDA instead of LMTP until I can write 
a custom sendmail ruleset to pass +detail to LMTP.  Here's my sendmail LDA 
configuration ($h contains the detail part of the ID):


FEATURE(`local_procmail', `/usr/local/libexec/dovecot/dovecot-lda', 
`dovecot-lda -a $u+$h -d $u')

--
Greg


Re: [Dovecot] Getting Director Proxy Working

2014-02-11 Thread Murray Trainer
 
- Original Message -
From: "Murray Trainer" 
To:
Cc:
Sent:Wed, 12 Feb 2014 09:25:24 +0800
Subject:[Dovecot] Getting Director Proxy Working

 Hi All,

 I can't get directory proxying of pop3 and imap working.  The
 director stuff appears to be OK - see below.   The ldap
 authentication is working on the backend mail server.  I just get
 connection refused when I telnet to the proxy on the pop3 and imap
 ports.  Nothing appears to be running on the pop3 and imap ports
 despite the lines in the config below.  I am not sure what to do
from
 here as nothing is showing up in the logs.   Some assistance would
be
 greatly appreciated.

 Thanks

 Murray

 # doveadm director status
 mail server ip
 vhosts 

 users
 x.x.x.x  
 100
 
 0
 # doveadm director map
 user   

 mail server ip expire time

 # doveconf -n
 # 2.1.7: /etc/dovecot/dovecot.conf
 # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.1
 auth_cache_size = 32 M
 auth_cache_ttl = 2 hours
 auth_debug = yes
 auth_mechanisms = plain login
 auth_verbose = yes
 base_dir = /var/run/dovecot/
 director_mail_servers = x.x.x.x
 director_servers = y.y.y.y
 disable_plaintext_auth = no
 mail_debug = yes
 passdb {
   args = nopassword=y proxy=y
   driver = static
 }
 service director {
   fifo_listener login/proxy-notify {
     mode = 0666
     user = $default_login_user
   }
   inet_listener {
     port = 9090
   }
   unix_listener director-userdb {
     mode = 0600
   }
   unix_listener login/director {
     mode = 0666
   }
 }
 service imap-login {
   executable = imap-login director
   inet_listener imap {
     port = 143
   }
 }
 service pop3-login {
   executable = pop3-login director
   inet_listener pop3 {
     port = 110
   }
 }
 ssl_cert =

Sorry, full dovecot config below:

# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.1
auth_cache_size = 32 M
auth_cache_ttl = 2 hours
auth_debug = yes
auth_mechanisms = plain login
auth_verbose = yes
base_dir = /var/run/dovecot/
director_mail_servers = x.x.x.x
director_servers = y.y.y.y
disable_plaintext_auth = no
mail_debug = yes
passdb {
  args = nopassword=y proxy=y
  driver = static
}
service director {
  fifo_listener login/proxy-notify {
    mode = 0666
    user = $default_login_user
  }
  inet_listener {
    port = 9090
  }
  unix_listener director-userdb {
    mode = 0600
  }
  unix_listener login/director {
    mode = 0666
  }
}
service imap-login {
  executable = imap-login director
  inet_listener imap {
    port = 143
  }
}
service pop3-login {
  executable = pop3-login director
  inet_listener pop3 {
    port = 110
  }
}
ssl_cert =


Re: [Dovecot] v2.2.11 released

2014-02-11 Thread Gedalya

On 02/11/2014 06:41 PM, Timo Sirainen wrote:

http://dovecot.org/releases/2.2/dovecot-2.2.11.tar.gz
http://dovecot.org/releases/2.2/dovecot-2.2.11.tar.gz.sig

I haven't had time to read through the Dovecot mailing list yet, so there are 
likely some reported bugs that haven't been fixed yet. I'll try to get to them 
next week in San Francisco. (Probably can't get much done this week in Tokyo.) 
In the mean time here's v2.2.11 with some new features.

 + acl plugin: Added an alternative global ACL file that can contain
   mailbox patterns. See http://wiki2.dovecot.org/ACL for details.
 + imap proxy: Added proxy_nopipelining passdb setting to work around
   other IMAP servers' bugs (MS Exchange 2013 especially).
 + Added %{auth_user}, %{auth_username} and %{auth_domain} variables.
   See http://wiki2.dovecot.org/Variables for details.
 + Added support for LZ4 compression.
 + stats: Track also wall clock time for commands.
 + pop3_migration plugin improvements to try harder to match the UIDLs
   correctly.
 - imap: SEARCH/SORT PARTIAL reponses may have been too large.
 - doveadm backup: Fixed assert-crash when syncing mailbox deletion.

Built and installed, working fine! Thanks!


[Dovecot] Getting Director Proxy Working

2014-02-11 Thread Murray Trainer
Hi All,

I can't get directory proxying of pop3 and imap working.  The
director stuff appears to be OK - see below.   The ldap
authentication is working on the backend mail server.  I just get
connection refused when I telnet to the proxy on the pop3 and imap
ports.  Nothing appears to be running on the pop3 and imap ports
despite the lines in the config below.  I am not sure what to do from
here as nothing is showing up in the logs.   Some assistance would be
greatly appreciated.

Thanks

Murray

# doveadm director status
mail server ip
vhosts  
   
users
x.x.x.x  
100 

0
# doveadm director map
user
   
mail server ip expire time

# doveconf -n
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.1
auth_cache_size = 32 M
auth_cache_ttl = 2 hours
auth_debug = yes
auth_mechanisms = plain login
auth_verbose = yes
base_dir = /var/run/dovecot/
director_mail_servers = x.x.x.x
director_servers = y.y.y.y
disable_plaintext_auth = no
mail_debug = yes
passdb {
  args = nopassword=y proxy=y
  driver = static
}
service director {
  fifo_listener login/proxy-notify {
    mode = 0666
    user = $default_login_user
  }
  inet_listener {
    port = 9090
  }
  unix_listener director-userdb {
    mode = 0600
  }
  unix_listener login/director {
    mode = 0666
  }
}
service imap-login {
  executable = imap-login director
  inet_listener imap {
    port = 143
  }
}
service pop3-login {
  executable = pop3-login director
  inet_listener pop3 {
    port = 110
  }
}
ssl_cert =


[Dovecot] v2.2.11 released

2014-02-11 Thread Timo Sirainen
http://dovecot.org/releases/2.2/dovecot-2.2.11.tar.gz
http://dovecot.org/releases/2.2/dovecot-2.2.11.tar.gz.sig

I haven't had time to read through the Dovecot mailing list yet, so there are 
likely some reported bugs that haven't been fixed yet. I'll try to get to them 
next week in San Francisco. (Probably can't get much done this week in Tokyo.) 
In the mean time here's v2.2.11 with some new features.

+ acl plugin: Added an alternative global ACL file that can contain
  mailbox patterns. See http://wiki2.dovecot.org/ACL for details.
+ imap proxy: Added proxy_nopipelining passdb setting to work around
  other IMAP servers' bugs (MS Exchange 2013 especially).
+ Added %{auth_user}, %{auth_username} and %{auth_domain} variables.
  See http://wiki2.dovecot.org/Variables for details.
+ Added support for LZ4 compression.
+ stats: Track also wall clock time for commands.
+ pop3_migration plugin improvements to try harder to match the UIDLs
  correctly.
- imap: SEARCH/SORT PARTIAL reponses may have been too large.
- doveadm backup: Fixed assert-crash when syncing mailbox deletion.

Re: [Dovecot] Fatal: All your namespaces have a location setting.

2014-02-11 Thread Zbyszek Żółkiewski
Hello again, 

i am making progress, and now my servers synchronise correctly but… only inbox 
(cur) is synced. Folders are not synchronised (although creation and deletion 
of folders is replicated). 

Any idea?

__
Zbyszek Żółkiewski

On 11 Feb 2014, at 21:46, Zbyszek Żółkiewski  wrote:

> ok i have solved that by adding:
> 
> mail_location = maildir:/home/mailboxes/maildir/%n/Maildir
> 
> seems like error gone.
> 
> __
> Zbyszek Żółkiewski
> 
> On 11 Feb 2014, at 15:16, Zbyszek Żółkiewski  wrote:
> 
>> Hello,
>> 
>> I am trying to setup dovecot sync between 2 servers and come up with this 
>> error:
>> 
>> Fatal: All your namespaces have a location setting. It should be empty 
>> (default mail_location) in the namespace to be converted.
>> 
>> i am stuck with this as i cannot find any resolution on the web, here are my 
>> config details:
>> 
>> doveconf -n
>> # 2.1.7: /etc/dovecot/dovecot.conf
>> # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 
>> disable_plaintext_auth = no
>> dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server -u%u
>> mail_plugins = " notify replication"
>> mail_privileged_group = mail
>> 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 = /etc/dovecot/dovecot-sql.conf
>> driver = sql
>> }
>> plugin {
>> autocreate = Trash
>> autocreate2 = Sent
>> autosubscribe = Trash
>> autosubscribe2 = Sent
>> mail_replica = remote:vm...@some-mx2.com
>> }
>> protocols = imap lmtp sieve
>> service aggregator {
>> fifo_listener replication-notify-fifo {
>>   user = vmail
>> }
>> unix_listener replication-notify {
>>   user = vmail
>> }
>> }
>> service auth {
>> unix_listener /var/spool/postfix/private/auth {
>>   group = postfix
>>   mode = 0660
>>   user = postfix
>> }
>> }
>> service lmtp {
>> unix_listener /var/spool/postfix/private/dovecot-lmtp {
>>   group = postfix
>>   mode = 0600
>>   user = postfix
>> }
>> }
>> service managesieve-login {
>> inet_listener sieve {
>>   port = 4190
>> }
>> }
>> service replicator {
>> process_min_avail = 1
>> unix_listener replicator-doveadm {
>>   mode = 0600
>> }
>> }
>> ssl = required
>> ssl_cert = > ssl_key = > userdb {
>> driver = prefetch
>> }
>> userdb {
>> args = /etc/dovecot/dovecot-sql.conf
>> driver = sql
>> }
>> protocol imap {
>> mail_plugins = " autocreate"
>> }
>> protocol lmtp {
>> hostname = some-mx.com
>> mail_plugins = sieve
>> postmaster_address = postmas...@some-mx.com
>> }
>> 
>> 
>> cat dovecot-sql.conf
>> driver = pgsql
>> connect = host=/var/run/postgresql/ dbname=mail user=mailreader
>> default_pass_scheme = SHA512
>> password_query = SELECT email as user, password, 
>> '/home/mailboxes/maildir/'||maildir as userdb_home, 500 as userdb_uid, 500 
>> as userdb_gid FROM users WHERE email = '%u'
>> user_query = SELECT '/home/mailboxes/maildir/'||maildir as home, 500 as uid, 
>> 500 as gid FROM users WHERE email = '%u';
>> 
>> 
>> Any help will be appreciated!
>> 
>> thanks,
>> 
>> __
>> Zbyszek
>> 
> 



smime.p7s
Description: S/MIME cryptographic signature


Re: [Dovecot] Order of istream and ostream chains

2014-02-11 Thread Philipp Brüll

On 11/02/14 21:32, Timo Sirainen wrote:

On 12.2.2014, at 2.27, Philipp Brüll  wrote:


I'm creating a scrambler plugin, that adds an istream and an ostream to the 
stream-chain for the mail input/output. It works well until the zlib plugin is 
added to the configuration. The scrambler should run before the zlib and 
encrypt the mail before it's compressed. Since, the plugin is named 
lib18_scrambler_... (and the other lib20_zlib), that works well when a mail 
is received.

When a mail is read via IMAP, the plugins should handle the mail in the reverse 
order. So first, the zlib should decompress it and afterwards the scrambler 
should decrypt it.

But it seems, that they work the other way around. The scrambler istream gets 
compressed data as input. It's hooked in the chain of istream as the 
following...


In your previous mail you mentioned you're using v2.1.17. Have you tried with 
v2.2.10? I think this is already fixed (at least I've successfully used zlib + 
mail encryption plugin).



Thanks for the fast reply. Yes, I'm using v2.1.17. If this is a bug in 
2.1, is there a workaround existing?


I'm already pushing the admin to upgrade to 2.2, but I don't know is 
this is happening soon ;-)


Kind regards,
Philipp



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Dovecot] Problem rebuilding Centos 5/6 pigeonhole RPM from mercurial version

2014-02-11 Thread Stephan Bosch
On 2/7/2014 6:13 PM, Juan C. Blanco wrote:
> works fine, but if I install pigeonhole in a different path, i.e.
>
> pigeonhole-0.4.2$ make install DESTDIR=/var/tmp/pigeonhole
>

Ok, so what are you trying to achieve by installing in a different
destination? I wouldn't call myself a libtool/autotools wizard and I am
pretty much as puzzled by this behavior as you are. Obviously, I have
never tried this before myself, and I am wondering why anyone would want
to. :)

Regards,

Stephan.


Re: [Dovecot] Sieve is not getting the propper RCPT from the LMTP daemon

2014-02-11 Thread Stephan Bosch
On 12/24/2013 2:15 PM, klondike wrote:
> The relevant lines for the test e-mail I sent are these:
> sieve: info: started log at Dec 24 13:37:23.
> main script: line 9: info: DEBUG: envelope to `klondike (at) gentoo.org'.
> main script: line 10: info: DEBUG: envelope from `klondike (at) gentoo.org'.
> info: msgid=<52b97ff7.6050...@gentoo.org>: stored mail into mailbox 'INBOX'.

A similar issue was mentioned and solved a little later on the mailing
list, so that is why I forgot about this one. That involved Sendmail though:

http://www.dovecot.org/list/dovecot/2014-January/094385.html

So, did you manage to solve this yourself?

If not:
  - What is your config: dovecot -n
  - Do you have an example message?
  - Can you capture the LMTP protocol exchange between Postfix and
Dovecot somehow?

Regards,

Stephan.


Re: [Dovecot] Fatal: All your namespaces have a location setting.

2014-02-11 Thread Zbyszek Żółkiewski
ok i have solved that by adding:

mail_location = maildir:/home/mailboxes/maildir/%n/Maildir

seems like error gone.

__
Zbyszek Żółkiewski

On 11 Feb 2014, at 15:16, Zbyszek Żółkiewski  wrote:

> Hello,
> 
> I am trying to setup dovecot sync between 2 servers and come up with this 
> error:
> 
> Fatal: All your namespaces have a location setting. It should be empty 
> (default mail_location) in the namespace to be converted.
> 
> i am stuck with this as i cannot find any resolution on the web, here are my 
> config details:
> 
> doveconf -n
> # 2.1.7: /etc/dovecot/dovecot.conf
> # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 
> disable_plaintext_auth = no
> dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server -u%u
> mail_plugins = " notify replication"
> mail_privileged_group = mail
> 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 = /etc/dovecot/dovecot-sql.conf
>  driver = sql
> }
> plugin {
>  autocreate = Trash
>  autocreate2 = Sent
>  autosubscribe = Trash
>  autosubscribe2 = Sent
>  mail_replica = remote:vm...@some-mx2.com
> }
> protocols = imap lmtp sieve
> service aggregator {
>  fifo_listener replication-notify-fifo {
>user = vmail
>  }
>  unix_listener replication-notify {
>user = vmail
>  }
> }
> service auth {
>  unix_listener /var/spool/postfix/private/auth {
>group = postfix
>mode = 0660
>user = postfix
>  }
> }
> service lmtp {
>  unix_listener /var/spool/postfix/private/dovecot-lmtp {
>group = postfix
>mode = 0600
>user = postfix
>  }
> }
> service managesieve-login {
>  inet_listener sieve {
>port = 4190
>  }
> }
> service replicator {
>  process_min_avail = 1
>  unix_listener replicator-doveadm {
>mode = 0600
>  }
> }
> ssl = required
> ssl_cert =  ssl_key =  userdb {
>  driver = prefetch
> }
> userdb {
>  args = /etc/dovecot/dovecot-sql.conf
>  driver = sql
> }
> protocol imap {
>  mail_plugins = " autocreate"
> }
> protocol lmtp {
>  hostname = some-mx.com
>  mail_plugins = sieve
>  postmaster_address = postmas...@some-mx.com
> }
> 
> 
> cat dovecot-sql.conf
> driver = pgsql
> connect = host=/var/run/postgresql/ dbname=mail user=mailreader
> default_pass_scheme = SHA512
> password_query = SELECT email as user, password, 
> '/home/mailboxes/maildir/'||maildir as userdb_home, 500 as userdb_uid, 500 as 
> userdb_gid FROM users WHERE email = '%u'
> user_query = SELECT '/home/mailboxes/maildir/'||maildir as home, 500 as uid, 
> 500 as gid FROM users WHERE email = '%u';
> 
> 
> Any help will be appreciated!
> 
> thanks,
> 
> __
> Zbyszek
> 



smime.p7s
Description: S/MIME cryptographic signature


Re: [Dovecot] personal sieve script not included

2014-02-11 Thread Stephan Bosch
On 2/5/2014 9:59 AM, Thomas Krause wrote:
> Hello,
> I'm using dovecot 2.2.10 and roundcube (with managesieve enabled).
> Sieve filtering works well, as long the rule is written
> into ~/.dovecot.sieve (which is a link to ~/sieve/managesieve.sieve)
> When adding a new filter set (in roundcube) the script is
> written to ~/sieve/newfilterset.sieve. This script will not be
> executed. How can I solve this?
>
> I set
> sieve_dir = ~/sieve
> This should work, except I misunderstand the doc.

I see no obvious problems in your configuration. Do the logs say
anything interesting (set mail_debug=yes)? Your symptoms suggest that
Roundcube is not activating the uploaded script for some reason. That is
when the symbolic link is updated.

You could sniff the protocol exchange between Roundcube and Dovecot on
port 4190 (without TLS obviously). Roundcube should issue the SETACTIVE
command.

Regards,

Stephan.


Re: [Dovecot] Order of istream and ostream chains

2014-02-11 Thread Timo Sirainen
On 12.2.2014, at 2.27, Philipp Brüll  wrote:

> I'm creating a scrambler plugin, that adds an istream and an ostream to the 
> stream-chain for the mail input/output. It works well until the zlib plugin 
> is added to the configuration. The scrambler should run before the zlib and 
> encrypt the mail before it's compressed. Since, the plugin is named 
> lib18_scrambler_... (and the other lib20_zlib), that works well when a 
> mail is received.
> 
> When a mail is read via IMAP, the plugins should handle the mail in the 
> reverse order. So first, the zlib should decompress it and afterwards the 
> scrambler should decrypt it.
> 
> But it seems, that they work the other way around. The scrambler istream gets 
> compressed data as input. It's hooked in the chain of istream as the 
> following...

In your previous mail you mentioned you're using v2.1.17. Have you tried with 
v2.2.10? I think this is already fixed (at least I've successfully used zlib + 
mail encryption plugin).


[Dovecot] Order of istream and ostream chains

2014-02-11 Thread Philipp Brüll

Hi,

I'm creating a scrambler plugin, that adds an istream and an ostream to 
the stream-chain for the mail input/output. It works well until the zlib 
plugin is added to the configuration. The scrambler should run before 
the zlib and encrypt the mail before it's compressed. Since, the plugin 
is named lib18_scrambler_... (and the other lib20_zlib), that works 
well when a mail is received.


When a mail is read via IMAP, the plugins should handle the mail in the 
reverse order. So first, the zlib should decompress it and afterwards 
the scrambler should decrypt it.


But it seems, that they work the other way around. The scrambler istream 
gets compressed data as input. It's hooked in the chain of istream as 
the following...


static int scrambler_istream_opened(struct mail *_mail, struct istream 
**stream) {

struct mail_private *mail = (struct mail_private *)_mail;
union mail_module_context *mmail = SCRAMBLER_MAIL_CONTEXT(mail);
struct istream *input, *inputs[2];

input = *stream;
*stream = scrambler_istream_create(input);
i_stream_unref(&input);

return mmail->super.istream_opened(_mail, stream);
}

static void scrambler_mail_allocated(struct mail *_mail) {
struct mail_private *mail = (struct mail_private *)_mail;
struct mail_vfuncs *v = mail->vlast;
union mail_module_context *mmail;

mmail = p_new(mail->pool, union mail_module_context, 1);
mmail->super = *v;
mail->vlast = &mmail->super;

v->istream_opened = scrambler_istream_opened;

MODULE_CONTEXT_SET_SELF(mail, scrambler_mail_module, mmail);
}

How can I reverse the order of istreams? Should I use another hook or vfuns?

I'm stuck in the problem for a while now, so any help would be very welcome.

Best regards,
Philipp



smime.p7s
Description: S/MIME Cryptographic Signature


[Dovecot] Fatal: All your namespaces have a location setting.

2014-02-11 Thread Zbyszek Żółkiewski
Hello,

I am trying to setup dovecot sync between 2 servers and come up with this error:

Fatal: All your namespaces have a location setting. It should be empty (default 
mail_location) in the namespace to be converted.

i am stuck with this as i cannot find any resolution on the web, here are my 
config details:

doveconf -n
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 
disable_plaintext_auth = no
dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server -u%u
mail_plugins = " notify replication"
mail_privileged_group = mail
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 = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
plugin {
  autocreate = Trash
  autocreate2 = Sent
  autosubscribe = Trash
  autosubscribe2 = Sent
  mail_replica = remote:vm...@some-mx2.com
}
protocols = imap lmtp sieve
service aggregator {
  fifo_listener replication-notify-fifo {
user = vmail
  }
  unix_listener replication-notify {
user = vmail
  }
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
service replicator {
  process_min_avail = 1
  unix_listener replicator-doveadm {
mode = 0600
  }
}
ssl = required
ssl_cert = 

smime.p7s
Description: S/MIME cryptographic signature


[Dovecot] Public folder doesn't work

2014-02-11 Thread vupibi
Hey,

I have some issues with dovecot, because the public folder won't show up in
Mail accounts.
Dovecot is installed via zentyal 3.3.

I tried several settings, but I dont get it running.

What I tried is adding this to my dovecot.conf file

# User's private mail location
mail_location = maildir:~/Maildir

# When creating any namespaces, you must also have a private namespace:
namespace {
  type = private
  separator = /
  prefix =
  #location defaults to mail_location.
  inbox = yes
}

namespace {
  type = public
  separator = /
  prefix = Public/
  location = maildir:/var/vmail/public
  subscriptions = no
}

But nothing happened. I tried it with

# Umask for shared folders
umask = 0007

with 

subscriptions = yes

tried creating the folder first like this

touch /var/vmail/public/dovecot-shared
chown -R ebox /var/vmail/public
find /var/vmail/public -type d -print0 | xargs -0 chmod 2770 
find /var/vmail/public -type f -print0 | xargs -0 chmod 660

But i had no success. Any Ideas how to get it running?

Here is my dovecot -n output

# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-58-generic x86_64 Ubuntu 12.04.4 LTS ext4
auth_gssapi_hostname = mailand.sxps.int
auth_krb5_keytab = /etc/dovecot/dovecot.keytab
auth_mechanisms = gssapi plain
first_valid_gid = 116
first_valid_uid = 108
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_gid = 116
mail_home = /var/vmail/sieve/%d/%u
mail_location = maildir:/var/vmail/%$
mail_uid = 108
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 = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
plugin {
  autocreate = Trash
  autocreate2 = Spam
  autocreate3 = Sent
  autocreate4 = Drafts
  autosubscribe = Trash
  autosubscribe2 = Spam
  autosubscribe3 = Sent
  autosubscribe4 = Drafts
  quota = maildir:User quota
  quota_rule = *:storage=0
  sieve = /var/vmail/sieve/%d/%u/sieve-script
  sieve_dir = /var/vmail/sieve/%d/%u
  sieve_global_path = /var/vmail/sieve/default.sieve
  sieve_storage = /var/vmail/sieve/%d/%u
}
protocols = imap sieve
service auth {
  executable = /usr/lib/dovecot/auth
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-master {
group = ebox
mode = 0600
user = ebox
  }
  user = dovecot
}
service imap-login {
  inet_listener imap {
address = *
port = 143
  }
  inet_listener imaps {
address = *
port = 993
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
ssl_cert = http://dovecot.2317879.n4.nabble.com/Public-folder-doesn-t-work-tp46671.html
Sent from the Dovecot mailing list archive at Nabble.com.


[Dovecot] Some LDA questions!

2014-02-11 Thread Фадеев Виталий Львович
 Hi there!
I have been setuped exim and dovecot.
Exim uses dovecot-lda to deliver mails to mailbox.

Some configurations of exim:

dovecot_virtual_delivery:
  driver = pipe
  command = /usr/libexec/dovecot/dovecot-lda -d $local_part@$domain -f 
$sender_address
  message_prefix =
  message_suffix =
  delivery_date_add
  envelope_to_add
  return_path_add
  log_output
  user = vmail
  group = vmail
  #mode = 0660
  temp_errors = 64 : 69 : 70: 71 : 72 : 73 : 74 : 75 : 78

dovecot does mysql lookups of users, passwords. 
All works, but in headers of example message:

Return-path: <"vita...@bbb.com"@host.aaa.com>
Envelope-to: vita...@bbb.com
Delivery-date: Tue, 11 Feb 2014 03:59:17 -0600
Received: from xxx.net ([11.22.33.44] helo=[192.168.1.77])
 by host.aaa.com with esmtpsa (TLS1.0:ECDHE_RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82)
 (envelope-from <"vita...@bbb.com"@host.aaa.com>)
 id 1WDA7Y-0007GS-VR
 for vita...@bbb.com; Tue, 11 Feb 2014 03:59:17 -0600
Message-ID: <52f9f468.9030...@bbb.com>
Date: Tue, 11 Feb 2014 16:59:04 +0700
From: =?UTF-8?B?0KTQsNC00LXQtdCyINCS0LjRgtCw0LvQuNC5INCb0YzQstC+0LLQuNGH?=
 
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 
Thunderbird/24.3.0
MIME-Version: 1.0
To: vita...@bbb.com
Subject: adfasdf
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Sender: "vita...@bbb.com"@host.aaa.com
Test headers
host.aaa.com is a hostname that run dovecot and exim.
bbb.com is a virtual domain located in mysql db.
I do not want to show host.aaa.com in headers. How can i disable this so 
headers looks like this:
Return-path: 
Which configuration i need to show you?


Re: [Dovecot] RFC 5267 Contexts for IMAP4 PARTIAL results

2014-02-11 Thread Anders Thøgersen
Great, thanks!

Den 7. feb. 2014, Timo Sirainen  skrev:

> On 21.1.2014, at 10.44, Anders Thøgersen <> wrote:
>  
> 
> > I am looking at PARTIAL responses using a dovecot version 2.2.5 and am 
> > running
> > into an inconsistency with the RFC which I would like to ask about.
> > 
> 
> Looks like the code was buggy. This should fix: 
> 
>
>
>


Re: [Dovecot] Undertanding what the lmtp_save_to_detail_mailbox actually does

2014-02-11 Thread Alan Chandler

On 11/02/14 07:41, Steffen Kaiser wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 10 Feb 2014, Alan Chandler wrote:

The problem I am facing is I can find no documentation about what 
lmtp_save_to_detail_mailbox actually causes lmtp to actually do. 
Searching the wiki refers to it only in the LMTP page.


How should the detail of the address be formatted to specify a 
subdirectory - can it be specified even? Should I be using it?


+Sent@...
+users..SentNow@...
+Archive.2013-01@...

I think, you must use mUTF7 for non-ASCII characters, you cannot use 
spaces and @ and many other characters impose problems. Also, which 
hierarchie separator you need to use, depends a little, just try with 
dots and the configured separator.


Also, for testing I advice to enable lda_mailbox_autocreate, in order 
to see when you did wrong and can try another spelling.


Thanks - just what I needed to know.

I was about to set up an experiement, but I have to get postfix setup 
first (as a vehicle for delivering mail to lmtp) and there are aspects 
of that that I haven't got nailed yet.




Unfortunately my reading of the fileinto extension is that the 
destination can only be a literal string and not a "computed" value 
based on the date.


that's not the problem with the variables extension. See
http://wiki2.dovecot.org/Pigeonhole/Sieve/Examples
and search for

fileinto "users/${name}";



Brilliant - even better.  I had searched for quite some time looking for 
that and hadn't found it.


Thanks

Alan Chandler