ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexander Bokovoy <a.bokovoy@sam-solutions.net>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: [mdk-re] Периодическаяотправка
Date: Mon Aug 13 14:42:46 2001
Message-ID: <20010813110935.A26299@pc152.belcaf.minsk.by> (raw)
In-Reply-To: <01081308304008.30956@pif.b5.mephi.ru>; from serpiph@pochtamt.ru on Mon, Aug 13, 2001 at 08:30:40AM +0400

On Mon, Aug 13, 2001 at 08:30:40AM +0400, Sergei wrote:
> Понедельник 13 Август 2001 08:05, Вы написали:
> > Добрый день!
> >
> > Можно ли реализовать такую схему: в определённую папку периодически
> > сбрасываются файлы, и как только они там появятся - сразу отправляются по
> > указанному адресу.
> Может, лучше посылать на определенный адрес, а при приходе на него 
> производить переадресацию. Для этого настраивается forward. Так, в sendmail в 
> домашнем каталоге пользователя заводится файл .forward и туда заносятся 
> адреса, по которым пересылать, по одному на строчку. Как в postfix, не знаю.
Правильнее это делать через procmail (все равно он используется в качестве
доставки по умолчанию). Например, вот так:
 #   By Jim Hribnak hribnak@nucleus.com
 #   info@domain1.com goes to joe@domain1.com
 #   info@domain2.com foes to fred@domain2.com

 :0
 * ^TO_()info@domain1.com\>
 {
    FORWARDTO = "$FORWARDTO joe@domain1.com"
 }

 :0
 * ^TO_()info@domain2.com\>
 {
    FORWARDTO = "$FORWARDTO fred@domain2.com"
 }

 :0 fhw
 *    FORWARDTO ?? @
 * ! ^$MY_XLOOP
 | $FORMAIL -A "$MY_XLOOP"

   :0 a
   ! $FORWARDTO

Критерий переадресации естественно, можно переопределять. В данном случае, 
это определяется адресом получателя, но можно использовать все, что угодно.
Пример взят из прекрасного справочника по Procmail от Jari Aalto:
http://www.procmail.org/jari/pm-tips-body.html#service_forward_only_specific_messages
-- 
/ Alexander Bokovoy
$ cat /proc/identity >~/.signature
  `Senior software developer and analyst for SaM-Solutions Ltd.`
--- I don't get no respect.



      parent reply	other threads:[~2001-08-13 14:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-13  7:47 [mdk-re] Периодическая отправка Sergey Sokolov
2001-08-13  7:58 ` [mdk-re] Периодическаяотправка Sergei
2001-08-13 12:38   ` [mdk-re] Re[2]: " Sergey Sokolov
2001-08-13 14:41     ` [mdk-re] Периодическаяотправка Mikhail Zabaluev
2001-08-13 12:38   ` [mdk-re] Периодическаяотправка Vyt
2001-08-13 23:58     ` Sergei
2001-08-13 14:42   ` Alexander Bokovoy [this message]

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=20010813110935.A26299@pc152.belcaf.minsk.by \
    --to=a.bokovoy@sam-solutions.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