2
votes
Accepted
"Procmail" component of getmail - spamassassin - procmail - mu4e
I would suggest using fetchmail (with mda option) instead of getmail.
getmail configuration: ~/.getmail/getmailrc - deliver via procmail
To deliver with an external MDA:
[destination]
type = ...
- 856
2
votes
Accepted
Copy unix mail (received by sendmail) to a linux directory (individually)
A solution to your issue would be to use your procmailrc file to save a copy of the mail to a Maildir format.
Maildir keeps each mail as a separate file, which solves your one problem. Additionally, ...
- 36
2
votes
Accepted
Regular expressions in procmail
Procmail's regex dialect doesn't support the {m,n} repetition operator. You will simply have to spell out the pattern in longhand (maybe use a variable if it gets too massive).
:0D
* ^To:.*.[A-Z].[a-...
- 3,054
1
vote
Accepted
Why procmail didn't match this rule?
The post you link to does indeed state that folded headers are handled correctly, but this recipe is examining the body, not a header.
It is a misfeature of Procmail that it doesn't recognize MIME ...
- 3,054
1
vote
Accepted
detect spam from random domain names in header, in .procmailrc
Here is a Procmail recipe which implements what I think you may be asking.
It uses scoring which is a slightly obscure but occasionally useful feature. Briefly, we assign a score of 1 if there is a ...
- 3,054
1
vote
detect spam from random domain names in header, in .procmailrc
Based on a few limited examples, it's hard to come up with anything specific which would work today and continue to work tomorrow. If your actual question is really "how can I prevent spam from ...
- 3,054
1
vote
Accepted
Prevent use of procmailrc by some users
One way to force Procmail to stop here and now is to simply deliver the message. Inside of /etc/procmailrc I guess you explicitly want to DROPPRIVS first.
DROPPRIVS=yes
:0:
$DEFAULT
Depending on what ...
- 3,054
1
vote
Accepted
Procmail: Forward incomming message, and send notify to another e-mail adress
Your script should work as such, but you are not populating the FROM and SUBJECT variables, and you should generally quote your shell variables.
Try this:
0
* ! ^From:.*email@example\.org
* ! ^From:....
- 3,054
1
vote
Send message via postfix delayed
echo 'echo "xxx"|mail recipient@domain.tld' | at now + 1 min
Suggested by Andrzej A. Filip this works like a charm. Thanks!
- 61
1
vote
Why procmail couldn't write to temp folder
It looks like you are trying to use /var/mail itself as a maildir folder. I cannot imagine a situation where this makes sense.
Normally, /var/mail should contain a bunch of personal mbox folders, ...
- 3,054
1
vote
Accepted
How do I extract and sort image attachment from emails?
Both the cat and the tee are useless; the tee doubly so, and the reason for (what you perceive as) the script freezing. It requires a file name argument, as the file to copy its input to, and a ...
- 3,054
1
vote
How do I set up a email whitelist using only procmailrc to protect my kids from unwanted email?
I'm not at all sure where I got this from (I know I didn't write it myself), but I've been using it in a .procmailrc for a while now to forward only messages from an address listed in a separate ...
- 192
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
procmail × 32email × 19
linux × 5
mutt × 5
fetchmail × 5
postfix × 3
spam-prevention × 3
gmail × 2
automation × 2
gnupg × 2
attachments × 2
spamassassin × 2
macos × 1
ubuntu × 1
audio × 1
microsoft-outlook × 1
permissions × 1
filesystems × 1
java × 1
regex × 1
emacs × 1
images × 1
html × 1
calendar × 1
archiving × 1