[Comm] fetchmail -> postfix ->procmail

Igor =?iso-8859-1?q?altlinux_=CE=C1_aaanet=2Eru?=
Сб Янв 3 12:34:33 MSK 2004


Привет всем
Есть задача, забирать fetchmail почту с разных ящиков, а procmail 
изменять (добавлять) к теме имя ящика с которого стащил postfix
Например в исьме есть такие строки
        by localhost with POP3 (fetchmail-6.2.1)
        for АЛИАС1 на localhost (single-drop); Mon, 29 Dec 2003 12:31:04 
+0300 (MSK)
если для АЛИАС1 значит добавить в конце темы слово АЛИАС1.
У меня даже невыходит просто заменять тему, делаю
Сделал .rpocmailrc

:O
| formail -I "Subject: qwerty" | /usr/sbin/sendmail -t

письмо доходит без каких либо изменений
:O
* ^From:.*root
| formail -I "Subject: qwerty" | /usr/sbin/sendmail -t
получаю

 From MAILER-DAEMON  Tue Dec 30 16:57:51 2003
Return-Path: <>
Delivered-To: misha на virtual.ru
Received: by virtual.ru (Postfix)
    id 8E9CB4AB; Tue, 30 Dec 2003 16:57:51 +0300 (MSK)
Date: Tue, 30 Dec 2003 16:57:51 +0300 (MSK)
From: MAILER-DAEMON на virtual.ru (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: misha на virtual.ru
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
    boundary="893454A8.1072792671/virtual.ru"
Message-Id: <20031230135751.8E9CB4AB на virtual.ru>

This is a MIME-encapsulated message.

--893454A8.1072792671/virtual.ru
Content-Description: Notification
Content-Type: text/plain

This is the Postfix program at host virtual.ru.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the message returned below.

            The Postfix program

<misha на virtual.ru>: mail forwarding loop for misha на virtual.ru

--893454A8.1072792671/virtual.ru
Content-Description: Delivery error report
Content-Type: message/delivery-status

Reporting-MTA: dns; virtual.ru
Arrival-Date: Tue, 30 Dec 2003 16:57:51 +0300 (MSK)

Final-Recipient: rfc822; misha на virtual.ru
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; mail forwarding loop for misha на virtual.ru

--893454A8.1072792671/virtual.ru
Content-Description: Undelivered Message
Content-Type: message/rfc822

Received: by virtual.ru (Postfix, from userid 501)
    id 893454A8; Tue, 30 Dec 2003 16:57:51 +0300 (MSK)
Delivered-To: misha на virtual.ru
Received: by virtual.ru (Postfix, from userid 0)
    id 757E54A3; Tue, 30 Dec 2003 16:57:51 +0300 (MSK)
To: misha на virtual.ru
Message-Id: <20031230135751.757E54A3 на virtual.ru>
Date: Tue, 30 Dec 2003 16:57:51 +0300 (MSK)
From: root на virtual.ru (System Administrator)
Subject: "qwerty"


--893454A8.1072792671/virtual.ru--


Что не так?




Подробная информация о списке рассылки community