LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-06-2004, 01:42 PM   #1
MaverickApollo
Member
 
Registered: Oct 2003
Distribution: Debian
Posts: 57

Rep: Reputation: 15
Procmail Gurus help me Please!


If I have the following Procmail recipe, where do i put the /dev/null statement to forward to /dev/null?

I am sorry for a basic question, but Procmail is'nt that easy to understand, and the recipe below is a hash of the Vacation example, but it does eactly what I need it to, bar deleting the message!

I havbe tried to put the /dev/null statement after the sendmail, but the log file justs says "skipped".

Any help appreciated!




Code:
SHELL=/bin/sh    # for other shells, this might need adjustment
LOGFILE=pmlog
LOG="
"
VERBOSE=yes

KAKMATCH=`cat $HOME/kaksenders.txt`

                :0 Whc: vacation.lock
              * $^FROM.*${KAKMATCH}
              * !^FROM_DAEMON
              * !^X-Loop: poofilter
              | formail -rD 8192 vacation.cache

              :0 ehc         # if the name was not in the cache
                | (formail -rA"Precedence: junk" \
                     -A"X-Loop: poofilter" ; \
                   echo ".."; \
                   echo ".."; \
                   echo "-- "; cat $HOME/block.txt \
                  ) | $SENDMAIL -oi -t
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
POSTFIX Gurus... Help! RonMan Linux - Software 1 11-08-2005 03:03 AM
Hi Lunix Gurus DY-Jlab LinuxQuestions.org Member Intro 2 08-18-2005 04:57 PM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
Gurus, about that kernel... NonSumPisces Linux - General 9 06-18-2004 12:35 PM
Need gurus' help... fxlee Linux - Networking 1 01-28-2002 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration