April Lorenzen wrote:
Using dbmail-pgsql, yesterday's debian pkg :)

Sendmail inserts and anti-spam header into my inbound mail
 like this:

X-milter-siq-Report: pass=YES

or

X-milter-siq-Report: pass=NO

I would like to use the simplest method to cause mail
 with a pass=NO to be stored in the dbmail tables so
that it will appear in an IMAP folder named "bulk" while the pass=YES mail goes as usual to the inbox folder.



3. add another program between sendmail and dbmail - not
sure how this would help unless LMTP makes it possible to insert to a particular folder and SMTP doesn't. (sounds silly)

By inserting procmail between sendmail and dbmail you can achieve this easily. You'll have to use dbmail-smtp for this though.

in /etc/procmailrc

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

:0:
* ^X-milter-siq-Report: pass=NO
| /usr/sbin/dbmail-smtp -m Bulk -d "$@"

:0:
| /usr/sbin/dbmail-smtp -d "$@"

----


This assumes a mailer setup along the lines of:

Mprocmail, P=/usr/bin/procmail, F=mSDFMhun, S=11, R=21,
                      A=procmail -m /etc/procmailrc $u



--
  ________________________________________________________________
  Paul Stevens                                         [EMAIL PROTECTED]
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands_______________________________________www.nfg.nl

Reply via email to