21 lines
		
	
	
		
			623 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			623 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| TESTING
 | ||
| =======
 | ||
| 
 | ||
| First you have to create a ruleset (see Configuration section). Check it with
 | ||
| 
 | ||
|         postfwd2 −f /etc/postfwd.cf −C
 | ||
| 
 | ||
| There is an example policy request distributed with postfwd, called ’request.sample’. Simply change it to meet your requirements and use
 | ||
| 
 | ||
|         postfwd2 −f /etc/postfwd.cf <request.sample
 | ||
| 
 | ||
| You should get an answer like
 | ||
| 
 | ||
|         action=<whateveryouconfigured>
 | ||
| 
 | ||
| For network tests I use netcat:
 | ||
| 
 | ||
|         nc 127.0.0.1 10045 <request.sample
 | ||
| 
 | ||
| to send a request to postfwd. If you receive nothing, make sure that postfwd2 is running and listening on the specified network settings.
 |