AW: Dsync setup... help needed
What is you configuration please? - Mit freundlichen Grüßen / Distinti saluti / Kind regards De Zordo Patrick patr...@spamreducer.eu -Ursprüngliche Nachricht- Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von Sinergizmas Sin ergizmas Gesendet: Freitag, 29. August 2014 17:41 An: dovecot@dovecot.org Betreff: Dsync setup... help needed Hello, I tried to implement Dsync (doveadm version 2.2.10) following https://www.evilcoder.org/2014/08/22/automatic-replication-with-dovecot/ but had no luck. SSH commands working quite well, but I need to respond more quickly. So TCP looks promising. I have Centos 6, Dovecot 2.2.10. I did everything that is written there, but after I restart dovecot doesn't sync. Then i ran netstat command but no service listen to port 12345 also. Iptables service are of in testing scenario... smime.p7s Description: S/MIME cryptographic signature
mail_location hashing lowercasing?
Currently, I'm using mail_location = mdbox:/var/spool/mail/%Ld/%Ln/mdbox Now I want to add a partitioning (so I don'T have all directories in one single directory), but can't find the right syntax: mail_location = mdbox:/var/spool/mail/%Ld/HASHING HERE/%Ln/mdbox It seems like I'd need to use %N (new hash) on %Ln and then take a substring of that. %2NLn 2 Characters of the %N hash of %Ln (the lowercase username) But this gives me a verbatim Ln on the path! -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
Re: mail_location hashing lowercasing?
Ralf Hildebrandt r...@sys4.de wrote: Currently, I'm using mail_location = mdbox:/var/spool/mail/%Ld/%Ln/mdbox Now I want to add a partitioning (so I don'T have all directories in one single directory), but can't find the right syntax: mail_location = mdbox:/var/spool/mail/%Ld/HASHING HERE/%Ln/mdbox It seems like I'd need to use %N (new hash) on %Ln and then take a substring of that. %2NLn 2 Characters of the %N hash of %Ln (the lowercase username) But this gives me a verbatim Ln on the path! Hm. I have home=/srv/mail/%2NLn/%2.16NLn/%Ln/ in my auth-ldap.conf.ext and this gives me a path like this: /srv/mail/0/08/myusername I use version 2.2.13 of dovecot. Beware: %2NLn does not give you two characters, it just gives you the values 0 and 1, because it means mod(2,new_hash(lowercase(username))) If you want the first 2 characters, you need %256NLn, or better %2.256NLn, see the section about modifiers in http://wiki2.dovecot.org/Variables Grüße, Sven. -- Sigmentation fault. Core dumped.
Creating a backup of incoming mail
This is my master.cf line for dovecot virtual users: dovecot unix- n n - - pipe flags=DRhu user=vpopmail:vchkpw argv=/usr/local/libexec/dovecot/dovecot-lda -f ${sender} -d ${user}@${nexthop} -m ${extension} I would like to also write every mail, before delivery to the user, to a backup location like /backup/imap/mm/dd Possible? -- 'On whose authority?' demanded Wert. Trymon turned his grey eyes on him. 'Mine. I need no other.' --The Light Fantastic
Re: Creating a backup of incoming mail
On 30/08/2014 12:26 PM, LuKreme wrote: I would like to also write every mail, before delivery to the user, to a backup location like /backup/imap/mm/dd You could use a global sieve_before filter. http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration
Need help to compile and install a minimal dovecot imap plugin
I am trying to create a plugin that adds a new IMAP capability. So far I have this: const char *foo_plugin_version = DOVECOT_ABI_VERSION; static struct module *foo_module; static imap_client_created_func_t *next_hook_client_created; static void foo_client_created(struct client **client) { str_append((*client)-capability_string, XFOO); if (next_hook_client_created != NULL) { next_hook_client_created(client); } } void foo_plugin_init(struct module *module) { i_info(“init”); foo_module = module; next_hook_client_created = imap_client_created_hook_set(foo_client_created); } void foo_plugin_deinit(void) { i_info(“deinit”); imap_client_created_hook_set(next_hook_client_created); } const char foo_plugin_binary_dependency[] = imap”; On Fedora 20, with the dovecot and dovecot-devel packages installed, I compile this with: cc -Wall -shared -fPIC -DHAVE_CONFIG_H -I/usr/include/dovecot -o lib20_foo_plugin.so foo-plugin.c And then install with: sudo cp lib20_foo_plugin.so /usr/lib64/dovecot/ (I also have mail_plugin_dir = /usr/lib64/dovecot in 10-mail.conf) I enable this plugin in /etc/dovecot/conf.d/20-imap.conf with: protocol imap { mail_plugins = $mail_plugins foo } But … nothing happens. No warnings, no errors, no crashes. How do I debug this? Am I missing something obvious? Does the naming of the plugin matter? S.
Tarballs for dovecot 1.2.17 and pigenhole where to find it?
Just like to have in case i need to rebuild from source on gentoo, since i change mysql from 5.1 to 5.5 slot i think dovecot need rebuilding
Re: Tarballs for dovecot 1.2.17 and pigenhole where to find it?
Am 30.08.2014 um 23:28 schrieb Benny Pedersen: Just like to have in case i need to rebuild from source on gentoo, since i change mysql from 5.1 to 5.5 slot i think dovecot need rebuilding why don't you go just to the download page which takes the same time than write a mail? http://www.dovecot.org/download.html there are two headlines and one contains your subject * Stable releases * Old stable releases signature.asc Description: OpenPGP digital signature
Re: Tarballs for dovecot 1.2.17 and pigenhole where to find it?
On 08/30/2014 09:28 PM, Benny Pedersen wrote: Just like to have in case i need to rebuild from source on gentoo, since i change mysql from 5.1 to 5.5 slot i think dovecot need rebuilding You will find them on the project's download sites: Download v1.2.17 http://dovecot.org/download.html Download v0.1.19 sources http://pigeonhole.dovecot.org/download.html Note: Dovecot v1.x is obsolete - no longer supported. Regards, Pascal -- The trapper recommends today: c01dcofe.1424...@localdomain.org
Re: Tarballs for dovecot 1.2.17 and pigenhole where to find it?
On 30. aug. 2014 23.46.56 Pascal Volk user+dove...@localhost.localdomain.org wrote: On 08/30/2014 09:28 PM, Benny Pedersen wrote: You will find them on the project's download sites: Download v1.2.17 http://dovecot.org/download.html Download v0.1.19 sources http://pigeonhole.dovecot.org/download.html Thanks Note: Dovecot v1.x is obsolete - no longer supported. Its opensource, and i have no maintaince problem with it, but yes i have 2.x in plan, but not yet