User Tools

Site Tools


qmail_and_procmail_how_to

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
qmail_and_procmail_how_to [2010/04/13 23:30]
k2patel created
qmail_and_procmail_how_to [2020/08/10 02:35] (current)
Line 3: Line 3:
 ==== qmail wrapper to check each mail ==== ==== qmail wrapper to check each mail ====
  
-<​code ​bash | /​usr/​local/​bin/​qproc-wrap.sh>​+<​code ​sh | /​usr/​local/​bin/​qproc-wrap.sh>​
 #!/bin/sh #!/bin/sh
  
Line 22: Line 22:
 ==== Define procmail rules ==== ==== Define procmail rules ====
  
-<​code ​bash | /​usr/​local/​etc/​procmail.rc>​+This will send all messages with "//​^X-Spam-Status:​ Yes//" and send those messages to \\ 
 +spammer@test.com email'​s inbox. 
 + 
 +<​code ​sh | /​usr/​local/​etc/​procmail.rc>​
 SHELL=/​bin/​sh SHELL=/​bin/​sh
 #​LOGFILE=/​tmp/​procmail.log #​LOGFILE=/​tmp/​procmail.log
 #​VERBOSE=yes #​VERBOSE=yes
  
 +EXITCODE=99
 :0h :0h
 *^X-Spam-Status:​ Yes *^X-Spam-Status:​ Yes
Line 42: Line 46:
 </​code>​ </​code>​
  
 +==== Now run script using .qmail / .qmail-default ====
  
 +<code sh | .qmail-default>​
 +| /​usr/​local/​bin/​qproc-wrap.sh
 +| /​usr/​local/​vpopmail/​bin/​vdelivermail ''​ bounce-no-mailbox
 +</​code>​
qmail_and_procmail_how_to.1271201445.txt.gz · Last modified: 2020/08/10 02:30 (external edit)