Waaaay down at the end of this procmail tutorial is a section called "Permanently deleting mail".
Not sure if this'll work for you or not, but their suggestion is:
They do something similar in the University of California at Berkeley's Procmail Tutorial
I'm not able to test any of this, so I don't know why your code isn't working correctly... maybe the braces? Maybe the second :0 ?
Hello,
I want to make a filter with procmail, using the day of the week ant the hour to filter the message.
If the day is Tuesday, the message is redirected to one address. On the other days, the message goes to another address. The messages will be redirected at 8 am to 17 pm.
I tried... (1 Reply)
Hello,
I was wondering if my code is correct on a procmail recipe I am trying to use. I am trying to set up custom filter for for my email address. What needs to happen is any email NOT addressed to me in the to: or cc: field is deleted.
For the time being it is set it up to go to another... (0 Replies)
Hi i would like to find out how can i write a procmail rule to filter based on the email content.i was unable to locate any similar threads that does filtering based on the content.would appreciate any pointers. thanks:0
* ^From: Machine1 <machine1@aaa.com>
# i will have a string "machine1.log"... (1 Reply)
Hi,
I am using "procmail" for triggering an application job which is doing some database operations.The Home directory for my application script has the permissions 2771 which is a policy recommendation.
As we know procmail won't accept it's default configuration file $HOME/.procmailrc if... (1 Reply)
Hi,
I need to write a procmail script such that:
- incoming email is scanned to see if it is spam
- if spam deliver to spam folder
- otherwise deliver to inbox and send a copy to another address.
So far I have:
:0
* ^Subject:.*SPULK
DUMB
I can make a new recipe on to forward mail... (0 Replies)
Hello,
On a remote server with Centos 5.0, I am running procmail
At /var/mail/vhosts/, I can find all the accounts and I was thinking of saving those files on my local machine using ftp.
The structure is right and the files containing the emails (most of them stored in the cur folders) appear... (1 Reply)
Hello, this is my first visit to your forum and I've searched previous threads for my answer but have not been able to find one. Apologies if there is one that I didn't discover.
Is there a way of bouncing or deleting spam that contains non-existent addresses in TO: field but is delivered due... (1 Reply)
Hello,
I am running a email server on Centos 5.3 (dovecot, postfix, with emails for a few domains) and I am wondering whether I am using procmail or not.
I know procmail is installed because
procmail -version
returns:
Locking strategies: dotlocking, fcntl()
Default rcfile: ... (0 Replies)
Hi,
I have a few questions.
I am new to UNIX/Linux. At work I notice that our mail server uses sendmail. When I looked in the sendmail.cf file I see that it is using PROCMAIL as the Local Delivery Agent.
Questions:-
I looked for /etc/procmail to see its configuration file but I see none.... (0 Replies)
Discussion started by: mojoman
0 Replies
LEARN ABOUT DEBIAN
audit_add_rule_data
AUDIT_ADD_RULE_DATA(3) Linux Audit API AUDIT_ADD_RULE_DATA(3)NAME
audit_add_rule_data - Add new audit rule
SYNOPSIS
#include <libaudit.h>
int audit_add_rule_data (int fd, struct audit_rule_data *rule, int flags, int action);
DESCRIPTION
audit_add_rule adds an audit rule to one of several kernel event filters. The filter is specified by the flags argument. Possible values
for flags are:
o AUDIT_FILTER_USER - Apply rule to userspace generated messages.
o AUDIT_FILTER_TASK - Apply rule at task creation (not syscall).
o AUDIT_FILTER_ENTRY - Apply rule at syscall entry.
o AUDIT_FILTER_WATCH - Apply rule to file system watches.
o AUDIT_FILTER_EXIT - Apply rule at syscall exit.
o AUDIT_FILTER_TYPE - Apply rule at audit_log_start.
The rule's action has two possible values:
o AUDIT_NEVER - Do not build context if rule matches.
o AUDIT_ALWAYS - Generate audit record if rule matches.
RETURN VALUE
The return value is <= 0 on error, otherwise it is the netlink sequence id number. This function can have any error that sendto would
encounter.
SEE ALSO audit_delete_rule_data(3), audit_add_watch(3), auditctl(8).
AUTHOR
Steve Grubb.
Red Hat Oct 2006 AUDIT_ADD_RULE_DATA(3)