Questions tagged [procmail]
32
questions
1
vote
2
answers
161
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 ...
1
vote
1
answer
121
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 ...
1
vote
2
answers
122
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 ...
0
votes
1
answer
146
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 ...
0
votes
2
answers
145
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 ...
0
votes
2
answers
661
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 ...
1
vote
1
answer
138
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 - ...
-1
votes
1
answer
502
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/...
0
votes
1
answer
86
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 ...
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].*...
1
vote
1
answer
286
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-...
0
votes
1
answer
275
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.
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 ...
1
vote
1
answer
520
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 ...
-3
votes
2
answers
537
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 ...
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 ...
0
votes
1
answer
516
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 ...
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 $...
0
votes
1
answer
910
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 "myuser@server.com"
password "secret"
keep
mda "/usr/bin/...
0
votes
1
answer
218
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 ...
3
votes
1
answer
715
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, ...
0
votes
1
answer
749
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 ...
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 ...
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 ...
1
vote
1
answer
446
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
| ...
1
vote
1
answer
864
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/...
3
votes
1
answer
573
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 ...
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 ...
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 ...
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 ...
0
votes
2
answers
199
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 ...
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 ...