ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Dmitry Lebkov <dima@sakhalin.ru>
To: community@altlinux.ru
Subject: Re: [Comm] imap & maildrop
Date: Tue, 4 Feb 2003 11:37:12 +1000
Message-ID: <20030204113712.12712d39.dima@sakhalin.ru> (raw)
In-Reply-To: <20030203144958.66c30043.__Mah__@mail.ru>

On Mon, 3 Feb 2003 14:49:58 +0300
Max A Mazin <__Mah__@mail.ru> wrote:

> hi
> 
> Решил переползти на imap. Поставил courier-imap. В качестве MTA --
> postfix. home_mailbox у меня дефолтный, т. е. в /var/spool/mail.
> Формат mailbox.
> 
> У себя в хоме завел Maildir для хранения почты. проверил kmail'ом и
> sylpheed'ой -- все работает. Теперь, как мне организовать доставку
> писем из /var/spool/mail/... в мой maildir и как организовать

Доставка организовывается не "из /var/spool/mail/...", а от почтового
сервера в Maildir-ящик пользователя.

> фильтрацию? Использовать планирую maildrop. Читал документацию много,
> но мне так и не удалось организовать даже простейший фильтр...
> Направьте меня по нужному следу, или приведите рабочий пример
> ~/.mailfilter (достаточно состоящего из одного правила).

Вот кусок моего .mailfilter:

# ALT Linux mail-lists
if (/^List-Id: .*<community.altlinux.ru>/:h)
{
        exception {
                to /var/spool/vmail/sakhalin.ru/d.lebkov/.ml.ALT.comm
        }
}
...
if (/^Subject: .*CISCO-logs check.*/:h)
{
        exception {
                to /var/spool/vmail/sakhalin.ru/d.lebkov/.system.CISCO
        }
}

Все подкаталоги твоего каталога Maildir имеют точно такую же структуру
как и основной (т.е. содержат cur, new и tmp). Их можно либо создавать
руками, либо копировать существующий пустой, либо описать в mailfilter
создание каталога на лету. О последнем я пока не задумывался, но знаю
что такое возможно :)

> Есть вероятность, что я что-то не так делаю, но вот понять, что, я не
> могу.

Возможно. Для начала, скажи откуда maildrop/courier-imap берет инфо о
твоих пользователях (userdb, mysql, passwd, PAM)? 

--
WBR, Dmintry Lebkov



  parent reply	other threads:[~2003-02-04  1:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-03 11:49 Max A Mazin
2003-02-03 12:14 ` Прокопьев Евгений
2003-02-04  1:37 ` Dmitry Lebkov [this message]
2003-02-05 14:45   ` Max A Mazin
2003-02-05 14:47   ` Max A Mazin
2003-02-05 14:52     ` Dmitry Lebkov
2003-02-05 14:58     ` Leonid B. Sysoletin
2003-02-05 15:03       ` Max A Mazin
2003-02-05 15:09         ` Leonid B. Sysoletin
2003-02-06  7:31           ` Max A Mazin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030204113712.12712d39.dima@sakhalin.ru \
    --to=dima@sakhalin.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git