02-12-2004
procmail rule
I can tell this is not a recently active formum, but here goes, "why doesn't this procmail rule block
messages with víagra or v1agra appearing in
the subject header
:0
* ^Subject:.*(víagra¦v1agra¦pénis¦prescripti0n¦Medicati0n¦M0rtgage¦Xanaxz)
{
LOG="(THE 7 DIRTY WORDS) "
:0
/dev/null
}
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
Somebody knows a good procmail tutorial in the net?
Thanks!:) (1 Reply)
Discussion started by: luiz_fer10
1 Replies
2. UNIX for Dummies Questions & Answers
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)
Discussion started by: luiz_fer10
1 Replies
3. UNIX for Dummies Questions & Answers
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)
Discussion started by: Hexabah
0 Replies
4. UNIX for Advanced & Expert Users
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)
Discussion started by: new2ss
1 Replies
5. UNIX and Linux Applications
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)
Discussion started by: DILEEP410
1 Replies
6. Shell Programming and Scripting
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)
Discussion started by: mojoman
0 Replies
7. UNIX for Dummies Questions & Answers
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)
Discussion started by: JCR
1 Replies
8. UNIX for Dummies Questions & Answers
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)
Discussion started by: WendyTinley
1 Replies
9. UNIX for Dummies Questions & Answers
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)
Discussion started by: JCR
0 Replies
10. UNIX for Dummies Questions & Answers
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
ftpmail
ftpmail(1) General Commands Manual ftpmail(1)
NAME
ftpmail - FIFO-based Perl script for sending email based on proftpd TransferLog
SYNOPSIS
ftpmail [ --help ] [ --fifo fifo-path ] [ --from email-address ] [ --log xferlog-file ] [ --recipient email-address ] [ --subject email-
subject ] [ --smtp-server server-address ] [ --attach-file ] [ --auth smtp-auth-info-file ] [ --ignore-users regex-pattern ] [ --watch-
users regex-pattern ]
DESCRIPTION
ftpmail is a Perl script designed to read ProFTPD's TransferLog log entries, watching for uploads, and to send an automatic email notifica-
tion when uploads occur. To use ftpmail , you configure your proftpd daemon to write its TransferLog to a FIFO; the ftpmail program is a
FIFO reading program which then processes those log messages.
OPTIONS
--help Display a short usage description, including all available options.
--attach-file
If used, this will cause a copy of the uploaded file to be included, as an attachment, in the generated email.
--auth smtp-auth-info-file
Configures the path to a file containing SMTP authentication information. The configured file should look like this:
user username
password password
--fifo fifo-path
Indicates the path to the FIFO to which proftpd is writing its TransferLog. That is, this is the path that you used for the
TransferLog directive in your proftpd.conf. This parameter is REQUIRED.
--from email-address
Specifies the email address to use in the From email header. This parameter is REQUIRED.
--ignore-users regex-pattern
Specifies a Perl regular expression. If the uploading user name matches this regular expression, then an email notification is
NOT sent; otherwise, an email is sent.
--log xferlog-path
Since this script reads the TransferLog using FIFOs, the actual TransferLog file is not written by default. Use this option to
write the normal TransferLog file, in addition to watching for uploads.
--recipient email-address
Specifies an email address to which to send an email notification of the upload. This option can be used multiple times to
specify multiple recipients. AT LEAST ONE recipient is REQUIRED.
--smtp-server server-address
Specifies the SMTP server to which to send the email. This parameter is REQUIRED.
--subject subject
Specify a custom Subject email header for the email sent. The default Subject is:
User '$user' uploaded file '$file' via FTP
--watch-users regex-pattern
Specifies a Perl regular expression. If the uploading user name matches this regular expression, then an email notification is
sent; otherwise, no email is sent.
FILES
/var/log/xferlog
AUTHORS
ProFTPD is written and maintained by a number of people, full credits can be found on http://www.proftpd.org/credits.html
SEE ALSO
proftpd(8), xferlog(5)
Full documentation on ProFTPD, including configuration and FAQs, is available at http://www.proftpd.org/
For help/support, try the ProFTPD mailing lists, detailed on http://www.proftpd.org/lists.html
Report bugs at http://bugs.proftpd.org/
March 2011 ftpmail(1)