Timo Sirainen Dovecot Oy h2p://www.dovecot.org/talks/



Similar documents
DOVECOT Overview. Timo Sirainen Chief Architect Co-Founder

Open-Xchange Server High availability Daniel Halbe, Holger Achtziger

Hosted CanIt. Roaring Penguin Software Inc. 26 April 2011

Business Internet service from Bell User Guide

Domains Help Documentation This document was auto-created from web content and is subject to change at any time. Copyright (c) 2016 SmarterTools Inc.

Configuring a TeleVox account on an ios device.

Linux VPS with cpanel. Getting Started Guide

MailEnable Scalability White Paper Version 1.2

Configuring Your Gateman Server

Anti-Spam Configuration in Outlook 2003 INDEX. Webmail settings Page 2. Client settings Page 6. Creation date Version 1.2

Appendix. Web Command Error Codes. Web Command Error Codes

Plesk Panel HEAnet Customer Guide

F-Secure Messaging Security Gateway. Deployment Guide

Getting Started Guide Unix Platform

WEB2CS INSTALLATION GUIDE

Departmental (Service) Account Set Up

Talk-101 User Guides Mailgate Administration Guide

INSTALLATION AND CONFIGURATION GUIDE (THIS DOCUMENT RELATES TO MDAEMON v ONWARDS)

Resonate Central Dispatch

Booth Gmail Configuration

Sending an Encrypted/Unencrypted Message. Let's Begin: Log In and Set Up Security Questions. Create Additional ProMailSource Accounts:

How to configure your client

Quick Start Guide Getting started with your Hetzner package

Simple. Control Panel. for your Linux Server. Getting Started Guide. Simple Control Panel // Linux Server

A Modular Architecture Using Open Source Components

Quick Start Guide Managing Your Domain

Spe. SpearMail Sets up Complete Messaging System

Features of AnyShare

Setting Up Your Assisted Service Plan Dedicated Server

Configuring Security for SMTP Traffic

e- storage Mail Archive

1 Accessing accounts on the Axxess Mail Server

Issue 2EN. Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation

Implementing MDaemon as an Security Gateway to Exchange Server

HGC SUPERHUB HOSTED EXCHANGE / 2007 SMART PANEL USER GUIDE

Office 365 Migration Performance & Server Requirements

Monitoring Microsoft Exchange to Improve Performance and Availability

Getting Started Guide. Getting Started With Your Dedicated Server. Setting up and hosting a domain on your Linux Dedicated Server using Plesk 8.0.

Internet Security [1] VU Engin Kirda

User Manual VU-Mail Thunderbird (IMAP) February 10

User guide Business Internet features

Sonian Getting Started Guide October 2008

ITA Mail Archive Setup Guide

HDFS Users Guide. Table of contents

CompleteView Admin Console Users Guide. Version Revised: 02/15/2008

Table of Contents. Cisco Using the Cisco IOS Firewall to Allow Java Applets From Known Sites while Denying Others

Volume SYSLOG JUNCTION. User s Guide. User s Guide

CSE/ISE 311: Systems Administra5on Administra5on

USING YOUR LOGIX HOSTED

Enterprise Mail User Manual Advanced Internet Technologies, Inc. June 2012

Gmail Or other POP3

Using Depositit to Backup Microsoft Exchange Server

Parallels Plesk Panel 11 for your Windows Server

Moving to Plesk Automation 11.5

Firewall Server 7.2. Release Notes. What's New in Firewall Server 7.2

Active Directory - User, group, and computer account management in active directory on a domain controller. - User and group access and permissions.

ENTERPRISE LINUX NETWORKING SERVICES

Before starting to use the new system you will need to know the password to your e-wire account.

Simplicity Itself. User Guide

WEBROOT ARCHIVING SERVICE. Getting Started Guide North America. The best security in an unsecured world. TM

WEB2CS INSTALLATION GUIDE

What is included in the ATRC server support

Exchange Outlook Profile/POP/IMAP/SMTP Setup Guide

OpenSRS Service DNS Configuration Guide

Firewall, Mail and File server solution

GL275 - ENTERPRISE LINUX NETWORKING SERVICES

Toll Free: International:

UM8000 Voic System Administration Guide

When you first login to your reseller account you will see the following on your screen:

Transferring Your Internet Services

Getting Started - The Control Panel

GL-275: Red Hat Linux Network Services. Course Outline. Course Length: 5 days

Google File System. Web and scalability

Web Hosting: Pipeline Program Technical Self Study Guide

Parallels Plesk Panel 11 for your Linux server

Domain Name. Domain Registrar. Web Site cpanel URL: Username: Password: Username: Password:

Help for System Administrators

WHY USE ILLUMIN8 MARKETING FOR HOSTING YOUR WEB SITE?

Migration guide. Business

PrinterOn Enterprise Administration Support Guide

IceWarp to IceWarp Server Migration

5053A: Designing a Messaging Infrastructure Using Microsoft Exchange Server 2007

Introduction to cpanel

Quick Start Guide. Your New Account

Maintaining Non-Stop Services with Multi Layer Monitoring

Configuring your client to connect to your Exchange mailbox

BOTTOM UP THINKING SETUP INSTRUCTIONS. Unique businesses require unique solutions CLIENT GUIDE

SOPHOS PureMessage Anti Spam Program

Hostopia Web Hosting - Getting Started

qliqdirect Active Directory Guide

Kerio Connect. Kerio 4D Migration. Kerio Technologies

Getting Started With Your Dedicated Server. Getting Started Guide

Mail Server Administration

Getting Started With Your Virtual Dedicated Server. Getting Started Guide

Reliable & Secure . Professional, Dependable, Complete Easy to Learn, Use and Grow

How To Synchronize With Gmail For Business On Shoretel

Transcription:

Timo Sirainen Dovecot Oy

Talk Overview Quick introduc?on Tips & quick feature overviews dsync- based replica?on Ques?ons

Dovecot? IMAP, POP3 mail server Mail delivery agent + LMTP Sieve mail filtering language + ManageSieve (by Stephan Bosch) (No SMTP. PosSix/Exim is fine) Now, an SMTP submission server maybe..

Dovecot Features High performance (low disk I/O usage) Highly configurable/flexible Modular code, plugins can do ~anything Admin- friendly All errors are logged Understandable error messages Automated fixing of (corrup?on) errors

PosSix Integra?on SMTP AUTH via Dovecot auth Mail delivery via LMTP User lookups via tcp service to Dovecot auth RCPT TO- stage over quota reject via Dovecot quota- status policy server Only aliases need to be configured to PosSix

Logging Error log should stay empty! Separate error log makes this easy to check. All errors are either due to misconfigura?on, server trouble or Dovecot bug..

Mail Dele?on Logging For answering Why did you lose my emails? h2p://wiki2.dovecot.org/plugins/maillog imap(user): copy - > Trash: uid=908, msgid=<123.foo@bar> imap(user): deleted: uid=908, msgid=<123.foo@bar> imap(user): expunged: uid=908, msgid=<123.foo@bar>

Sessions in Log Each IMAP/POP3 connec?on gets session ID Each log line can include session ID imap- login, pop3- login auth imap, pop3 Session ID passes through Dovecot proxies mail_log_prefix = %s(%u,<%{session}>):

Why Is It Slow? CPU usage? Memory (swap) usage? Disk I/O? SSD to indexes stats & imap_stats plugin h2p://www.dovecot.org/tools/stats- top.pl h2p://wiki2.dovecot.org/performancetuning

Mailbox Formats Maildir for super- reliability mdbox / sdbox for performance Tries very hard to recover from corrup?on Single instance a2achment storage For mdbox & sdbox formats

Full Text Search Indexes Lucene Easy, no server Somewhat old.. Solr Java server Up- to- date Lucene (Squat is deprecated) Easy to add more!

Mailboxes Ideally same mailbox names for everyone Sent, Trash, Draps, Junk Auto- create? Auto- subscribe? IMAP SPECIAL- USE becoming more common Client translates to local language Gmail, ios, Outlook 2013 See example- config/conf.d/15- mailboxes.conf

Virtual Mailboxes All messages in all mailboxes Search from all mails Unseen messages in all mailboxes Gmail- like conversa?on views Very useful for customized webmails

Lazy Expunge Allow users to undelete mails Move mails to another namespace without quota Delay final expunging un?l later e.g. nightly cronjob dele?ng 1w old mails or combine with quota+trash plugins to keep lazy- expunge quota Virtual all expunged mails

doveadm mail commands fetch expunge copy move

doveadm import Proper way to import mails from a backup Or copy mails between users Search query to select mails

doveadm exec doveadm exec imap u user@domain No password required For quick tes?ng For scrip?ng: prins a select inbox\n b search return (save) from user1@domain\n c store $ +flags \\seen\n d logout\n doveadm exec imap u user@domain

doveadm dump See contents of Dovecot s binary files indexes Lucene FTS indexes IMAP COMPRESS DEFLATE stream For debugging mainly

dsync- Based Migra?on doveadm sync / doveadm backup Between any IMAP/POP3 <- > Dovecot Also Dovecot <- > Dovecot! (mailbox format, filesystem, server, etc. change) Zero (meta)data loss Zero down?me h2p://wiki2.dovecot.org/migra?on/dsync

Replica?on Possibili?es Block device (e.g. DRBD) FS corrup?on replicated async=data loss, sync=too slow unless near Cluster POSIX filesystems Open slow, complex, buggy Object storage Simpler cluster filesystems = easier to make it work! Open high latency Dovecot object storage plugin Applica?on- level replica?on (dsync)

dsync- Based Replica?on dsync does two- way merging of mailboxes Both sides can do changes - > no data loss Replica?on triggers run dsync asynchronously Over SSH / TCP / TCP+SSL Geographically distributed cluster Two virtual servers from different companies - > cheap HA mail cluster

Incoming Email Incoming Email IMAP User Read replicated mail Dovecot -Proxy/Director -Backend -SMTP Server Datacenter Helsinki dsync replication over SSH/TCP/TCP+SSL Dovecot - Proxy/Director - Backend - SMTP Server Datacenter Tokyo

dsync- Replica?on Efficiency v2.2 supports stateful sync replicator does full sync if no state full sync periodically (just in case) stateful sync for each change a few kb of traffic Saving new mails have priority

dsync- Replica?on Issues IMAP UID renumbering for conflic?ng new mails IMAP clients redownload mails Some other (mainly theore?cal) conflicts Avoid conflicts by accessing user s mails always via the same backend Unless it s down

dsync- Replica?on Load Balancing Load balancing / HA by: a) Actual load balancer b) Mul?ple IPs in DNS A records (low TTL) Dovecot proxy/director answers and redirects to backend If the primary backend is down, use the other With widely separated geo- clusters proxying adds latency.. No proxying, but geo- DNS / rou?ng?

Ques?ons?