Questions tagged [procmail]

Procmail is a powerful Mail Delivery Agent (MDA) capable of sorting and filtering mail based on rulesets called recipes. It's rather *nix-centric, terse, mature, and proven. However, it is now unmaintained.

Filter by
Sorted by
Tagged with
14 votes
6 answers
16k views

Is there a way to filter mails in remote IMAP account?

Situation: mail server with IMAP only access. Problem: I want to be able to filter mails (put some mails to various folders, mark them as read and so on). Most new email clients have this ability, ...
user avatar
0 votes
2 answers
2k views

Creating a global procmailrc file that forwards to an Exchange server

I need to forward all messages received on one server to another server (Exchange box). I know how to forward for an individual, but I am unable to forward for all addresses to their respective ...
Larry G. Wapnitsky's user avatar
4 votes
2 answers
2k views

Setting up procmail to ignore auto-responders and bounces

I'm using procmail to receive email messages and then forward them on to a script for handling. Sometimes this will even mean generating an email (for example, forwarding the message to another user, ...
Jordan Reiter's user avatar
3 votes
3 answers
2k views

Is it possible to reject certain emails in procmail? [In SMTP session rejects based on email content]

Let's assume a typical setup where procmail is called from sendmail to filter incoming emails into correct mailboxes. Is that done while the incoming SMTP connection to sendmail is still active or is ...
Greg's user avatar
  • 198
1 vote
1 answer
301 views

Procmail not bouncing emails

I have a catch-all email address for my domain, however I want to block certain addresses from receiving mail. Before, I was doing it like this: :0 * ^(X-Original-To): [email protected] /dev/null ...
Mike's user avatar
  • 689
1 vote
1 answer
922 views

IMAP server can't read (open) mails using fetchmail, procmail & dovecot

I'm trying to setup a mail server ! Everything seems to be ok (after some loooong days) but when I tried to read mail with IMAP server : Apr 18 17:38:48 sd-84941 dovecot: imap(dlp): Error: open(/...
partout's user avatar
  • 21
1 vote
1 answer
2k views

procmail is ignoring user settings

I use procmail for filtering emails in combination with postfix. procmail is triggered by postfix via the in the main.cf mailbox_command mailbox_command = /usr/bin/procmail -t -a "$EXTENSION" but in ...
Max Muster's user avatar
1 vote
1 answer
3k views

Procmail: Pipe to Program, Otherwise Return Error to Sender

I'm trying to use procmail to send all messages for a certain domain to RT (Request Tracker). This is more of a question about the .procmailrc file, though. Here's my current .procmailrc file: #...
bradlis7's user avatar
  • 363
1 vote
1 answer
3k views

How to use procmail to get a message into a variable

I'm trying to get changes logged by our RANCID install to be logged and sent to an internal comms broadcasting system we have. I can talk to this directly via netcat, for example this will work: echo ...
SimonJGreen's user avatar
  • 3,245
0 votes
1 answer
1k views

prevent procmail from adding Return-path

I'm storing and forwarding (to google apps) emails using the following procmail recipe: # set vars USERNAME=local_username LOCALPART=realemaillocalpart :0 # Avoid email loops * ! ^X-Loop: ${USERNAME}...
datadevil's user avatar
  • 535
0 votes
2 answers
666 views

using sendmail with only non system users

I need to use sendmail without any system users. The only problem that still exists in my configuration is that FEATURE(virtusertable) wants a final systemuser on RHS in my virtusertable like this: @...
Jimmy Koerting's user avatar