Question about sieve language
Hello! I need to match all messages sent from some specific domain and all its sub-domains. I can achieve this with: if address :match :domain "From" [ "domain.com", "*.domain.com" ] { ... } But it looks ugly, especially if repeated for 5-6 domains. Is here way better? `:match ["*domain.com"]` will match "notdomain.com" and `:is [ "domain.com" ] doesn't match sub-domains. I understand, that it is (slightly?) off-topic, but I can not find any sieve-specific resources (all google find ins questions about PronotMail and FastMail filters, and these questions are very basic). Thank you. -- // Black Lion AKA Lev Serebryakov ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
Re: Sv: dovecot mailing list (this mailing list), DKIM, SPF and DMARC
On 11.02.2022 16:31, Marc wrote: (sorry for posting to list this, but I don't have any ways to contact Marc off-list now) Problem is, I need to unpack each of them to be sure, that these are false positives and I'm afraid, that it could lower reputation of my mail server IP address with major providers (like Google Mail). How can you get a lower reputation? Afaik dmarc is just signing your outgoing messages. Marc, my domain already has problems sending mail to you, for example: : host spam1.roosit.eu[212.26.193.45] said: 553 5.3.0 550We have blocked this toplevel because of spam. Use another toplevel until the maintainer has resolved these issues (in reply to MAIL FROM command) -- // Black Lion AKA Lev Serebryakov
Re: Sv: dovecot mailing list (this mailing list), DKIM, SPF and DMARC
On 11.02.2022 16:31, Marc wrote: Problem is, I need to unpack each of them to be sure, that these are false positives and I'm afraid, that it could lower reputation of my mail server IP address with major providers (like Google Mail). How can you get a lower reputation? Afaik dmarc is just signing your outgoing messages. DKIM is signing of headers. DMARC is policy (like "This domain must sign all messages with DKIM, no exceptions, and has strict SFP") and reporting mechanism for other hosts ("We get mail from you and this message violates declared policy of your domain"). As I get these reports, it means that messages from "my domain" (really, forwarded by mailing list software) violate policies set by my domain. It means, my domain is compromised somehow. -- // Black Lion AKA Lev Serebryakov
Re: Sv: dovecot mailing list (this mailing list), DKIM, SPF and DMARC
On 09.02.2022 16:33, Aki Tuomi wrote: I'm participating in ~20 mailing lists and only this one gives a storm of DMARC reports on each my posting. Problem is, I need to unpack each of them to be sure, that these are false positives and I'm afraid, that it could lower reputation of my mail server IP address with major providers (like Google Mail). We did that replacement for a while, but people complained. We have ARC signing there, unfortunately it only works if you trust it. Aki On 04/02/2022 23:10 Sebastian Nielsen wrote: I get it too. These appear because they don't replace either MAIL FROM: or Mime From: with the list address. This causes validations to fail since the mailing list is trying to spoof mail in your name, and of course, anti-spoofing security is going to react. DKIM can be troublesome since mailing lists sometimes change or reencode content so DKIM signature fails. -Ursprungligt meddelande- Från: dovecot-boun...@dovecot.org För Lev Serebryakov Skickat: den 4 februari 2022 21:58 Till: dovecot@dovecot.org Ämne: dovecot mailing list (this mailing list), DKIM, SPF and DMARC My domain (serebrtyajov.spb.ru) has all these "new" e-mail technologies configured. It works fine till I write to this mailing list. After that I've got several DMARC reports about "spam" from my domain. All these reports are about my mailing list post. I don't have such problems with other mailing lists (FreeBSD ones, OpenJDK ones, and others). Looks like mailing list software for this mailing list is misconfigured. I'm sure, I'll get new after this message. -- // Black Lion AKA Lev Serebryakov -- // Black Lion AKA Lev Serebryakov
dovecot mailing list (this mailing list), DKIM, SPF and DMARC
My domain (serebrtyajov.spb.ru) has all these "new" e-mail technologies configured. It works fine till I write to this mailing list. After that I've got several DMARC reports about "spam" from my domain. All these reports are about my mailing list post. I don't have such problems with other mailing lists (FreeBSD ones, OpenJDK ones, and others). Looks like mailing list software for this mailing list is misconfigured. I'm sure, I'll get new after this message. -- // Black Lion AKA Lev Serebryakov
Problem with chrooted user, manage-sieve plugin, lmtp and Thunderbird manage sieve extension: wrong symbolic link to active script
I'm not sure, is it dovecot-managesieve plugin or Thunderbird extension. I have virtual users which are "chrooted" to their Maildirs, like this: user_query = SELECT '/usr/home/hosted/v-mail/%d/%n' AS chroot, \ '/' AS home, 'maildir:~/' AS mail, email.uid AS uid, email.gid AS gid FROM \ It works perfectly. I'm using sieve and manage-sieve plugins for dovecot. `.dovecot.sieve` link is relative, like this: v-mail@onlyone:~/serebryakov.spb.ru/lev # ls -l .dovecot.sieve lrwxr-xr-x 1 root v-mail 17 Feb 4 18:19 .dovecot.sieve -> sieve/TOTAL.sieve It works. But when I deactivate/activate script via Manage sieve extension in Thunderbird link becomes absolute (with respect to chroot): v-mail@onlyone:~/serebryakov.spb.ru/lev # ls -l .dovecot.sieve lrwxr-xr-x 1 root v-mail 17 Feb 4 18:19 .dovecot.sieve -> /sieve/TOTAL.sieve and delivery agent (LMTP) start to complain: v-mail@onlyone:~/serebryakov.spb.ru/lev # grep .dovecot.sieve /var/log/dovecot.log Feb 04 18:18:42 lmtp(l...@serebryakov.spb.ru)<36054>: Warning: sieve: file storage: Active sieve script symlink /usr/home/hosted/v-mail/serebryakov.spb.ru/lev/.dovecot.sieve is broken: Invalid/unknown path to storage (points to /sieve). I'm not sure, is it problem of manage-sieve plugin, lmtp sieve plugin or Thunderbird Sieve extension... -- // Black Lion AKA Lev Serebryakov
Re: Migrating to dovecot from gmail apps
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 28.03.2016 17:43, Phil Lello wrote: > *Is there currently a good webmail interface to dovecot, or > work-in progress?* If not, would a web interface be out-of-scope > for dovecot? I want to use SAML for authentication, so a solution > that relies on POP/IMAP doesn't meet my needs - unless I add > Kerberos into the mix, which is an additional learning curve, and > possibly not widely supported. roundcube is nice and lightweight, with "perosnal" featureset (but they add PGP support in latest beta, including client-side one with browser extension!). Horde is more "professional" and more like big groupware, and works better on mobile devices, but needs more effort to setup & configure. - -- // Black Lion AKA Lev Serebryakov -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQJ8BAEBCgBmBQJW+WBdXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePCvkP/0rwtCcGfjEtOCZTU9N+Yvcn io+tFQ4EYRN8xCLUSdckqOO1P03DGwHp2yqoTpU/uMWk3vX9jqlGs04fk30uq8TW 2bSTOo+x3EUkzj0wtIgUM25QGq8sII2Su1q20C1iqMyYofnOjmsJ1SoeSOD5xzCh h/LJYNpZjdLmnbesMAitkDFYAlfB0DSdXviP45j4QPL/P+CxwEb1bAbXLbN6Fuir CamjB+3y5Zf2dJGu1lknUfrATgaKz1jScSFx4S8eSxGXhYx0sLY1G3ovxItWFctS O+nhhUrxvfslt4TR6X01DLxZgqHE0ZXi+GD17puRQfRXwOzHv116DjpfayhngsI7 6wTM+QIC8/f9y6J0gpY8VE2UvEwLzcbPeVzhVYG0wulasChBBAqBYBF8lwUY/Nza cFcydxOjCPFnMehmhUHgVWL4IHkN7Seb8jXp1VSEk4Aet9EjO7xf+awI6s8vmClQ 2WcwQNuR6yPjD+N6e5IA8nxQr7tDbuxe4MPsvmdx3K639Fr6HhM8RDLPIsuCU+Jf CW/vYViw1K4jm9C7CoRL8VEssEWxiEmERwMdpibdaaWc3PdbmMDOWPqJRHVmYGY4 gO/ACGmH1ceB5uWGJrLokRVuGSfcCLW9DphnDJsJaUkGyNn33OIRPog7B3eIJp4k BzHNadWcGAmbgDWvlBH5 =Lzsh -END PGP SIGNATURE-
Re: SQLite driver and auth-worker credentials
Hello James, Wednesday, February 24, 2016, 11:17:12 PM, you wrote: >> But system should assign all secondary GIDs to effective UID? > separate 'group =' directive in addition to the 'user =' directive > (http://wiki2.dovecot.org/Services). Oh, I missed this one, thank you -- Best regards, Levmailto:l...@serebryakov.spb.ru pgpzxVMl6nDrJ.pgp Description: PGP signature
Re: SQLite driver and auth-worker credentials
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 24.02.2016 21:49, ja...@lottspot.com wrote: > The only secure way to enforce read-only access on a sqlite > database is via filesystem permissions. I would recommend setting > your database to 640 and ensure that any modifying process runs > with the owning UID. dovecot CAN NOT open SQLite database with read-only permissions set! It is problem №1 in my message: it uses sqlite3_open() API which requires read-write access and fails otherwise. > Dovecot processes will not assume they should run as a GID based on > the UID to which they are assigned; you need to explicitly set the > GID of But system should assign all secondary GIDs to effective UID? > the process (pretty sure this is the case anyways). Neither I or > anyone else on this list though will be able to offer much more > guidance than that unless you supply your `doveconf -n` output. Relevant parts: === passdb { args = /usr/local/etc/dovecot/dovecot-sql.conf.ext driver = sql } userdb { args = /usr/local/etc/dovecot/dovecot-sql.conf.ext driver = sql } service auth-worker { user = $default_internal_user } === And I have: % grep dovecot /etc/group dovecot:*:143: hostingdb:*:999:postfix,dovecot % ls -l /usr/local/etc/hostenv/db/mailhost.sqlite - -rw-rw 1 root hostingdb 14336 24 Feb 14:47 /usr/local/etc/hostenv/db/mailhost.sqlite % sudo su -m dovecot -c id uid=143(dovecot) gid=143(dovecot) groups=143(dovecot),999(hostingdb) % - -- // Black Lion AKA Lev Serebryakov -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQJ8BAEBCgBmBQJWzgIBXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePIK0QAJk0nTOGCCxc/A5LqLKbYzX4 9fKQKrfLfWZfKcdRW0flLefcrCj2AAL9aM/KybKDOIR/IqC/+s8KwLLi/VN0+CSa UaKOca2LsMJtiOVy0DOs+KXS5ynpBeTZ9UCna2lVlySoVNsXPw2pQ+uSQYtKFrVQ SRmF6XanVndW4mH7x0Pj4YJwSE55FC+RcuNP94th4uIHavV7LCjFuv4O7hTSax7d RuBxkW52ILZaD4RICHQ6T5bmhCUVgzmYNw2NV/sZdvT5CH6rszPQU8VR/3I3FYp5 /8rNXaScOgQ351WEBI/K9s8IjvazZjKi6jE0auvJb0qw0tD0N3UCrfALtIOKLcbb GWacmqlogidVYMgaggPJBEu4W6bkqBxDICp2FXvIzzRGuwYv4dks+IxLDpHIfZyH PrQLDK4qBsBo3/4dTd3CxJddHMYM1Hdnswntg/S2hwt6g20ZE+WB1YhPUWyfiFMh 0sn4timpuxW40AzYIO6jtE7/HB0hUMCajKiBemcVb8P4bMXmTSeLaflhYlq1/zty lDYcT+qIb29ug7rBY0ljuOWRSYTq8JJTxuM3QEJbjDLKmucNsGRmcF1j1Yb9fnZl 6jicP0CSyWvGtD051mz1AIBoT6WW1xtB6g/0gBnyEIHD2TSEWad53lZM8Kq3h6OD d8eBgznhx4DwJjF4u7XZ =OOJa -END PGP SIGNATURE-
SQLite driver and auth-worker credentials
I want to use SQLite database as storage for auth and user databases. I've encountered two problems here: (1) There is no way to open SQLite database read-only (via sqlite3_open_v2() call with SQLITE_OPEN_READONLY flag). It looks bad. I don't need (and want) to give dovecot rights to write to this database. (2) I've created system group "hostingdb", added "dovecot" user to it and gives 660 rights to database file, but still "auth-worker" could not open database and complains to log file. Now I'm set "user = root" for auth-worker, but I don't like it! Why auth-worker doesn't belong to "hostingdb" group? -- // Black Lion AKA Lev Serebryakov signature.asc Description: OpenPGP digital signature
Re: Per-folder (per-mailbox) message expiration with control from client side — is it possible?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 15/09/2014 11:26, Robert Schetterer wrote: i am not sure what exact you searching for if youre on linux try look here http://www.athensfbc.com/imap_tools/details.html It looks like good toolset, but not solution, http://imapsync.lamiral.info/ thunderbird also has plugins like https://addons.mozilla.org/de/thunderbird/addon/awesome-auto-archive/ I'm searching for solution like this, but running on server (from cron, by example) but I want configure it from client, like I configure sieve from Thunderbird. Best solution will be to translate Thunderbird native settings to some server solution, as typing long folder (mailbox) names by hands (and I have hierarchy with depth of 5!) is error-prone, so it is better to have GUI for configuration which shows real folders (mailboxes). It is place where I prefer clicking to typing. however i would prefer doveadm expunge via ssh or cron etc It is solution too, but see part about configuration. - -- Black Lion AKA Lev Serebryakov -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQJ8BAEBCgBmBQJUFrZhXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePIPcQANySDvl2Z/lEr0wnqllSyR22 BbLly7G3fs6anT9eNxsJ9UJokYu+yD2sEOVekX24/AnM5wfpSH5VqB6AJbFOBmgr ZUVhIL7Z2txGJ/0jfuGm97nkMl3O6yYGYuJyET+ZtPk1jEh70Idv1XPpPvG+h4r+ Bex0WLMRhE89PuCIAalRzfvOhTsEQ+TKu2Z0VhEccT56FQcPnIeaWo/Gg9eozOwq SrVSd/NJp5npKJYcL19BxQ4XGPQiJdUBIU9+2N20FWKlHS+p3GGGhILxlWasSu4k dJLR5UZXhD7tMYTIwY36batcow/Iv+/NLbSIusnsC98LuYrPBXQys5/9OeiVcYCs N4iCxWsGBQz7vtMlgVQ0+pBpXeLv/ox3vqtR86cXRqXzmRISIuGuMJvlQD1oIK33 gOL9R7+3PyqHa0khv0BiYuxdtkdGvcPQMOvtfWK21hULRspmk0faIFj/oVigzuif k7l8gMYi9GUhnNnn7ikZMEifiY4V9FW2RnWTjJ4x1YuWJ4Caa0METJfUqkUJwlR1 XIv0ni3kr7GJyWwsJ+0NzGhVuapf6iyGAzsdvukVVwW3ExWz0IFn3kd6l4DVkhIh IU9z/FyZ/ec9NzCAZaLpmErIWKgU6JxpC/vuAeDxSqNnkRB2rX5sURA5OKsa8aRH QVPpHiX5QR+vCBkhzOhA =9/4X -END PGP SIGNATURE-
Per-folder (per-mailbox) message expiration with control from client side — is it possible?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I'm migrating from «old skool» solution with one mail client (MUA) on one computer, which retrieves mail via POP3, sorts it and manages it locally to installation when there are several MUAs on different devices, accessing mail via IMAP4, and all sorting and management should be server-side. Sorting is “easy”: sieve. Here are some nuisance (like, if I want to rename folder/mailbox I need to edit script manually. BTW, it looks like that such thing could be done automagically, as language is very simple and find all references to mailboxes is not too hard task), but it works. But is here good solution for expiration? I have abut 50 folders (mailboxes) and rules are very different for them. They are mostly time-based (like last 30 days), but some folders are count-limited (last 2000 messages) and some folders should have time limit but non-read messages could not be deleted at all. Ok, Thunderbird almost could do it (it doesn't have “don't remove unread messages” option), but I don't want to have any meaningful configuration in MUAs, as each of it could be non-active for long time. Only thing I could find about expiration in dovecot documentation is doveadm expunge and helper Expire plugin, but it looks like very low-level solution for admins, it could not be managed from client side without direct ssh access to server and it is, in general, very inconvenient. Is here any better solution, maybe, 3rd party one? - -- // Black Lion AKA Lev Serebryakov -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQJ8BAEBCgBmBQJUFf2BXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePphIQAJUlYIFgXWBcWcrejcbOFgYf op+g35YF4wfwboPkgb/mKk46V3lcjmQImcHir2fci0SCsSSfARcU1a8y4iaeSkPU l949PaMYD8stfukfCbXjoY5pD5FIpj1Os7dDtgdoygp0tfsA4mDg1O0exZoduR9s q4NNPlsnlKOjX2KMOdcWI2AR8/xiFi4zvDTB/vibQPMy8kXVB8ld4Mk0BF1TUyOv 80KKOKzFDxQeLzvoEiNm6FDAqYGEYmpECUaFGXyKG1a7wslhEmEeShJUH5lsj3Oz niMxoO/KTEW0U9QucHQogFJzrcsKkJiOByjqQovWKgZziJll38lCN0O1murMmRBC bDLmN9t53JC7Ef88AbKsaFeULy/AxriohdGU6ePb8j/4W9KlERSJyvgxFkcMxHTg 9mSPiYAHaPr+Ycrzs9SOqhki5b6tI8Q39W/etRorb2us9FS1JE7ib4XLk5ufiUje XOLc4TACUh1qnd/5UUgcIuUrg/akSJgJLZoXg36LqUF/1OeMJHec4RMJresvewAZ RwseWHH/KpD7KxOWlO2Zw1ceHlVFDLWOO/4KWoy/XwZ66fQxEAkLO8ZVyeKMh5Nh dYL+yLQKZdgNWAjalK4lFmwz3u/9jNITwtP5GYLbYnP28EcbDfiN/w9oKGOI8fsD ulD+ca3vx29qdmGGYcKt =9+bG -END PGP SIGNATURE-
Does pigeonhole regex extension support PCRE?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I've tried to use negative look-ahead in :regex match like this: if header :regex List-Id svn-([^-]+)-(?!all)([^.]+)\.freebsd\.org { ... } and manage-sieve server complains on save about such regex with diagnostic repetition operator operand invalid :( - -- Black Lion AKA Lev Serebryakov -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQJ8BAEBCgBmBQJUFDOlXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePzeMP/20iuXilZwM7aZYbMy66J/xK xLldS1PDRSKbeMQKB+Qedw0nyO65/89Uk9UVjoIga+2xh7nURoeCkvFgEu5kss2q Nxeo9rURPrP8pYrNvhv6yi00NaJiQ5qEJ29V8a3vOnHcvB/lOoOTUDWRkNbA48Tm zFC1svaiy5dUPnfZ9YdMvSdFLRVU20ej34R+avodT1Rv+E2TpFOIiNRc69v1lUFD cv05PYfLpE1/k5boZTrGFs0g1Cy/PmC12KxOtvODnQ7S9iGkfbii2bOpI9vTsxky B4diYBms38vxBKMCG8ItkQn2r1TH3VOw1H2hqLt71IhI0Ix78+yTYu3F6zD3nkys KG2VRvbO9AZLvFRHkb3P6xn70OYUvQYoU3UUVZPmbe4eL2tEu7Hg0sxwdKPxi0am i6sf1nMdk/SPd/FNGZapS+hgC+Ik3rQSq+1x38SX4V0IeJ522apTxtJoewRyt4fM D5s+Rsha/oXNHkto55qNlbE2Dn/e/QXrL2Yc+cx9aWpHIz6Iv2iijnqrdgajHpvB E1Iq9+EPnKrkJKtzy/g26Kxlllaahefz/EV5rF27aWrBZGGNwnokIox5Ucrj6Ta1 Huic//Fz6pixSc9jx4WzvO+4b5mECPj8AgEKmfZ/4C04EXbn+v56vjHxx1fwn1gU SU0wiNU2/zfRUeToaUPc =x/yT -END PGP SIGNATURE-
sieve: is it possible to filter ALL mailing lists (with header List-Id) to their folders with ONE rule?
Hello, Dovecot. Is it possible to write one rule in sieve, which will: (1) Trigger on any message with List-Id header AND (2) Put this message to folder with name build from content of List-Id header, in such way, that message with List-Id List-Id: This is decription of list list-name.host.org will be put into folder org.host.list-name where . is namespace separator (so, such folders will be shown as hierarchy in mail client)? I don't want to write ~50 rules by hands and add new ones from time to time. I'm speaking about dovecot/pigeonhole sieve implementation, of course. All examples on net shows only manual one-rule-per-list approach :( -- // Black Lion AKA Lev Serebryakov l...@serebryakov.spb.ru
Re: sieve: is it possible to filter ALL mailing lists (with header List-Id) to their folders with ONE rule?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 09/12/2014 23:40, Dominik Breu wrote: Looks like it should work, only should be tinkered for different number of parts in ID. But it is better than full-manual :) Thank you. just a quick guess from my side: if header :matches List-ID *.*.* { fileinto INBOX.${3}.${2}.${1}; stop; } this should do the trick -dominik Am Freitag, den 12.09.2014, 20:37 +0200 schrieb A. Schulze: Lev Serebryakov: List-Id: This is decription of list list-name.host.org will be put into folder org.host.list-name where . is namespace separator (so, such folders will be shown as hierarchy in mail client)? :-) had the same idea while writing my sieve file ... Another idea would be a key - value map key : list-id value: foldername Andreas -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQJ8BAEBCgBmBQJUE04fXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePoHkP/2Q+YYlrBDOlsRcmc4HaeWOV NvbIuWx390deikxaXmD7YiHaE58m1sOzjLzUiySgfV1zA4BoXlD8AyzcSMeNMJz4 hH6XUlRG9iLUt8PikHBNyzoqWR/xEsQK7ELxdKhX7pAk66TG1h+pUj9L11Bmy4wb lkZ2em7HtDudQSg+GYAVEvb3UW79FzEAaWlyyy3qOmDpahGGOIJgQfqN9+m3TNU0 BTHvhI6NQNoodyq4G6VqsrAnO2bOjkbbdKG2lYg/TnfcoW9gy6AinEzVaE9QepO5 qebrRBj1RGfkqvBRm9dAfTtG1qrL7LfCKZFuQBAnwmG6/Wgot/bIWM2S8YGApY9X WfukwzAOmX16YQAmAZB+WGuKw3RFCwvT7NXi5/2xzf+Njzpj1UmVBjPIBCZ6fk85 k3ljYXbmF0deHBkpMpTc7hBFYJcU+nJhPArNQE3jpcVtmk28+k/PZkbLBL1AK9Lu rwBCNYRXVa/k7YtE6g2H9s21tP7lrepVj1YeD8ZyPlfgDZ2cPmFLZJ73hEdoPBCZ YBU7ViQ/zzV/PTtW1T66uz9N+Ex1LfwDI079T0b4kCZuABjq4bCuXKxVqAu52bWW eL4MytN5jjbrJ9jRGrCimhQwZTENBS5JdornOIOH82I/lhEN/Y9TJWRWMYWyR01p LitgYGm4t45cYf1SvA+j =Q7U7 -END PGP SIGNATURE-
Re: [Dovecot] dovecot-sieve (pigeonhole) -- is is possible to re-filter INBOX when filters have been updated?
Hello, Chris. You wrote 25 мая 2013 г., 1:26:55: And I wonder, is here simple way to re-filter INBOX after sieve filters have been changed? Any offline (desktop) mail client could run new filters on old messages -- is here any way to do this with dovecot-sieve (pigeonhole)? CR Take a look at sieve-filter, which is part of the pigeonhole package since CR 0.3. It should provide you the capability to do what you want. So, I need a way to run it from httpd (running with credentials of web user) on behalf mail subsystem (running with credentials of v-mail user) according command from PHP script... It could be non-trivial... -- // Black Lion AKA Lev Serebryakov l...@serebryakov.spb.ru
[Dovecot] Is it possible to palce detailed (with local+fol...@domai.com) messages not to INBOX/folder, but to INBOX/FixedSubfolder/folder?
Hello, Dovecot. Now, with enabled recipient_delimiter = +, lmtp_save_to_detail_mailbox and using LMTP, messages with detail in address, are placed in auto-created mailboxes. It is great, but what if I want to put all such mailboxes not in inbox directly, but lower in mailbox hierarchy? Is it possible without using sieve? -- // Black Lion AKA Lev Serebryakov l...@serebryakov.spb.ru
[Dovecot] dovecot-sieve (pigeonhole) -- is is possible to re-filter INBOX when filters have been updated?
Hello, Dovecot. I want to migrate to webmail (roundcube) over dovecot + sieve (pigeonhole). Now I'm using on-client (The Bat!) filters, but I need to have acccess to my mail everywhere, not only on my workstation. And I wonder, is here simple way to re-filter INBOX after sieve filters have been changed? Any offline (desktop) mail client could run new filters on old messages -- is here any way to do this with dovecot-sieve (pigeonhole)? I'm using postfix + dovecot LMTP to run sieve filters. -- // Black Lion AKA Lev Serebryakov l...@serebryakov.spb.ru
Re: [Dovecot] LMTP home, chroot, mail userdb fields.
Hello, Timo. You wrote 21 января 2011 г., 0:10:12: On Thu, 2011-01-20 at 15:21 +0300, Lev Serebryakov wrote: Jan 20 12:19:25 lmtp(38939, l...@domain.com): Error: mkdir(./cur) in directory /var/run/dovecot failed: Permission denied (euid=3(v-mail) egid=3(v-mail) missing +w perm: ., euid is not dir owner) Fixed: http://hg.dovecot.org/dovecot-2.0/rev/0fc2d00f83df Sorry, it doesn't. I've added some logging via i_error() (I know, it looks more like i_debug()) and now log shows me: Jan 21 14:01:36 lmtp(17650, l...@domain.com): Error: (LEV-ADDITION) Replace home (/) with chroot (/usr/home/hosted/v-mail/domain.com/lev) Jan 21 14:01:36 lmtp(17650, l...@domain.com): Error: (LEV-ADDITION) Set mail_home to (/usr/home/hosted/v-mail/domain.com/lev) Jan 21 14:01:36 lmtp(17650, l...@domain.com): Error: mkdir(./cur) in directory /var/run/dovecot failed: Permission denied (euid=3(v-mail) egid=3(v-mail) missing +w perm: ., euid is not dir owner) Jan 21 14:01:36 lmtp(17650, l...@domain.com): Error: Opening INBOX failed: Mailbox doesn't exist: INBOX Jan 21 14:01:36 lmtp(17650, l...@domain.com): Error: mkdir(./cur) in directory /var/run/dovecot failed: Permission denied (euid=3(v-mail) egid=3(v-mail) missing +w perm: ., euid is not dir owner) Jan 21 14:01:36 lmtp(17650, l...@domain.com): Info: gJIWCJBnOU3yRAAAWL5c8Q: msgid=unspecified: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2011-01-21 14:01:36] Jan 21 14:01:36 lmtp(17650, l...@domain.com): Error: BUG: Saving failed to unknown storage Jan 21 14:01:36 lmtp(17650): Info: Disconnect from local: Client quit -- // Black Lion AKA Lev Serebryakov l...@serebryakov.spb.ru
[Dovecot] LMTP home, chroot, mail userdb fields.
Hello, Dovecot. I'm using postfix + dovecot with pure virtual users. postfix uses standard virtual transport, and dovecot fetches such fields from userdb: chroot: /usr/home/hosted/v-mail/%d/%n home: / mail: maildir:. Everything works Ok -- dovecot founds users' mail. Now, after upgrade to dovecot2, I want to use it LMTP server as virtual_transport in postifx. I've changed virtual_transport setting to lmtp:unix:/var/run/dovecot/lmtp. dovecot's LMTP can not deliver messages, because it seems that it uses userdb fields in some OTHER way. Errors look like this: Jan 20 12:19:25 lmtp(38939): Info: Connect from local Jan 20 12:19:25 auth: Info: mysql: Connected to /tmp/mysql.sock (mailhost) Jan 20 12:19:25 lmtp(38939, l...@domain.com): Error: mkdir(./cur) in directory /var/run/dovecot failed: Permission denied (euid=3(v-mail) egid=3(v-mail) missing +w perm: ., euid is not dir owner) Jan 20 12:19:25 lmtp(38939, l...@domain.com): Error: Opening INBOX failed: Mailbox doesn't exist: INBOX Jan 20 12:19:25 lmtp(38939, l...@domain.com): Error: mkdir(./cur) in directory /var/run/dovecot failed: Permission denied (euid=3(v-mail) egid=3(v-mail) missing +w perm: ., euid is not dir owner) Jan 20 12:19:25 lmtp(38939, l...@domain.com): Info: XXVtE00oOE0bmAAAWL5c8Q: msgid=unspecified: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2011-01-20 12:19:25] Jan 20 12:19:25 lmtp(38939, l...@domain.com): Error: BUG: Saving failed to unknown storage Jan 20 12:19:25 lmtp(38939): Info: Disconnect from local: Client quit How should I change my userdb output to make both POP/IMAP and LMTP processes happy? -- // Black Lion AKA Lev Serebryakov l...@serebryakov.spb.ru
Re: [Dovecot] LMTP home, chroot, mail userdb fields.
Hello, Per. You wrote 20 января 2011 г., 18:30:44: chroot: /usr/home/hosted/v-mail/%d/%n home: / mail: maildir:. For starters, I think you need to return a field mail containing perhaps: maildir:/usr/home/hosted/v-mail/domain/user Then IMAP4/POP3 processes will do chroot to /usr/home/hosted/v-mail/domain/user and will try to find maildir:/usr/home/hosted/v-mail/domain/user RELATIVE to chroot. Mail will be delivered, but can not be acessed. -- // Black Lion AKA Lev Serebryakov l...@serebryakov.spb.ru
Re: [Dovecot] LMTP home, chroot, mail userdb fields.
Hello, Per. You wrote 20 января 2011 г., 21:28:11: chroot: /usr/home/hosted/v-mail/%d/%n home: / mail: maildir:. Then IMAP4/POP3 processes will do chroot to /usr/home/hosted/v-mail/domain/user and will try to find maildir:/usr/home/hosted/v-mail/domain/user RELATIVE to chroot. Mail will be delivered, but can not be acessed. Okay, I see how you've set it up now. Any chance that lmtp is having problems with chroot()ing ? I don't think, that lmtp needs real chroot at all (it can degrade performance and spoil whole idea of long-living delivery process), but, IMHO, lmtp should calculate full path from all three components -- chroot + home + maildir. And it seems, that lmtp doesn't use chroot variable at all. -- // Black Lion AKA Lev Serebryakov l...@serebryakov.spb.ru
Re: [Dovecot] OT: best linux imap client for dovecot
Hello, Axel. You wrote 18 февраля 2010 г., 18:45:21: This is not a my-email-client-is-better-than-your-email-client thread, I just want to know which client(s) make proper use of imap features for fast searches/copies/deletions etc. IMHO, all existing clients suck, but not only due to IMAP4 [mis]using, but because UI is terrible. For example, I don't lnow any client with proper, accurate text-only quoting (with ' ' marks). Some clients forget to spilt long lines, some don't add ' ' when I split quote line by hands, some don't remove ' ' automagically when lines in quote are merged (by deleting CR/NL on previous line), and things become even mnore horrible whrn here are many quotes of different level. I'm not mention clients, which have top-quoting-only setting or doesn't have templates for editor (no, a signature file IS NOT A TEMPLATE!) Threading, working with mailing lists (with all these List-XXX headers which are standard now), using diffferent From names and e-mails for different folders (and, yes, different templates), differnet templates for different replies, good filters (Thunderbird's filters creation UI is bad, IMHO), flexible but esy-to-setup-default purging rules, etc, etc, etc -- all these features are missing or implemented horribly wrong in most clients (I don't claim, that every client has every feature from this list implemented wrong, but most of clients has 1/2 or more of this list absent or unusable). There is one client which have not-so-bad-UI (I can not use EMACS GNU, but I think everything COULD BE DONE in EMACS, so, may be THERE ARE TWO clients): Ritlab's The Bat!. But it works with IMAP terribly wrong, works only on Windows, costs money, and is somwhere buggy :( -- // Black Lion AKA Lev Serebryakov l...@serebryakov.spb.ru
Re: [Dovecot] v2.0 configuration paths
Hello, Dovecot. You wrote 31 августа 2009 г., 20:33:57: 1. Change default sysconfdir from $prefix/etc to $prefix/etc/dovecot (that's what most distros do anyway) Yes! 2. Install *.conf files to $sysconfdir/example/ without the -example part in any of the config files. And yes! -- // Black Lion AKA Lev Serebryakov l...@serebryakov.spb.ru
[Dovecot] sieve: variable extension?
Hello, Dovecot. Does dovecot sieve supports variable extension (rfc5229)? It is very useful for users with large amount of mailing lists, as it allows to write only one rule for all lists (filtering by List-Id). If it is not supported, is here any plans to support it? I can try to implement it, but I don't want to duplicate work, if somebody has this extension in pipeline. -- // Black Lion AKA Lev Serebryakov l...@serebryakov.spb.ru
Re: [Dovecot] sieve: variable extension?
Hello, Stephan. You wrote 13 августа 2009 г., 11:35:26: Does dovecot sieve supports variable extension (rfc5229)? It is very useful for users with large amount of mailing lists, as it allows to write only one rule for all lists (filtering by List-Id). If it is not supported, is here any plans to support it? I can try to implement it, but I don't want to duplicate work, if somebody has this extension in pipeline. If you're using Dovecot v1.2, it is supported: Yep, thank you. Last reason to upgrade FreeBSD port to 1.2.x (port's maintainer doesn't answer on requests)... -- // Black Lion AKA Lev Serebryakov l...@serebryakov.spb.ru
Re: [Dovecot] Dovecot-1.1.9 fails to work with Thunderbird
Hello, Timo. You wrote 26 января 2009 г., 04:12:23: On Sat, 2009-01-24 at 08:47 -0600, David Favor wrote: Jan 24 06:34:29 net1 dovecot: uid specified multiple times for david-x...@coolsurf.com Fixed: http://hg.dovecot.org/dovecot-1.1/rev/943339025578 And a related fix: http://hg.dovecot.org/dovecot-1.1/rev/69901064e657 I guess I'll have to get v1.1.10 out. 1.1.10 from FreeBSD ports, old (1.1.8) config, nothing works with virtual users, with uid specified multiple times for login in log files. When I've commented out `prefetch' userdb, everything works Ok with 1.1.10 = dovecot -n WHICH WORKS auth default: mechanisms: plain login digest-md5 cram-md5 ntlm rpa apop user: dovecot-auth username_chars: abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz01234567890...@+ verbose: yes debug: yes passdb: driver: sql args: /usr/local/etc/dovecot-sql.conf userdb: driver: sql args: /usr/local/etc/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: 384 = dovecot -n WHICH WORKS = dovecot -n WHICH DOESN'T WORK auth default: mechanisms: plain login digest-md5 cram-md5 ntlm rpa apop user: dovecot-auth username_chars: abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz01234567890...@+ verbose: yes debug: yes passdb: driver: sql args: /usr/local/etc/dovecot-sql.conf userdb: driver: prefetch userdb: driver: sql args: /usr/local/etc/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: 384 = dovecot -n WHICH DOESN'T WORK -- // Black Lion AKA Lev Serebryakov l...@serebryakov.spb.ru