Hmm. Here is the log once this command has been put in...:

Feb 4 09:16:09 mx2 postfix/qmgr[31746]: D8B6D1E529B: from=<[EMAIL PROTECTED]>, size=1938, nrcpt=1 (queue active) Feb 4 09:16:09 mx2 postfix/smtpd[31762]: disconnect from localhost.localdomain[127.0.0.1] Feb 4 09:16:09 mx2 amavis[31382]: (31382-09) Passed SPAM, [203.109.194.19] [203.167.190.1] <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>, quarantine: spam-9b931d26ba7682b06b8f83544b5e5657-20050204-091606-31382-09, Message-ID: <[EMAIL PROTECTED]>, Hits: 998.496, 3373 ms Feb 4 09:16:09 mx2 postfix/smtp[31759]: 7A49C1E5295: to=<[EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1], delay=3, status=sent (250 2.6.0 Ok, id=31382-09, from MTA: 250 Ok: queued as D8B6D1E529B)
Feb  4 09:16:09 mx2 postfix/qmgr[31746]: 7A49C1E5295: removed
Feb 4 09:16:09 mx2 dbmail/smtp[31810]: sort.c, sort_and_deliver: message id=88321, size=1894 is inserted Feb 4 09:16:09 mx2 postfix/pipe[31765]: D8B6D1E529B: to=<[EMAIL PROTECTED]>, relay=dbmail, delay=0, status=sent (xxxxx.co.nz)

Also nothing in /tmp/procmail.log

Thanks,
Simon

Paul J Stevens wrote:
Make that

mailbox_command = procmail -a "$EXTENSION" -a "$RECIPIENT"


Simon Buchanan wrote:

Paul

Paul J Stevens wrote:

Edit /etc/postfix/main.cf

add -a "$RECIPIENT" to the mailbox_command option:

mailbox_command = -a "$EXTENSION" -a "$RECIPIENT"

Edit /etc/procmailrc

----------------------
VERBOSE=true
LOGFILE=/tmp/procmail.log

:0:
* ^Subject: **SPAM**
| /usr/sbin/dbmail-smtp -m Spam -d "$2"



I have added a /etc/procmailrc file with the above. I am using a "Junk" folder so ive made it -m Junk and the subject line for us is [spam], so it says Subject: [spam]

In postfix, it had "mailbox_command =" (blank in other words), so iva changed that it to

mailbox_command = -a "$EXTENSION" -a "$RECIPIENT"

(excatly that?)

But dosnt seem to produce a result. (Using amavis-new to tag spam). Any sugestions here?

Thanks
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail


Reply via email to