| Sign In/My Account | View Cart |
| Article: |
Sanitizing Mail on Panther Server | |
| Subject: | procmail problems | |
| Date: | 2004-01-31 02:31:12 | |
| From: | raffaell | |
|
I have some questions about postfix-procmail-cyrus: - why there is no entrance in email header about procmail pass? There is still only postfix and cyrus entrance: Received: from xserve ([unix socket]) by xserve (Cyrus v2.1.13) with LMTP; Sat, 31 Jan 2004 10:15:09 +0100 Received: from vsmtp14.tin.it (vsmtp14.tin.it [xxx.xxx.xxx.xxx]) by xserve (Postfix) with ESMTP id 06D1A8B51E2; Sat, 31 Jan 2004 10:15:09 +0100 (CET)
|
||
Showing messages 1 through 3 of 3.
procmail problems
However this will be useful for people who get this message and are missing emails:
If you invoke procmail with the -t switch (add -t to the options to invoke procmail) [already done in this article] then the mail will be delivered -- probably to a plaintext file at /var/mail/cyrus
When you fall back to going from postfix->cyrus and skip procmail, this is how to redeliver those "lost" emails:
sudo mv /var/mail/cyrus /var/mail/cyrus.sent; sudo cat /var/mail/cyrus.sent | formail -s sendmail -t -bm -v
This will move the spooled flat file to cyrus.sent (so that the next time you try this you don't just append to the cyrus mail file), and pipe the text of the file to formail, which will split it into individual messages and requeue it for delivery from the beginning of the entire mail chain (sendmail) so that it actually gets delivered. Once those mails are delivered, another round of server changes can be attempted.
Criss