ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] fetchmail -> postfix ->procmail
@ 2004-01-03  9:34 Igor
  0 siblings, 0 replies; only message in thread
From: Igor @ 2004-01-03  9:34 UTC (permalink / raw)
  To: community

Привет всем
Есть задача, забирать 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--


Что не так?



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-03  9:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-03  9:34 [Comm] fetchmail -> postfix ->procmail Igor

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