1
vote
1answer
39 views

Selectively forward email based on domain?

I have an alias on my mail server, call it splitusers. Based on which domain (a couple are run off one mail server) is used, I would like the mail forwarded to a different user account. Eg: ...
2
votes
2answers
33 views

procmail recipe with a regex doesn't work

In my ~/.procmailrc I have the following lines: :0 \* ^Subject:.*(O|o)pen( \|)(S|s)(onic|urge) $MAILDIR/OpenSurge/ As you see, I would like to put any mail containing “Open Surge” (or any variant ...
0
votes
1answer
64 views

What's the safest way to pipe an email to a script via procmail?

I have a simple procmailrc recipe that hands mail off to a script: LOGFILE=/home/foouser/procmail-log VERBOSE=yes MAILDIR=/var/spool/mail/foouser DEFAULT=/var/spool/mail/foouser SHELL=/bin/sh ...
2
votes
2answers
46 views

Why does procmail send a copy of an inbound message to sender if it encounters an exit code?

I have a very simple procmail process that takes an inbound email and redirects it to a script: LOGFILE=/home/foo/procmail-log VERBOSE=yes MAILDIR=/var/spool/mail/foo DEFAULT=/var/spool/mail/foo ...
3
votes
1answer
395 views

Procmail: Denying special privileges for “/etc/procmailrcs/default.rc”

I'm trying to setup postfix, dovecot and procmail to work together with virtual users. In the end I want to have virtual users and the possibility to add rules to sort incoming rules. For the last ...
3
votes
0answers
658 views

Using Munpack to extract attachments of specific file type (Debian/Squeeze)

I configured Munpack on my Debian/Linux to extract attachments from incoming emails. (For additional context, Getmail fetches the emails and pipes it to Procmail. A Procmail recipe then pipes it to ...
4
votes
1answer
349 views

Modify an incoming mail from text/plain to text/html

I'm using mutt to process my mail. There is one sender which declares the wrong content type. The mail arrives with Content-Type: multipart/alternative; boundary=--… and has two parts. They are ...
3
votes
1answer
407 views

Savings emails as individual files using Procmail

I installed Getmail to retrieve emails from another email server and Procmail to filter the incoming emails. (I am running Debian/Squeeze.) The recipe I created has this code: :0: * ...
1
vote
1answer
46 views

How to silence spam or unwanted email from email-lists with Procmail?

I joined an email-list. I found it low-quality and I don't have time to follow their discussions. Then I informed the head to remove my email but they haven't done it. How can I can silence their ...
6
votes
3answers
1k views

How can I apply my procmail filters to my maildir inbox?

Last night I subscribed to a mailing list, and discovered this morning that my procmail filter didn't apply to many of the mailing list messages. Now I have loads of less-important mailing list ...
2
votes
1answer
254 views

How to use whitespace in procmailrc recipe destination path?

I use Mutt Maildir for storage mails. I created one mailbox like this Stack Exchange/. (whitespace between Stack and Exchange here) procmailrc recipe: :0 * From: .*Stack\ Exchange Stack Exchange/ ...
7
votes
4answers
2k views

Receive Pop/IMAP email and then forward as encrypted to gmail

Basically, I have an email account I can access as POP3 or IMAP. I want to take all incoming emails, encrypt them, and then forward the encrypted version to my gmail account (so I can see the ...
1
vote
1answer
1k views

Why is procmail not being run?

I'm running Fedora 13 Linux, and sending mail to myself using mutt, and I can't seem to get procmail to run. Below is what my .procmailrc, ~/Procmail/rc.testing, and .forward files all look like. As ...