Re: Messages sent to alias+detail end up in INBOX

2021-02-17 Thread Anton Dollmaier

Hi Denis,



I expected that when I send a message to alias+det...@mydomain.tld, it would go into the 
"detail" folder of u...@mydomain.tld. However, it goes into the INBOX folder of 
u...@mydomain.tld.

Is it the intended behavior?


It is.

To achieve the desired folder, you need a sieve script:

https://wiki.dovecot.org/Pigeonhole/Sieve/Examples#Plus_Addressed_mail_filtering

Ensure that you also subscribe to newly created mailboxes 
(lda_mailbox_autosubscribe=yes).



Best,
Anton


Re: Mail account brute force / harassment

2019-04-11 Thread Anton Dollmaier via dovecot

On 11.04.2019 13:25, James via dovecot wrote:

On 11/04/2019 11:43, Marc Roos via dovecot wrote:


A. With the fail2ban solution
   - you 'solve' that the current ip is not able to access you


It is only a solution if there are subsequent attempts from the same 
address.  I currently have several thousand addresses blocked due to 
dovecot login failures.  My firewall is set to log these so I can see 
that few repeat, those that do repeat have intervals of >1 week. 
Blocking these has minimal effect (other than to clog fail12ban and the 
firewall).



   - it will continue bothering other servers and admins


Which is why a dnsbl for dovecot is a good idea.  I do not believe the 
agents behind these login attempts are only targeting me, hence the 
addresses should be shared via a dnsbl.


Probably there's an existing solution for both problems (subsequent 
attempts and dnsbl):



https://github.com/PowerDNS/weakforced


It was also discussed recently on this list:


https://www.dovecot.org/list/dovecot/2019-March/114921.html



Has already been on my personal todo list for some time, so I have no 
experience how (good) it actually works.



Best,
Anton


Submission / Postfix / XCLIENT

2018-10-09 Thread Anton Dollmaier

Hi all,


while testing the new Dovecot Submission Proxy feature, which we greatly 
appreciate and have been anticipating for a long time, some issues occured.



Dovecot is unable to submit mails via XCLIENT:

< XCLIENT ADDR=185.115.176.12PORT=39074
> 501 5.5.4 Bad ADDR syntax: 185.115.176.12PORT=39074

Postfix is unable to parse the XCLIENT command from Dovecot submission 
proxy, as a space seems to be missing.


After checking the source code, the issue looks easy to fix - at least 
to me as a non-Developer.


I created my first pull request for that:


https://github.com/dovecot/core/pull/90


Would be great to see this merged.

Any additional comments are also appreciated.


Best,
Anton


Re: Android Sync Doesn't Work Too Good

2014-07-02 Thread Anton Dollmaier

Hi,


If it's the look of K9 they don't like, can I recommend K-@ Mail. K-@
Mail uses K9Mail's mail engines, but puts a modern interface on the top.



Also, the developers of K-9 Mail are working on a new version with 
improved GUI, called Kaiten (K-10...):



https://play.google.com/store/apps/details?id=com.kaitenmail.adsupported


The paid version is ad free:


https://play.google.com/store/apps/details?id=com.kaitenmail





Best,

Anton

--

ADITSYSTEMS
Anton Dollmaier, M.Sc.
Im Moos 22
84323 Massing
Telefon: +49-8724-3949990 (Mo-Fr, 10:00-18:00 Uhr, dt. Festnetz)
Telefax: +49-8724-394
Umsatzsteuer-ID:  DE221493781

Blog:   http://blog.aditsystems.de/
Twitter:http://twitter.com/ADITSystems
Google+:http://google.com/+AditsystemsDe


KundenCenter:   https://kunden.aditsystems.de/kc/
Wiki:   https://kunden.aditsystems.de/wiki/


Re: [Dovecot] how to handle logging

2013-10-14 Thread Anton Dollmaier

Hi,



writing 1 TB per day sounds not wise.



Use syslog-ng or similar to define log destinations to STDOUT / STDIN 
like multilog and omitting the write to disk part.



E.g., using syslog-ng with the MongoDB target and a capped collection 
enables a similar circular buffer with the search techniques of MongoDB.




Best,

Anton

--

ADIT Systems
Anton Dollmaier, M.Sc.
Im Moos 22
84323 Massing
Telefon: +49-8724-3949990 (Mo-Sa, 10:00-20:00 Uhr, dt. Festnetz)
Telefax: +49-8724-394

Umsatzsteuer-ID:DE221493781

Twitter:http://twitter.com/ADITSystems
Blog:   http://blog.aditsystems.de/
Facebook:   http://www.facebook.com/ADITSystems

KundenCenter:   https://kunden.aditsystems.de/kc/
Wiki:   https://kunden.aditsystems.de/wiki/


Re: [Dovecot] Dovecot replies with default SSL certificate instead of the vhost's

2013-09-16 Thread Anton Dollmaier

Hi,



why do people waste their time with such useless things instead setup
mail.yourcompany.tld and tell every user exactly tjis hostname?


Could also bei simplefied by using AutoDiscovery (MS) or autoconfig 
(Thunderbird, Evolution).


e.g. by setting up www.automx.org.



servernames in case of *email* are worthless becasue you do
not have different document roots


Could be different mail document roots, e.g. a distinct user base with 
different backends for each hostname :)




Best regards,


Anton

--

ADIT Systems
Anton Dollmaier, M.Sc.
Im Moos 22
84323 Massing
Telefon: +49-8724-3949990 (Mo-Sa, 10:00-20:00 Uhr, dt. Festnetz)
Telefax: +49-8724-394

Umsatzsteuer-ID:DE221493781

Twitter:http://twitter.com/ADITSystems
Blog:   http://blog.aditsystems.de/
Facebook:   http://www.facebook.com/ADITSystems

KundenCenter:   https://kunden.aditsystems.de/kc/
Wiki:   https://kunden.aditsystems.de/wiki/


Re: [Dovecot] popup to all users ?

2013-07-05 Thread Anton Dollmaier

Hi,



I need to have a information popup will be send when
my thunderbird's users connect to our server.

Is there a function in Dovecot to do so ?


You may use the postlogin feature:


http://wiki2.dovecot.org/PostLoginScripting


Haven't used it myself yet and don't know if this works as expected.


@Harald:

See RFC 3501, Section 7.1.2.:


https://tools.ietf.org/html/rfc3501#section-7.1.2



  The NO response indicates an operational error message from the
  server.  When tagged, it indicates unsuccessful completion of the
  associated command.  The untagged form indicates a warning; the
  command can still complete successfully.  The human-readable text
  describes the condition.



Best regards,

Anton


--

ADIT Systems
Anton Dollmaier, B.Sc.
Im Moos 22
84323 Massing
Telefon: +49-8724-3949990 (Mo-Sa, 10:00-20:00 Uhr, dt. Festnetz)
Telefax: +49-8724-394

Umsatzsteuer-ID:DE221493781

Twitter:http://twitter.com/ADITSystems
Blog:   http://blog.aditsystems.de/
Facebook:   http://www.facebook.com/ADITSystems

KundenCenter:   https://kunden.aditsystems.de/kc/
Wiki:   https://kunden.aditsystems.de/wiki/


Re: [Dovecot] trying to make cmusieve happen globally

2010-12-22 Thread Anton Dollmaier

Hi,




plugin {
 sieve_global_path = /etc/dovecot/sieve-global.d/spam.sieve


Use sieve_before, which is not documented in the wiki.

Only this way the sievescript really gets executed.


The global path requires a sieve script per home directory, including 
the global file.





best regards,

Anton


Re: [Dovecot] [OT] dovecot appliance

2010-10-28 Thread Anton Dollmaier

Hi,



Or does anyone knows a good webbased tool for dovecot.


Actually, you may use Dovecot with any existing courier-Mailserver-GUI.

E.g., there is Postfixadmin:

http://postfixadmin.sourceforge.net/


You only have to setup Dovecot to use the SQL-schemes defined by the 
GUI, which is actually not too hard.





Anton


Re: [Dovecot] script to extract From: addresses

2010-07-25 Thread Anton Dollmaier

Hi,

 For my manager I need to write a script to extract the From: e-mail 
addresses from his e-mail account.


Use reformail with -x:



http://www.courier-mta.org/reformail.html


 Extracting headers

 The -x and -X options extract the indicated headers from the message, 
and print them to standard output. Multiple -x and -X options can be 
specified at the same time, and may be intermixed.


 The -x option extracts and prints the contents of the header. The -X 
option prints the name of the header as well.




Re: [Dovecot] Unknown column username in where clause

2010-07-19 Thread Anton Dollmaier

Hi,



I dont' know where the field username should come from because I
don't use this field (or query).


perhabs this is the problem? ;-)



The relevant files are:


Output of dovecot -n would be better, together with the additional files.



dovecot-sql.conf.ext


password_query = SELECT userid AS user, password, \
   home AS userdb_home, uid AS userdb_uid, gid AS userdb_gid, \
   concat('*:bytes=', quota_bytes) as userdb_quota_rule \
   FROM users WHERE userid = '%u'



I think you're missing a user_query.



best regards,

Anton


Re: [Dovecot] Spam folder permission

2010-07-09 Thread Anton Dollmaier

hi,



since Dovecot's deliver is creating folders for the user if needed - is
there also a way of how to set the Spam folder for instance to a mode so
that it can't be deleted by the user through IMAP anymore?


use the autocreate-plugin:


http://wiki.dovecot.org/Plugins/Autocreate


Re: [Dovecot] expire

2010-07-06 Thread Anton Dollmaier

Hi,



I'm sure, I do something the wrong way.


indeed.

Check dovecot-wiki, section Dovecot v1.2:


http://wiki.dovecot.org/Plugins/Expire


create the expire-tool.sh and use this instead of the binary.


best regards,

Anton


Re: [Dovecot] Work with auth socket

2010-06-29 Thread Anton Dollmaier

Hi,



I've wrote such script:


use Authen::SASL::Authd, as suggested by Steffen.

This code-snippet should help you:


http://search.cpan.org/~sasha/Authen-SASL-Authd-0.04/lib/Authen/SASL/Authd.pm




#!/usr/bin/perl
use Authen::SASL::Authd qw(auth_cyrus auth_dovecot);

$login = test;
$passwd = test;

# authenticate user against Dovecot authentication daemon
auth_dovecot('login', 'passwd') or die dovecot-auth: FAIL;


I realized a monitoring-script with this snippet, works great.


good luck!


Re: [Dovecot] Sieve GUI

2010-06-02 Thread Anton Dollmaier

Hi,


has someone tried this or knows something similar ?


RoundCube in version 0.3 and later supports a plugin system and provides 
actually two different Sieve-plugins, one out of the box, the other one 
is available here:



http://www.tehinterweb.co.uk/roundcube/#pisieverules


both work and provide a decent GUI with no need to write the 
sieve-syntax directly like the thunderbird-extension.


Re: [Dovecot] how to configure my scripts sieves for the home root

2010-05-19 Thread Anton Dollmaier

Hi,


how to configure my scripts sieves for the home root
I encounter these errors in the logs

2010-05-19 14:14:03 deliver(root): Info: sieve runtime error: Not a
bytecode file
2010-05-19 14:14:03 deliver(root): Error:
sieve_execute_bytecode(/root/.dovecot.sievec) failed


please redirect all mails for root to a non-root-user, dovecot is not 
able to read any contents in /root.


Postfix also advices to redirect mails.


best regards,

Anton


Re: [Dovecot] problems implementing dovecot LDA with Postfix

2010-05-09 Thread Anton Dollmaier

Am 09.05.2010 14:43, schrieb Stan Hoeppner:

Per the instructions here http://wiki.dovecot.org/LDA and here
http://wiki.dovecot.org/LDA/Postfix I set

postmaster_address = postmas...@hardwarefreak.com

in /etc/dovecot/dovecot.conf



postmaster_address has to be in an protocol lda {}-part:



protocol lda {
postmaster_address = postmas...@hardwarefreak.com
}



best regards,

Anton



--

ADIT Systems
Anton Dollmaier, B.Sc.
Im Moos 22
84323 Massing
Telefon: +49-700-46862348* (Mo-Sa, 10:00-20:00 Uhr)
Telefax: +49-700-32922348*

Twitter: http://twitter.com/ADITSystems
Blog:http://blog.aditsystems.de/

Wiki:https://kunden.aditsystems.de/wiki/

(*: 12ct./Minute aus dem Netz der DTAG, ggf. abweichende
Kosten aus dem Mobilfunknetz)


Re: [Dovecot] Quota monitoring

2010-04-21 Thread Anton Dollmaier

Hi,




Acutally I can log in with user  password to get the users quota but
wat I need is a way to monitor the quota of every user with e.g an admin
user which would have an acces to the quota of each mailbox.


Which quotas do you use?


With Maildir and SQL-userdb you can save the quota-information in a 
database (proxy::dict) and monitor the usage there.



works great here ;-)





Re: [Dovecot] Quota monitoring

2010-04-21 Thread Anton Dollmaier

Hi,



Could you post configuration details ?


Configured as described in dovecot-wiki:


http://wiki.dovecot.org/Quota/Dict
http://wiki.dovecot.org/Quota/1.1



Quota-information is then directly SELECTable from the table quota.



Best regards,

Anton


Re: [Dovecot] Maildir archive utility for historical filing

2010-04-07 Thread Anton Dollmaier

Hi,



Is there any utility to archive maildir folders based on message date?
I found cleanup-maildir, but you have to supply the directory as parameter.




http://archivemail.sourceforge.net/


Re: [Dovecot] enabling IMAP SORT and THREAD extensions

2010-02-21 Thread Anton Dollmaier

If telnet into Dovecot on my server, it doesn't explicitly indicate SORT
and THREAD capabilities:


You did not issue the 1 capability-command.


If you do so, you will get this (or similar):


r...@terra:~# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS 
AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
1 capability
* CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT 
SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN 
NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT 
SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA STARTTLS AUTH=PLAIN AUTH=LOGIN
1 OK Capability completed.


which clearly states SORT and THREAD.


best regards,

Anton


Re: [Dovecot] failed to stat user's sieve script

2010-01-28 Thread Anton Dollmaier

Hi,


Jan 28 13:26:15 deliver(root): Error: chdir(/root) failed: Permission
denied


dovecot cannot store mails to /root, use an alias in your MTA to 
redirect mails to another user.



best regards,

Anton


Re: [Dovecot] Same filenames on different servers?

2010-01-11 Thread Anton Dollmaier

Hi,


The idea was to have two identical (well, nearly identical) servers with
the same software and data on them, and while the first do its job as
SMTP and POP3/IMAP4 server, the second server just get copy of first's
current state (that is, copy user db and mail spool). In case of
something wrong with 1st server I'll just put its IP on second one and
will go on.



Use Heartbeat and DRBD for replication - all mail is synched between the 
servers.


If first crashes, heartbeat runs second as new server for the users.


As dovecot on second is only started if first is down, there are no 
issues about inconsistencies.



best regards,

Anton


[Dovecot] Panic: file maildir-uidlist.c: line 1242 (maildir_uidlist_records_drop_expunges): assertion failed

2009-12-23 Thread Anton Dollmaier
: /etc/dovecot/sieve/
  sieve_dir: %h/sieve
  autocreate: INBOX.Trash
  autocreate2: INBOX.Spam
  autocreate3: INBOX.Sent
  autosubscribe: INBOX.Trash
  autosubscribe2: INBOX.Spam
  autosubscribe3: INBOX.Sent



Best regards  merry christmas!


Anton Dollmaier


Re: [Dovecot] quota in SQL and static userdb

2009-11-23 Thread Anton Dollmaier

Probably with sql dict too, but I can't remember right now how exactly.



This works for us:

dict {
  quotadict = mysql:/etc/dovecot/dovecot-dict-quota.conf
}
plugin {
 quota = dict:INBOX::proxy::quotadict
 quota2 = dict:shared:%d:ns=shared.:proxy::quotadict
}


in the mysql-table, username and domain are stored in the same column


Re: [Dovecot] Web-Interface for Dovecot-Sieve?

2009-11-17 Thread Anton Dollmaier

Hi,


is there anywhere a web-interface for managing sieve-filters with dovecot?


RoundCube in version 0.3 has a managesieve-Plugin, works great - but due 
to formatting/parsing I would recommend using only RC, and no manual 
changes.



Best regards,

Anton


Re: [Dovecot] Web-Interface for Dovecot-Sieve?

2009-11-17 Thread Anton Dollmaier



I've been considering switching to RC for our webmail... do you know if
the RC managesieve plugin and the TBird sieve extension co-exist peacefully?


Partly: RoundCube tries parsing the Sieve-Rules in a certain scheme, if 
parsing fails (e.g. by editing in ThunderBird and not following the 
scheme) no rules will be displayed in RC.



Except that, RC + ManageSieve work great.


Re: [Dovecot] Web-Interface for Dovecot-Sieve?

2009-11-17 Thread Anton Dollmaier

Hi,


Someone please correct me if I'm wrong, but IIRC the managesieve interfaces
of Roundcube and Thunderbird only allow you to choose between existing
sieve scripts that are already available through the managesieve server.
They *don't* provide an interface for constructing sieve scripts in the
first place-- you still have to write them by hand.


sorry, I have to correct you:

With RoundCube 0.3 and the managesieve-plugin, you get an interface to 
click the rules you want to apply:


http://yfrog.com/31rcmanagesievep



On the other hand, the addon for thunderbird does not more as providing 
an textarea and documentation about the sieve-syntax.




Best regards,

Anton


Re: [Dovecot] deliver_log_format ignored

2009-11-05 Thread Anton Dollmaier

Hi,


seems that LDA ignores deliver_log_format (still log with format:
msgid=%m: %$)
Is there some change from this
http://www.dovecot.org/list/dovecot/2009-April/039013.html or
http://www.dovecot.org/list/dovecot/2009-May/039269.html ?



I still have this problem, but also new information:

You also use a global sieve script, as I do on my server (here: 
sieve_global_dir / sieve_before).


On the server of a customer, I use the same deb-package as on mine, but 
there the deliver_log_format is not ignored.



Just tested the differences:

If I comment out all sieve-parameters in dovecot.conf, the 
deliver_log_format is being used:


with sieve-params:


Nov 05 22:47:38 deliver(antondollma...@aditsystems.de): Info: sieve: 
msgid=20091105214738.0961643...@terra.a1a-server.de: stored mail into mailbox 
'INBOX'


without:


Nov 05 22:48:44 deliver(antondollma...@aditsystems.de): Info: 
from:r...@terra.a1a-server.de 
msgid:20091105214843.c3bda43...@terra.a1a-server.de action:saved mail to 
INBOX subject:test



LDA-Config:


lda:
  mail_plugins: quota sieve autocreate
  deliver_log_format: from:%f msgid:%m action:%$ subject:%s



the parameter I commented out were:


lda:
  sieve_global_dir: /etc/dovecot/sieve
plugin:
  sieve: ~/.dovecot.sieve
  sieve_global_dir: /etc/dovecot/sieve/
  sieve_dir: %h/sieve
  sieve_before: /etc/dovecot/sieve/shared.sieve



Any hints on this, Timo / Stephan?


Best regards,

Anton


Re: [Dovecot] deliver_log_format ignored

2009-11-05 Thread Anton Dollmaier

Hm, works for me.
How do you invoke deliver? (in Postfix's master.cf)


As I have the same problem:


dovecot   unix  -   n   n   -   -   pipe
  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -s -d $(recipient)




main.cf:


virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
dovecot_destination_concurrency_limit = 1


Re: [Dovecot] Public Folder Quotas

2009-10-29 Thread Anton Dollmaier

OK thanks just one last query, would the quota rule be something like this?
quota_rule2 = Public*:storage=100M



===
namespace public {
prefix = shared.
separator = .
(...)
}
dict {
  quotadict = mysql:/etc/dovecot/dovecot-dict-quota.conf
  expire = mysql:/etc/dovecot/dovecot-dict-expire.conf
}
  quota = dict:INBOX::proxy::quotadict
  quota2 = dict:shared:%d:ns=shared.:proxy::quotadict
  quota_rule = *:storage=50M:messages=1000
  quota_rule2 = Trash:storage=50M:messages=100
  quota2_rule = *:storage=100M:messages=1000
===

this currently works - you must use the prefix of the namespace as 
parameter in the quota-definition.


Re: [Dovecot] Public Folder Quotas

2009-10-27 Thread Anton Dollmaier

Hi folks,



I suppose you mean something like:

namespace public {
  prefix = Public/
  ..
}

quota = ..
quota2 = maildir:Public quota:ns=Public/


We have this running in exactly that way.



This creates a separate shared quota for all mailboxes in Public/
namespace. I've no idea if it really works, but the code is there. Let
me know if it doesn't. :)


it does work :)


At least, with my tests at the beginning: public quota of 1kb, now a 
move of a local mail to the shared namespace fails, RoundCube and 
Thunderbird show the correct message. Customers didn't complain after 
the dovecot 1.2.6-upgrade, so I assume it's still working.


And, even more: ThunderBird (also with raw IMAP) show the shared quota 
as being different than the local quota.




best regards,

Anton


Re: [Dovecot] Unknown setting: driver

2009-10-19 Thread Anton Dollmaier

Hi,

 I followed the sql example included in the

latest dovecot source, and put

driver=mysql

in dovecot.conf (outside any section)


copy the sql-settings to an extra file (e.g. dovecot-sql.conf) and 
reference this file as passdb and/or userdb:


http://wiki.dovecot.org/Authentication/MultipleDatabases
http://wiki.dovecot.org/UserDatabase/Prefetch


Re: [Dovecot] testing needed

2009-10-19 Thread Anton Dollmaier

Hi,


Can someone find an OS where the attached program doesn't work? It
should print success. So far tested for success: Linux 2.6, Solaris
10, FreeBSD 7.2, OpenBSD 4.2.


Mac OS X Server 10.4 works (prints success).


Darwin X91-186.local.lan 8.10.0 Darwin Kernel Version 8.10.0: Wed May 23 
16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power Macintosh powerpc





[Dovecot] issues with ACL and Public Namespaces

2009-10-06 Thread Anton Dollmaier
: owner = 1
Oct  6 15:25:02 ipx02 dovecot: IMAP(us...@example.com): acl vfile: Global ACL 
directory: (null)
Oct  6 15:25:02 ipx02 dovecot: IMAP(us...@example.com): Namespace: type=public, 
prefix=shared., sep=., inbox=no, hidden=no, list=yes, subscriptions=no
Oct  6 15:25:02 ipx02 dovecot: IMAP(us...@example.com): maildir: 
data=/var/mail/vmail/example.com/shared:INDEX=~/shared
Oct  6 15:25:02 ipx02 dovecot: IMAP(us...@example.com): maildir++: 
root=/var/mail/vmail/example.com/shared, 
index=/var/mail/vmail/example.com/user6//shared, control=, inbox=
Oct  6 15:25:02 ipx02 dovecot: IMAP(us...@example.com): acl: initializing 
backend with data: vfile
Oct  6 15:25:02 ipx02 dovecot: IMAP(us...@example.com): acl: acl username = 
us...@example.com
Oct  6 15:25:02 ipx02 dovecot: IMAP(us...@example.com): acl: owner = 0
Oct  6 15:25:02 ipx02 dovecot: IMAP(us...@example.com): acl vfile: Global ACL 
directory: (null)
Oct  6 15:25:02 ipx02 dovecot: IMAP(us...@example.com): Namespace : Using 
permissions from /var/mail/vmail/example.com/user6//Maildir: mode=0700 gid=-1
Oct  6 15:25:03 ipx02 dovecot: IMAP(us...@example.com): acl vfile: reading file 
/var/mail/vmail/example.com/shared/.Transfer.Test1/dovecot-acl
Oct  6 15:25:03 ipx02 dovecot: IMAP(us...@example.com): expire: No expiring in 
mailbox: shared.Transfer.Test1
Oct  6 15:25:03 ipx02 dovecot: IMAP(us...@example.com): Disconnected: Logged 
out bytes=85/743

(last four lines are important)


Is this a possible bug related to ACL and Public Namespaces, or do I 
have to create the public folders also in the local Maildir and symlink 
the dovecot-acl to the public folder?



With the symlinks in place (per Folder), dovecot finds the ACL-files and 
lists the folders also in RoundCube's Folder-pane and Apple Mail finds 
the public folders too.



Upgrading to 1.2.5 failed so far, as my build-server has problems with 
automake, have to look into this too.



Thanks in advance!


best regards,

Anton Dollmaier






Output of dovecot -n:



# 1.2.3: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-6-686 i686 Debian 5.0.3
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps pop3s pop3
listen: *, [::]
ssl_cert_file: /etc/dovecot/dovecot.pem
ssl_key_file: /etc/dovecot/dovecot.pem
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_max_userip_connections(default): 25
mail_max_userip_connections(imap): 25
mail_max_userip_connections(pop3): 10
first_valid_uid: 249
mail_access_groups: poponly
mail_privileged_group: poponly
mail_location: maildir:~/Maildir
mail_debug: yes
mail_executable(default): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugins(default): quota imap_quota acl autocreate expire
mail_plugins(imap): quota imap_quota acl autocreate expire
mail_plugins(pop3): quota expire
mail_plugin_dir(defamiult): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
imap_client_workarounds(default): netscape-eoh
imap_client_workarounds(imap): netscape-eoh
imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
namespace:
  type: private
  separator: .
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: public
  separator: .
  prefix: shared.
  location: maildir:/var/mail/vmail/%d/shared:INDEX=~/shared
  list: yes
lda:
  postmaster_address: postmas...@server.example.com
  mail_plugins: quota expire
  quota_full_tempfail: yes
  auth_socket_path: /var/run/dovecot/auth-master
  log_path: /var/log/dovecot-deliver.log
  info_log_path: /var/log/dovecot-deliver.log
  sieve_global_dir: /etc/dovecot/sieve/
  sieve_global_path: /etc/dovecot/default.sieve
auth default:
  mechanisms: plain login
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql-master.conf
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 432
  user: vmail
  group: vmail
plugin:
  quota: dict:INBOX::proxy::quotadict
  quota2: dict:shared:%d:ns=shared.:proxy::quotadict
  quota_rule: *:storage=50M:messages=1000
  quota_rule2: Trash:storage=50M:messages=100
  quota2_rule: *:storage=100M:messages=1000
  quota_warning: storage=95%% /usr/local/bin/quota-warning.sh 95
  quota_warning2: storage=80%% /usr/local/bin/quota-warning.sh 80
  acl: vfile
  expire: Trash 7 Spam 30
  expire_dict: proxy::expire
  autocreate: Trash
  autocreate2: Spam
  autocreate3: Sent

Re: [Dovecot] issues with ACL and Public Namespaces

2009-10-06 Thread Anton Dollmaier

Hi Timo,


Oh, right, that's because the subscriptions are in the private
namespace. Hmm. I'll try to get this fixed soon, but if you want to get
it working now you could use:

namespace public {
   prefix = shared.
   location = maildir:/var/mail/vmail/%d/shared:CONTROL=~/shared:INDEX=~/shared
   subscriptions = yes
}


Then subscriptions will be handled directly in the public namespace, 
therefor all users would have the same folders subscribed, right?


That would cause permission problems, as not all users are allowed to 
see every folder.




Although there's also a bug related to that where LSUB  % won't list
shared and that breaks some clients. That's fixed in v1.2.6.


Such commands are actually performed and logged in the rawlog (e.g. 
20091005-221025-26325.in), but I don't see any responses back to the client.


I'll upgrade to 1.2.6 and check if the problem still occurs.


Re: [Dovecot] imap_quota-error with 1.2.1

2009-07-11 Thread Anton Dollmaier



a) Use automake v1.10+ (the deb-src seems to force using 1.9)

b) Apply patch: http://hg.dovecot.org/dovecot-1.2/rev/66040bffc1a5


Thanks to Timo and Stephan, it's working again.


Best regards,

Anton


Re: [Dovecot] xi.rename-it.nl debian dovecot-1.2.1 ?

2009-07-10 Thread Anton Dollmaier

Hi,


on my testserver , but it seems
that this dont works since
1.2.rc8


ran into the same problem here.

use aptitude, search for dovecot-common, press enter to get all 
versions listed, and install explicitly the 1.2.1-version. aptitude will 
 complain about dependencies, so choose manually downgrade to 1.2.1.



I ran in another issue with imap quota, see my next mail.


Best regards,

Anton


[Dovecot] imap_quota-error with 1.2.1

2009-07-10 Thread Anton Dollmaier

Hi,


I downloaded the debian-src-package of dovecot 1.2.1 from 
xi.rename-it.nl, and built the package myself - no errors present.



after the upgrade, dovecot complains about an error with imap_quota, 
startup fails:



Restarting IMAP/POP3 mail server: 
dovecotEdlopen(/usr/lib/dovecot/modules/imap/lib10_quota_plugin.so) 
failed: /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so: undefined 
symbol: xdr_ext_getquota_args

FCouldn't load required plugins
Error: imap dump-capability process returned 89
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
 failed!


I downgraded back to 1.2.0, which works normally.


Any hints?


Best regards,

Anton


Re: [Dovecot] Testing POP3 with telnet - password always wrong

2009-05-05 Thread Anton Dollmaier

USER t...@192.168.10.171


Try only test, without domain.



auth default:
  passdb:
driver: pam
  userdb:
driver: passwd


set auth_debug=yes, then dovecot shows more details about the
authentification-results in /var/log/mail.log (default on lenny).



best regards,

Anton



[Dovecot] deliver_log_format not working with 1.2.rc3?

2009-04-30 Thread Anton Dollmaier

Hi list,

just a small issue with deliver_log_format.

Although, the parameter is altered in the config and is correctly shown 
with dovecot -n, deliver uses only its default log_format.




r...@terra:~# dovecot -n | grep -e deliver -e ^#
# 1.2.rc3: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.26-1-686 i686 Debian 5.0.1
  deliver_log_format: %m:%$:%f:%s



this is from a recent mail:



deliver(antondollma...@aditsystems.de): 2009-04-30 16:13:45 Info: sieve: 
msgid=20090430141309.gn16...@katherina.student.utwente.nl: stored mail into 
mailbox 'Dovecot-List'


Subject and From are obviously not logged.


Any hints?


thanks in advance.


best regards,
Anton


Re: [Dovecot] Unexplainable problem with POP3 quotas

2009-04-30 Thread Anton Dollmaier

No, we don't. We use dovecot as POP/IMAP server, and let Postfix do the rest.


How does Postfix deliver the mails? mailbox_command should be set to use 
deliver, not maildrop/procmail.




I see, but it seems like it is *another* solution rather than a
constraint.


I just tested the quota-warning, with the dovecot-deliver-example.

Exactly the same time as the mail exceeding the quota-percentage is 
delievered in the account, the quota-warning-message is generated and 
also delivered.




Anyway, we are neither sending an email nor using deliver. What we are
trying to do is to generate a message file that is injected into the
mailbox. But the script that should do that is never run by dovecot
:-(


Try the injection using deliver, and use the alternative script from 
the wiki-page as quota_warning.


I just tested it, works great.


Also: when using dovecot-deliver, the maildir-indizes are being 
generated better and faster than with alternative MDAs.



Best regards,
Anton


Re: [Dovecot] How do I get my mail from fetchmail into dovecot

2009-04-29 Thread Anton Dollmaier

I have dovecot (with squirrel mail etc.) running without any problems
but cannot understand how to get e-mail from a pop server into dovecot.
I have fetchmail configured to pick up the mail from the pop3 server but
don't understand how to get it from there into my dovecot mbox


configure dovecot-deliver as MDA for fetchmail.

If you use system users, calling deliver should be sufficient.

On virtual users, you probably need to pass the correct recipient to 
deliver.



Anton


Re: [Dovecot] Quota for Shared Folders

2009-04-22 Thread Anton Dollmaier

Hi Timo,



Actually virtual Dovecot quota completely ignores shared/public
namespaces currently. The only reason why you seem to notice a combined
quota is most likely because of filesystem quota limit exceeding.


Or the local quota was exceeded too, so the mail was deferred anyway.


So I suppose there needs to be some kind of a per-namespace quota that
could be defined.. Maybe something like:

quota = maildir:Shared quota:ns=shared/
quota_rule = *:storage=200M

Yes, that looked like an easy thing to implement.


this works really great, I only needed to figure out the right 
namespace-setting: it must match the prefix-definition in the 
namespace, so with prefix = shared. (courier-migration) it has to be 
ns=shared.. The quotadict also reports diskusage really fast to the 
database, with the right amounts for the shared quotas.



imap_quota shows shared quotas too, thunderbird displays a nice 
percentage-graph with different local and shared-values.



thanks for the really fast response and implementation!


best regards,

Anton


[Dovecot] Quota for Shared Folders

2009-04-14 Thread Anton Dollmaier

Good morning list,


first of all: dovecot works really great, the performance is 
overwhelming (especially compared to courier), the configuration 
flexible as hell, it is good documented - I love this software.



But as things get complicated, I think I need some additional help.


I'm using dovecot to replace the currently used courier-mailserver in a 
shared hosting environment based on the control panel Confixx.



Confixx uses per default filesystem-users, giving each mailuser a 
filesystem-quota, mails are stored in ~/Maildir/. The imap-logins are 
all in the form of webxpy, being webx the customer (prefix 'web', 
and a increasing number), and py the number of the pop account. 
Because of the filesystem-quota we moved the indexes to another partition.


This basic setup with dovecot works great, with auth directly against 
the confixx-database etc, imap_quota-plugin, quota-plugin working as 
expected.



We now want to implement shared folders for each customer: all 
mailaccounts of a customer should be able to subscribe to per-customer 
shared folders in a specified maildir, thus I re-mapped the usernames 
with a new user_query (and password_query) to the format of 
web...@webx - being webx the virtual domain and webxpy the 
mailaccount, but still using webxpy as the imap-login (no need for 
customers to change the login).


This also works, we even can control with ACL-vfiles the permissions of 
specified users, to enable or disable specific folders.


The shared folders are specified as a new public namespace and the 
domain is part of the storage-path (see configuration at the end of 
this mail).


To allow easier quota-management (no need to create a new system-user), 
the quota of the shared folders is maildir-based, with a 
mysql-quota-dictionary (later, all accounts will be migrated to a 
virtual-user-mailstorage, with only maildir-quota and no fs-quotas).



But when things come to the shared quota, I currently don't know how to 
solve the wishes of the customer:


The current solution for shared folders (at the customer's local site) 
is based on mdaemon, every shared folder (of a customer, not a single 
mail-account) has a quota assigned. This quota cannot be exceeded by the 
users, no more mails can be saved into the shared folders if used space 
exceeds the hard quota-value.


As my tests have shown, dovecot uses a different approach to the 
quota-issue: users can always move their mails from local folders to the 
shared namespace, regardless of the shared quota. The quota itself is 
only checked when receiving new mails, where the combined quota (local + 
shared) may not be exceeded. If it is, the mail is not delivered to the 
mailbox.


Our quota-config is this:


  quota_rule: *:storage=50M:messages=1000
  quota_rule2: Trash:storage=50M:messages=100
  quota_rule3: shared*:storage=100M:messages=1000


(also being altered by user_query, but the scheme is the same)

As of dovecot-wiki, this means:

Users can save 50M + 50M + 100M of mails in all specified Folders, so 
the storage-value for the shared*-folders works additionally to the 
*-storage-value.




Different from this, we want the following to happen:

If the customer exceeds the shared folders-quota, his mail-users may not 
move mails from INBOX to shared, this move-operation should fail with a 
reasonable error-message.


If the local quota of a mail user is exceeded, new mails should be 
rejected/delayed, regardless of the shared quota-value (e.g., shared 
quota exceeded, but no local mails [new mail-account], mails should be 
delivered to INBOX).



Sieve-filters are not a problem, we do not allow user-specific 
sieve-rules (managesieve is disabled).




Hopefully, I could explain my issues to you.

Our current dovecot-configuration is attached to this mail, any help 
would be gladly appreciated.



If additional configuration-values/information is needed, I'll happily 
provide them, if possible.




best regards,

Anton Dollmaier



# 1.1.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.26-1-686 i686 Debian 5.0.1 
log_timestamp: %Y-%m-%d %H:%M:%S 
protocols: imap imaps pop3s pop3

listen: *, [::]
ssl_cert_file: /etc/dovecot/dovecot.pem
ssl_key_file: /etc/dovecot/dovecot.pem
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_max_userip_connections(default): 25
mail_max_userip_connections(imap): 25
mail_max_userip_connections(pop3): 10
first_valid_uid: 249
mail_access_groups: poponly
mail_privileged_group: poponly
mail_location: maildir:~/Maildir:INDEX=~/index:CONTROL=~/control
mail_debug: yes
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugins(default): quota imap_quota acl
mail_plugins(imap): quota imap_quota acl
mail_plugins(pop3): quota acl