ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Ivan Zakharyaschev <imz@linux.ru.net>
To: <mandrake-russian@altlinux.ru>
Subject: Re[2]: [mdk-re] Postfix mailbox size
Date: Sat Apr  7 17:32:11 2001
Message-ID: <Pine.LNX.4.33L.0104071719380.2914-100000@zephyrous.ru> (raw)
In-Reply-To: <E14l5gD-000IBq-00@f9.mail.ru>

	Hello!

On Thu, 5 Apr 2001, Carry Ram wrote:

> > > > > Замучил вопрос с ограничение размера сабжа. Надо юзверям
> раздать
> > > ящики
> > > по 8 метров и более ни ни! Стандартно Postfix это не контролирует
> > > (размер
> > > разрулить, чтоб включить квотирование размеров файлов юзеров  в
> > > почтовой
> > > папке (типа path/spool/mail)?
>
> > Думаю, что с помощью procmail это действительно удобнее: Вы тогда
> сами
> > сможете определить поведение при доставке почты в ящик, превышающий
> по
> > размеру некоторый уровень, а не ждать, что скажет postfix/procmail,
> когда
> > не сможет записать в ящик (из-за квоты).
>
> Пишет... Да, много чего пишет... Как это делается в procmail? Никак не
> могу найти в настройках ограничение на размер файла (майлбокса)
> пользователя.
> Или где есть что почитать?

Да в procmail'е нет уже готовой опции для такого ограничения. Нужно самому
что-нибудь придумать, например

MAXMAILBOXSIZE=1000000

:0 Bh
* ! ^^^^
* ? let "$MAXMAILBOXSIZE < $(stat -t /var/spool/mail/$LOGNAME | cut -d' ' --fields 2)"
! $LOGNAME

Этот кусок procailrc -- не завершенный и готовый к использованию, а просто
идея, которую можно развить. В таком виде он мог бы быть помещен в
персональный procmailrc (а надо бы в глобальный). Что он делает? - Если
размер ящика превышен, то обрезает тело у всех сообщений и пересылает
дальше адресату. Вместо /var/spool/mail/$LOGNAME можно, наверное, $ORGMAIL
использовать.

Говоря, что с помощью procmail будет удобнее, я имел в виду, что можно
самому определить и правила, и действия, которые будут применнеы к
сообщению. В Вашем случае, например, разумно быдо бы отправителю посылать
уведомление о том, что письмо не дошло, получателю -- о том, что превышен
размер и поэтому это письмо не получено, и, возможно, автоматическая
чистка ящика (по-моему, это будет неприятно). Можно оставить письмо в
очереди до тех пор, пока ящик не уменьшится.

Прочитать про procmail можно в man procmail{,rc,ex}.

Best regards,
Ivan.





  reply	other threads:[~2001-04-07 17:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-02 15:02 Carry Ram
2001-04-02 15:31 ` cornet
2001-04-02 18:05   ` Vyt
2001-04-02 19:59     ` Ivan Zakharyaschev
2001-04-05 13:05       ` Re[2]: " Carry Ram
2001-04-07 17:32         ` Ivan Zakharyaschev [this message]
2001-04-05 13:09   ` Carry Ram
2001-04-05 14:06     ` cornet

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=Pine.LNX.4.33L.0104071719380.2914-100000@zephyrous.ru \
    --to=imz@linux.ru.net \
    --cc=mandrake-russian@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