Questions tagged [procmail]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
1 vote
2 answers
261 views

detect spam from random domain names in header, in .procmailrc

Spam from a well-known organization that sells large lots of knockoffs of everything from drones to roombas uses random domains in the From:, Message-ID:, and Reply-To: fields, all different, without ...
Camille Goudeseune's user avatar
2 votes
1 answer
175 views

Bulk delete text/html parts of email messages

I would like to reduce the size of my mail archive by deleting text/html parts of multipart/alternative messages. I can do this individually in mutt by opening each message, but it gets tedious. Is ...
András Korn's user avatar
1 vote
2 answers
192 views

Prevent use of procmailrc by some users

We have an e-mail server running Postfix (SMTP) and Dovecot (POP/IMAP) on Debian 10. Users cannot log directly on it (SSH), but have access to their homes through NFS. We would like to use Procmail to ...
Carlos Maziero's user avatar
0 votes
1 answer
282 views

Procmail: Forward incomming message, and send notify to another e-mail adress

If there is an incomming e-mail from some specified e-mail adresses, I want to forward that e-mail to on e-mail address, and send a notification to another one. I have tried using both formail and ...
Sitron_NO's user avatar
  • 113
0 votes
2 answers
197 views

SELinux blocking procmail from executing dspam but no AVC message

I have a CentOS 7 system in which I use postfix as the MTA. Certain users use procmail via .forward in their home directories: # cat .forward "|exec /usr/bin/procmail -f- || exit 75" In this case, I ...
cfiske's user avatar
  • 3
0 votes
2 answers
821 views

How to retrieve the HTML from en email with Linux?

I'm using a Linux machine (Debian) and installed fetchmail and procmail on it. Right now, it is able to fetch mails sent to my gmail address every one minute. However, the file fetched by fetchmail is ...
William Tang's user avatar
1 vote
1 answer
150 views

Send message via postfix delayed

I have a script on my server that automatically answers incoming messages. This is realized with procmail. I want to write a follow-up after e.g. 24 or 48 hours. Is there a way i can realize this - ...
Heiner's user avatar
  • 61
-1 votes
1 answer
559 views

Why procmail couldn't write to temp folder

I use procmail to filter email, but it couldn't write to temp folder: procmail: Couldn't create or rename temp file "/var/mail/tmp/1483421819.25425_0.morep" procmail: Assigning "LASTFOLDER=/var/mail/...
Jester Pepper's user avatar
0 votes
1 answer
101 views

will procmail "tag" incoming email based on to: , but only if it isn't already tagged?

So if you've seen/used mailman , you'll know that it will add a [groupname] tag to the subject line of emails sent through it, if the tag doesn't already exist. Can this be done with procmail? I ...
hymie's user avatar
  • 1,266
1 vote
1 answer
2k views

Regular expressions in procmail

I have a problem with backscatter to randomly generated fake-from-adresses on a domain with a catchall. The fake-alias is using a scheme, using egrep with the regexp ^To:.*.[A-Z].[a-z].*[A-Z].[a-z].*...
Christian's user avatar
  • 191
1 vote
1 answer
356 views

Why procmail didn't match this rule?

I have the following rule to send all emails with suspicious attachments to a dedicated folder: # Emails with attachments :0 * ^Content-Type: multipart/ { :0 B * ^Content-Type: application/(zip|x-...
Greg's user avatar
  • 317
0 votes
1 answer
307 views

procmail gpg --verify signature

Is there a recipe for procmail that I can use to verify a pgp signature?Almost like gpg --verify. I have looked at pgpenvelope but I'm not needing to check this in any kind of mail client.
mcgoosh's user avatar
  • 11
1 vote
1 answer
2k views

Correctly configure fetchmail/procmail to forward to gmail (with TLS)

I'll start by saying I'm pretty uninformed when it comes to mail protocols, encryption, and basically everything else relevant to this question. My goal is to set up fetchmail/procmail on a machine ...
TimmyJ's user avatar
  • 223
1 vote
1 answer
587 views

"Procmail" component of getmail - spamassassin - procmail - mu4e

I'm a newbie trying to work out the following mail solution on a laptop where I'm the only user: getmail - spamassassin - procmail - mu4e (an emacs mail program) Right now I'm succeeding at getmail ...
Steven Arntson's user avatar
-3 votes
2 answers
605 views

Copy unix mail (received by sendmail) to a linux directory (individually)

Does anyone know a way to copy all new arrived emails (on Fedora Linux), to store in a Linux directory (not in some other mail folder, but on the Linux file system directory)? We use Procmail as a ...
Sendi_t's user avatar
  • 101
1 vote
1 answer
1k views

How do I extract and sort image attachment from emails?

Here is what I was thinking of: I want to create a Raspberry Pi Picture-frame (DPF) for my grandma, but with basic email support. Emails can be sent by six family members and will be received daily ...
Markus's user avatar
  • 269
0 votes
1 answer
567 views

how to add a unique number|datetime|message id to an email subject with procmail

I need to change the subject of certain emails by adding a unique element. it doesn't really matter what is added as long it is unique. I thought about the date string or the message ID itself. this ...
perler's user avatar
  • 251
0 votes
1 answer
1k views

Procmail script creates files with unexpected read/write permissions

Running under CentOS 6.5, I have a procmail recipe that invokes a Perl script that processes mail addressed to reguser and writes a file like: my $text = "Text generated from incoming mail"; my $...
Joe Fitzgerald's user avatar
0 votes
1 answer
1k views

Fetchmail redownloading emails

I am using fetchmail to retrieve emails off server and then viewing with mutt. My settings look like, poll server.com protocol IMAP user "[email protected]" password "secret" keep mda "/usr/bin/...
LJS's user avatar
  • 21
0 votes
1 answer
224 views

Prevent mail delivery errors from forwarded address for spam

I forward my email from a linux server (running exim) to my gmail account using procmail. Frequently I get "Mail delivery failed" errors from spam messages sent to me, where the error is an SMTP ...
Mike Shulman's user avatar
3 votes
1 answer
796 views

How to flag (mark) email as important with procmail

How to flag (mark) an email which matches a rule as important (press F in mutt will flag email as important). So how to write this in procmail recipe ? If procmail can not flag email as important, ...
stardiviner's user avatar
0 votes
1 answer
829 views

Preprocessing incoming mail with fetchmail/procmail/mutt

I use fetchmail->procmail->mutt programms to all my mail. Some of mail generated automatically and some people not smart enough, so I would like to reformat mail body with some script. My best guess ...
KAction's user avatar
  • 359
2 votes
1 answer
2k views

How can I write a procmail recipe to execute script without affecting the original message

I want to use procmail to trigger a script to run when a certain email message is encountered but I do not want to change, alter, or prevent delivery of the original message. Will this procmail ...
stardiviner's user avatar
5 votes
2 answers
4k views

automatically encrypt and decrypt emails using gnupg (gpgrelay for unix)

My point of view related to email security is: whenever possible emails should be protected with PGP/GPG while transporting, but it doesn't have sense to store encrypted emails in local mailbox (this ...
Powerman's user avatar
  • 173
1 vote
1 answer
497 views

Organize Email by Date Using procmail

I would like to organize all incoming email into the following directory structure based on the date of the email: ROOT --+-- YYYYMMDD --+-- HH --+-- mm --+-- YYYYMMDD-HHmmSS-000001 | ...
kjloh's user avatar
  • 11
1 vote
1 answer
870 views

procmail recipe not working right for automatically stripping incoming attachments

In following-up my previous question, I am trying to use munpack in an automated fashion. I'm trying to do this with procmail. > cat .procmailrc :0 | sleep 5 ; munpack /var/spool/mail/...
warren's user avatar
  • 10.1k
3 votes
1 answer
580 views

Procmail recipe that will execute a script without affecting delivery?

How do I write a procmail recipe that executes a shell script without affecting delivery?(in this case, something that sends me a DM via Twitter) I don't want to affect further processing of the ...
outcassed's user avatar
  • 131
3 votes
1 answer
3k views

Are file access times not properly maintained in Mac OS X?

I'm trying to determine how file access times are maintained by default in Mac OS X, as I'm trying to diagnose some odd behaviour I'm seeing in a new MBP Unibody (running Snow Leopard, 10.6.2): The ...
Ether's user avatar
  • 1,157
1 vote
2 answers
1k views

Play a sound when mutt has new mail?

I'm using mutt for my mail, usually put on the 2nd monitor with some other windows. Because I'm not monitoring that monitor I often miss the new mails. I want mutt to play a sound (or use Growl) to ...
cringe's user avatar
  • 253
2 votes
4 answers
2k views

How do I set up a email whitelist using only procmailrc to protect my kids from unwanted email?

How do I set up a email whitelist using only procmailrc to protect my kids from unwanted email? I currently us the OS parental controls, but that is only good for the computer it is enabled on. I ...
hanleyp's user avatar
  • 6,627
0 votes
2 answers
202 views

How can I setup a reminder email tool via procmail?

I would like to be able to setup a reminder 'service' for myself so that I can schedule emails or text messages to be sent to my handheld when I can't get to an ssh client. Here's my scenario: It's ...
warren's user avatar
  • 10.1k
3 votes
2 answers
1k views

How can I convert HTML emails to plain text with fetchmail?

I recently set up an email gateway for our bug tracker, which was originally intended as a way for streamline error reporting from our server software. I told my colleagues about it, and they were ...
Nik Reiman's user avatar