Re: Getting messages from queue

2015-03-04 Thread Wietse Venema
@lbutlr: This is what I have to clear the held message and send them to sa-learn, in case it's useful to anyone else. $ cat /usr/local/bin/spamd-learn #!/bin/bash SUSER=spamd SPAMF=${SUSER}/trained/spam # search for held messages, get qid, train as spam, and save message, then

Re: Getting messages from queue

2015-03-03 Thread Noel Jones
On 3/3/2015 9:47 AM, LuKreme wrote: On Mar 3, 2015, at 08:30, Noel Jones njo...@megan.vbhcs.org wrote: To manually test a message, use something like: postcat -bhq QUEUEID | spamassassin I was surprised that postcat requires a full path to the file, but thanks for the info in the From

Re: Getting messages from queue

2015-03-03 Thread Noel Jones
On 3/3/2015 9:14 AM, LuKreme wrote: When I have a message in the mailq how do I get just the message out to, for example, feeding to SpamAssassin? With postcat -bh there is no From header. (I'm not sure if SA uses the From header or not) The From pseudo-header is added during mbox

Getting messages from queue

2015-03-03 Thread LuKreme
When I have a message in the mailq how do I get just the message out to, for example, feeding to SpamAssassin? With postcat -bh there is no From header. (I'm not sure if SA uses the From header or not) --

Re: Getting messages from queue

2015-03-03 Thread LuKreme
On Mar 3, 2015, at 08:30, Noel Jones njo...@megan.vbhcs.org wrote: To manually test a message, use something like: postcat -bhq QUEUEID | spamassassin I was surprised that postcat requires a full path to the file, but thanks for the info in the From header.

Re: Getting messages from queue

2015-03-03 Thread @lbutlr
On Mar 3, 2015, at 8:55 AM, Noel Jones njo...@megan.vbhcs.org wrote: On 3/3/2015 9:47 AM, LuKreme wrote: On Mar 3, 2015, at 08:30, Noel Jones njo...@megan.vbhcs.org wrote: To manually test a message, use something like: postcat -bhq QUEUEID | spamassassin I was surprised that postcat