That's what you get from providing untested examples :-(

Add to your /etc/procmailrc a rule to pass non-spam mail to dbmail-smtp:

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

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

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

hope that does it.


Simon Buchanan wrote:
Paul,

Paul J Stevens wrote:

Simon Buchanan wrote:

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



Don't use the dbmail transport if you want to use procmail.

Add your domain to mydestinations and remove your domain from the transport table.



Ive gotten this semi-working... I have postfix now sending mail to procmail... but its not delivering to dbmail. It doesnt seem to recognise the virtual users. Hmm - i must have some config screwed somewhere. But I happen to have a user 'simon' on the system, and this is the procmail.log:

procmail: No match on "^Subject: [spam]"
procmail: Assigning "PATH=/home/simon/bin:/usr/local/bin:/usr/bin:/bin"
procmail: Locking "/var/mail/simon.lock"
procmail: Assigning "LASTFOLDER=/var/mail/simon"
procmail: Opening "/var/mail/simon"
procmail: Acquiring kernel-lock
procmail: [11085] Mon Feb  7 20:39:02 2005
procmail: Unlocking "/var/mail/simon.lock"
procmail: Notified comsat: "[EMAIL PROTECTED]:/var/mail/simon"
 From MAILER-DAEMON  Mon Feb  7 20:39:00 2005
 Subject: Undelivered Mail Returned to Sender
  Folder: /var/mail/simon                           3828
procmail: No match on "^Subject: [spam]"
procmail: Assigning "PATH=/home/simon/bin:/usr/local/bin:/usr/bin:/bin"
procmail: Locking "/var/mail/simon.lock"
procmail: Assigning "LASTFOLDER=/var/mail/simon"
procmail: Opening "/var/mail/simon"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/mail/simon.lock"
procmail: Notified comsat: "[EMAIL PROTECTED]:/var/mail/simon"
 From [EMAIL PROTECTED]  Mon Feb  7 20:41:14 2005
 Subject: Test message
  Folder: /var/mail/simon                            994
procmail: No match on "^Subject: [spam]"
procmail: Assigning "PATH=/home/simon/bin:/usr/local/bin:/usr/bin:/bin"
procmail: Locking "/var/mail/simon.lock"
procmail: Assigning "LASTFOLDER=/var/mail/simon"
procmail: Opening "/var/mail/simon"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/mail/simon.lock"
procmail: Notified comsat: "[EMAIL PROTECTED]:/var/mail/simon"
 From [EMAIL PROTECTED]  Mon Feb  7 20:44:40 2005
 Subject: [spam] Test message
  Folder: /var/mail/simon                           1241
procmail: No match on "^Subject: [spam]"
procmail: Assigning "PATH=/home/simon/bin:/usr/local/bin:/usr/bin:/bin"
procmail: Locking "/var/mail/simon.lock"
procmail: Assigning "LASTFOLDER=/var/mail/simon"
procmail: Opening "/var/mail/simon"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/mail/simon.lock"
procmail: Notified comsat: "[EMAIL PROTECTED]:/var/mail/simon"
From [EMAIL PROTECTED] Mon Feb 7 20:48:48 2005
 Subject: Re: apt-get doesn't follow dependencies
  Folder: /var/mail/simon                           4724
procmail: No match on "^Subject: [spam]"
procmail: Assigning "PATH=/home/simon/bin:/usr/local/bin:/usr/bin:/bin"
procmail: Locking "/var/mail/simon.lock"
procmail: Assigning "LASTFOLDER=/var/mail/simon"
procmail: Opening "/var/mail/simon"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/mail/simon.lock"
procmail: Notified comsat: "[EMAIL PROTECTED]:/var/mail/simon"
 From MAILER-DAEMON  Mon Feb  7 20:49:09 2005
 Subject: [spam] Undelivered Mail Returned to Sender
  Folder: /var/mail/simon                           4027

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


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

Reply via email to