Re: Testin new installation
On Sat, Jun 13, 2015 at 03:41:26PM -0400, Steve Matzura wrote: Trying ::1... # this is certainly suspect Escape character is '^['. Connection closed by foreign host. This means the daemon is listening but errors out before able to process. Check the logs. Might be a dependency not starting, wrong permissions, certificate wrong/expired, etc.. B
Re: Sorry, another faq
On Fri, Jun 12, 2015 at 01:37:19PM +0200, Martin S wrote: I've installed a mailserver according to these instructions: http://www.server-world.info/en/note?os=CentOS_7p=httpdf=13 When I try to login to the server through Roundcube webmail I get Connection to storage server failed. So checking on this [12-Jun-2015 11:28:53 +]: 6jap13r2 IMAP Error: Login failed for martin from 83.251.209.249. Could not connect to ssl://myserver:993: Permission denied in /usr/share/roundcubemail/program/lib/Roundcube/rcube_imap.php on line 198 (POST /roundcubemail/? /etc/roundcubemail/config.inc.php Has the following: $config['default_host'] = 'ssl://mail.myserver.tld'; [address obfuscated] $config['default_port'] = 993; as I understand should be correct. I've been looking at various posts on the net that says the problem is a permission on dovecot, but I fail to find anything to how to fix this as it looks right to me. Any suggestions? What do the dovecot logs say? Can you connect from the roundcube system (via nc/telnet) to mail.myserver.tld port 993? Did you use the right roundcube settings for IMAP login? $rcmail_config['imap_auth_type'] Is your certificate valid? B
Re: Sorry, another faq
On Fri, Jun 12, 2015 at 02:11:21PM +0100, Darac Marjal wrote: On Fri, Jun 12, 2015 at 03:01:17PM +0200, Daniel Tröder wrote: Am 12.06.2015 um 13:37 schrieb Martin S: * Test to connect to the IMAP server with telnet first: # telnet mail.myserver.tld 993 If you cannot connect there is a network/firewall problem. That won't work, as port 993 is IMAPS. openssl s_client -connect mail.myserver.tld:993 should be considered an equivalent command. This was meant as a simple check to see if the service was running/firewalled. Not a full login routine. B
Re: Sorry, another faq
On Fri, Jun 12, 2015 at 03:24:32PM +0200, Martin S wrote: I get openssl s_client -connect mail.myserver.tld:993 connect: Connection refused connect:errno=111 Both from a client laptop and on the roundcube server. Both roundcube and dovecot are installed on the same server. That should give you a good idea about what's wrong with your setup. http://lmgtfy.com/?q=dovecot+ssl+setup# B
Re: Does Dovecot allow different clients to subscribe different subsets of IMAP folders?
Hi Steve, I don't know if dovecot can use different 'subscriptions' but you can create different accounts and then link (ln -s) the relevant folders in each respective maildir. Cheers, B On Thu, Jun 04, 2015 at 01:40:57PM +0100, Steve wrote: I have a working Dovecot IMAP server (v. 2.2.9) where I have a single user but a lot of folders (over 800 in total, hierarchically arranged, about 50 of which are in active use.) I have multiple clients (including k9Mail on Android and Thunderbird on Linux and Windows). These clients all present a consistent subscription to a single subset of the available folders . What I'd like to be able to do is (somehow) allow different devices (different email clients) to subscribe to a different subset of folders. For example, I may want K9mail on my phone to be subscribed only to my main Inbox - but for Thunderbird on Windows to also be subscribed to active mailing-list folders. Does Dovecot support such a mode of operation? If so, how do I configure it? If not, what options are there to achieve the desired end result - i.e. different devices/IMAP clients subscribed to different subsets of the universe of folders available to a single user. Mandatory details: Version : 2.2.9 Configuration: See http://paste.ubuntu.com/11564807/
Re: multi sync (2 servers) + selective sync + trigger
Daniel, On Sat, May 30, 2015 at 09:26:32AM -0300, Daniel van Ham Colchete wrote: B, I really like the idea of N-way replication. Pairs are ugly, they cost double! Even if you have 20 servers, when one goes down all that IO traffic goes to just one. So, what I did here was a (kind of) DHT-based n-way replication, where the node for the second copy is independent of where the first copy is. For that you will have to use the mail_replica inside your userdb. Here I'm using MySQL. The catch is that the mail_replica is now always the same for the same user. The first server need a mail_replica pointing to the second while the second need a mail_replica pointing to the first. In order to do that I have a table with two fields: hostA and hostB. Each dovecot will have to figure out witch one to use. So, my dovecot-sql.conf-ext  looks like: user_query = select email, uid, gid, home, concat('tcp:', IF(hostA = '10.0.3.11', hostB, hostA), ':12345') as mail_replica from users where email='%Lu' and (hostA='10.0.3.11' or hostB='10.0.3.11') password_query = SELECT email as user, password FROM users WHERE email = '%Lu' iterate_query = SELECT email AS user FROM users WHERE hostA = '10.0.3.11' or hostB='10.0.3.11' On each host you have to put the right IP on each dovecot-sql.conf.ext. It works perfectly! And it is nice too! Imagine you have a 10 node cluster and the first 2 nodes fail. Instead of having 10% of your users down, only 2.2% (2 x 1/10 x 1/9) of  your users will be offline! Also if each node can handle 10k users and if you want to have N+1 redundancy you can have 90k users in the same servers, instead of 50k if you had pairs. So, availability is UP and costs are DOWN! Is there really a choice here? Hehe. Caveats: - Dovecot Proxy don't understand the concept of having 2 (or more) active places for the same account. It seems like you would need an outside monitor that would check the network every x seconds and change the proxy field on the database when a node went down to hostA or hostB. I think this is madness so I had to write my own POP3/IMAP/LMTP Proxy (it's not that hard) to try the primary first and if that socket don't connect in 1 second we go straight to the second without the user noticing it. It is really bad that Dovecot Proxy can't talk replication. This is very similar to how I would work around it: RR-DNS or service discovery for the other nodes in mail_replica, which would randomly sync data to another node. The big problem with this is that propagation is slow. Therefor my question if any mail triggers all mailboxes with changes to be synced or just the mailbox for the one being delivered which would speed that up. For POP3/IMAP, what do you use? perdition? What for LMTP? - Your availability goes really UP (lots of nines) when you add a third copy while still having lower costs than with pairs, but you can't use Dovecot's notificator/aggregator/replication plugins for that to make everything run smoothly and I don't think that an outside/cron-based dsync is an option. I guess for full syncs it would but that removes the real-time aspect of things.  - If you really use DHT-like algorithms, rebalancing your cluster will require mininum data movement and you add or remove nodes. It will require a small change on the SQL queries above so that the new node also recognizes the new user, but it is easy to do. Let me know what you think! I'm wonder why Timo didn't expand mail_replica to be a list of servers rather than just accepting one. That would sort out a lot of this already. mail_replica = 'server1,server2, .. serverN' Am I missing something? Cheers! B
multi sync (2 servers) + selective sync + trigger
Hi all, I've been researching ways to replicate mail across multiple mailstores and have a few questions. Synching 2 mailstores (M1 M2) via dsync works fine. I want to add a 3rd and 4th (M3 M4) server to also be synced. Multi-sync (2 servers): 1) How do I tell M1 and/or M2 to also sync to M3 and/or M4? Selective sync: 2) How do I sync specific domains to specific servers and not to others? Trigger: 3) Does a normal sync check only check the mailbox being changed or does it get triggered on mailbox changes to check ALL indexes and sync all changed mailboxes accordingly? 4) Can I use an email to trigger a sync for any other mailboxes which might be out of sync? TIA B