The OpenNET Project / Index page

[ новости /+++ | форум | wiki | теги | ]

Сохранение отправленных сообщений на сервере (sendmail) (mail sendmail procmail)


<< Предыдущая ИНДЕКС Поиск в статьях src Установить закладку Перейти на закладку Следующая >>
Ключевые слова: mail, sendmail, procmail,  (найти похожие документы)
Date: Sun, 5 Aug 2001 03:15:29 +0000 (UTC) From: Eugeny Korekin <az@ftc.ru> Newsgroups: fido7.ru.unix Subject: Сохранение отправленных сообщений на сервере (sendmail) VS>Речь шла об исходящей почте. Как тут поможет procmail? Re: Filtering all incoming and outgoing mail * From: Philip Guenther <guenther@gac.edu> * To: "Sean A. Walberg" <sean@escape.ca> * cc: procmail@informatik.rwth-aachen.de * Date: Thu, 11 May 2000 23:39:05 -0500 * Message-Id: <200005120438.XAA12328@solen.gac.edu> "Sean A. Walberg" <sean@escape.ca> writes: >I've seen this question asked time and time again >in the archives, but I >seem to be doing something wrong here. I've got a >machine that accepts >mail on behalf of a few domains, and then forwards >them to the appropriate >mail server based on the mailertable and some >dns-oddities. > >In /etc/sendmail.cf I have > >Mprocmail, P=/usr/bin/procmail, F=mSDFMhun, >S=11, R=21, > A=procmail -m $h $g $u > >S98 ># Mail filtering >R$*<@$+>$* $#procmail >$@/etc/procmailrcs/filter.rc $:$1@$2procmail$3 >R$*<@$*.procmail>$* $1@<$2>$3 map back of >procmail copy If you want to send _all_ mail through procmail then you need to swap the order of the rules: you need to test for the loop before you start it again. I assume it's a typo in the first of the rules that you lack a period between "$2" and "procmail". S98 # Mail filtering R$*<@$*.procmail>$* $@ $1@<$2>$3 map back of procmail copy R$*<@$+>$* $@ $#procmail $@/etc/procmailrcs/filter.rc $:$1@$2.procmail$3 Note the use of $@ to return from the ruleset. If you have other rules in ruleset S98 then you should move these two into their own ruleset which is called from S98. Philip Guenther -- WBW, Eugeny. np: Cradle Of Filth - Suicide and other comforts Hey! Let's do that 2,000-pound man thing. I'll be that Carl Reiner guy, and you be what's-his-face. -- Homer Simpson Homer vs. Patty and Selma

<< Предыдущая ИНДЕКС Поиск в статьях src Установить закладку Перейти на закладку Следующая >>

 Добавить комментарий
Имя:
E-Mail:
Заголовок:
Текст:




Спонсоры:
Слёрм
Inferno Solutions
Hosting by Ihor
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2019 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру