background preloader

Mail

Facebook Twitter

Ii.com · Procmail Quick Start: An introduction to email filtering with a focus on procmail by Nancy McGough. What is Procmail and What You Need to Use this Quick Start Procmail is free/libre open-source software that is both a mail processor and a mail delivery agent (MDA). It can be used by either a system administrator or a user to automatically process and deliver incoming mail messages. It can also be used to re-process and re-deliver messages that are already in a mailbox. This Procmail tutorial is aimed at regular users, not system administrators. In order to use these instructions, you need: In addition to understanding Internet mail flow, your mail messages must be delivered to a system that: has procmail installed you have shell access to either uses procmail as the default local delivery agent (LDA), or uses a message transfer agent (MTA) that lets you use a .forward file to set procmail as your LDA, or allows you to set procmail as your LDA some other way.

If your system satisfies 4a or 4c, make sure that you skip Steps 8 & 9 below, that is, do not set up a .forward file. PM or pm . Namespaces - Dovecot Wiki. Dovecot supports fully configurable namespaces. Their original and primary purpose is to provide Namespace IMAP extension (RFC 2342) support, which allows giving IMAP clients hints about where to locate mailboxes and whether they're private, shared or public. Unfortunately most IMAP clients don't support this extension. Dovecot namespaces can be used for several other purposes too: Changing the hierarchy separator Providing backwards compatibility when switching from another IMAP server Provides support for public and shared mailboxes Allows having mails in multiple different locations with possibly different formats Configuration By default no namespaces are explicitly defined in dovecot.conf. There are 3 types of namespaces: private: Typically contains only user's own private mailboxes. shared: Contains other users' shared mailboxes (v1.2+). public: Contains public mailboxes.

Hierarchy separators By default the separator is the same as the mailbox list layout separator. Namespace settings. Migrate from mbox to MailDir. Migration - Dovecot Wiki. WARNING: Badly done migration will cause your IMAP and/or POP3 clients to re-download all mails. Read this page carefully. This page contains generic information related to migrating from another IMAP or POP3 server to Dovecot. You should read this page, and then look at the server-specific instructions: Dovecot is one of the easiest IMAP servers to migrate to because of its powerful configuration options. Dovecot can store email in both mbox and Maildir formats, making it compatible with many existing servers. Migration involves several separate tasks. IMAP migration When migrating mails from another IMAP server, you should make sure that these are preserved: Message flags Lost flags can be really annoying, you most likely want to avoid it.

POP3 migration When migrating mails from another POP3 server, you should try to preserve the old UIDLs. Don't trust the migration scripts or anything you see in this wiki. Some POP3 servers using Maildir uses the maildir base filename as the UIDL. Postfix - Migrated mbox to Maildir, how to avoid mail client from re-downloading emails?

Converting Mbox mailboxes to Maildir format. Page version: 2006-05-07software version: 3.20 Contents: News: See the changelog. Introduction: Mb2md.pl was originally developed by Robin Whittle <rw at firstpr.com.au> (you can find his old page here). It is a Perl script that takes one or more Mbox format mailbox files in a directory and convert them to Maildir format mailboxes. As the Mbox format has some drawbacks, D. Mb2md.pl does not only convert mailbox files into a Maildir but also the /var/spool/mail/$USER mailspool file. Features: Usage: Run this as the user of the mailboxes, not as root. mb2md -h mb2md [-c] -m [-d destdir] mb2md [-c] -s sourcefile [-d destdir] mb2md [-c] -s sourcedir [-l wu-mailboxlist] [-R|-f somefolder] [-d destdir] [-r strip_extension] -c use the Content-Length: headers (if present) to find the beginning of the next message Use with caution!

Download: Version: mb2md-3.20 (requires TimeDate perl library!) Hope you like it. Maildir - different mailbox formats for special dovecot/system users. MaildirConfiguration. Configuring Debian for Maildir is not too hard, it's just hard to find out how. It's not the Debian default and there are no debconf prompts or alternatives that let you do it. Be aware that when you change to using Maildir, some stuff will break. The mbox '/var/spool/mail' based delivery is so ingrained in Unix history that many utilities (like the "you have mail" notification) just cannot understand anything else. However, the speed and reliability benefits to IMAP usually make it worthwhile.

Using procmail for delivery Both exim and postfix support using procmail for delivery "out of the box" on Debian. First you need a global default procmailrc that will deliver email into users '~/Maildir'. DEFAULT=$HOME/Maildir/ Note that webmin's procmail module can be used to do this. If procmail can not deliver to the DEFAULT location, the mail ends up in the location specified in the ORGMAIL variable (man procmail and #46598. ORGMAIL=${HOME}/Maildir/ DEFAULT=${ORGMAIL} export MAIL=~/Maildir -- ? -- ? Namespaces - Dovecot Wiki. Dovecot supports fully configurable namespaces. Their original and primary purpose is to provide Namespace IMAP extension (RFC 2342) support, which allows giving IMAP clients hints about where to locate mailboxes and whether they're private, shared or public.

Unfortunately most IMAP clients don't support this extension. Dovecot namespaces can be used for several other purposes too: Changing the hierarchy separator Providing backwards compatibility when switching from another IMAP server Provides support for public and shared mailboxes Allows having mails in multiple different locations with possibly different formats Configuration In v2.1+ there's a default inbox namespace added in 10-mail.conf. The section name in namespaces (e.g. namespace sectionname { .. } is used only internally within configuration. Namespace types There are 3 types of namespaces: Hierarchy separators Hierarchy separator specifies the character that is used to separate a parent mailbox from its child mailbox. Examples.