Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-06-2004, 02:42 PM   #1
Registered: Oct 2003
Distribution: Debian
Posts: 55

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!

SHELL=/bin/sh    # for other shells, this might need adjustment

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


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 04:03 AM
Hi Lunix Gurus DY-Jlab Member Intro 2 08-18-2005 05:57 PM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 08:01 PM
Gurus, about that kernel... NonSumPisces Linux - General 9 06-18-2004 01:35 PM
Need gurus' help... fxlee Linux - Networking 1 01-28-2002 10:47 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:41 AM.

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