Thanks for that snippet, Mark. http://laku19.adsl.netsonic.fi/era/procmail/mini-faq.html#implicit-lock
Solution found to my problem. Drop the 2nd colon in the :0: and it works. Found this by going to the freenode IRC channel #procmail and being obedient enough to read their faq's before asking any questions: "Don't use file locking when ... piping into a program." Q: What does the second colon in :0: mean? Should I worry? A: You just missed it. It tells Procmail to use locking on this recipe. Go back and read the above snippet about file locking. See the next question. Q: What does "Couldn't determine implicit lockfile" mean? A: Briefly, that you have :0: where you should have either a named lock file or just :0 (ignoring any possible flags here). See previous question. Hope this helps. Q: What does "Extraneous locallockfile ignored" mean? A: See previous question. Hope this helps. > I did this a while back by writing a simple perl script which basically > piped stdin; but killed the first line which procmail adds for mbox > format. > > > #!/usr/bin/perl > > # discard first line from procmail (comment this out if you continue to > use > this script direcly as the LDA in sendmail) > $line = <STDIN>; > > open(PIPE, "|/path-to-dbmail"); > while (<STDIN>) { > print PIPE $_; > } > close PIPE; > > > > Regards, > Mark > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf > Of April Lorenzen > Sent: Friday, 15 October 2004 11:06 a.m. > To: DBMail mailinglist > Subject: [Dbmail] procmail and dbmail-smtp > > Thanks, Paul. > > Can anyone suggest a manual method of testing just the procmail to dbmail > successfully, like a command I could use to pipe a test message from the > command line or a prepared text file to procmail, and watch procmail > correctly deliver it into dbmail-smtp? > > This would eliminate sendmail from the picture, allow me to verify the > procmail to dbmail workings, then proceed from there. > > Thank you, > > - April > >> April, >> >> Somehow, sendmail isnt passing the correct arguments to procmail. >> Therefor the mailer definition must be incorrect. >> >> From the sendmail site I understand: >> >> - you don't want to override Mprocmail. Leave it at default. Of course >> you do want to enable this mailer so leave MAILER(procmail) in. >> >> - you simply set up a mailertable entry for the domain you want to >> deliver to dbmail via procmail: >> >> -------------/etc/mail/mailertable----------------- >> codelock.com procmail:/etc/procmailrcs/codelock.com >> --------------------------------------------------- >> where /etc/procmailrcs/codelock.com contains: >> >> ------------/etc/procmailrcs/codelock.com---------- >> VERBOSE=true >> LOGFILE=/tmp/procmail.log >> >> :0: >> * ^X-milter-siq-Report: pass=NO >> | /usr/sbin/dbmail-smtp -m Bulk -d "$2" >> >> :0: >> | /usr/sbin/dbmail-smtp -d "$2" >> --------------------------------------------------- >> >> This is really more a sendmail issue than dbmail. If the above doesn't >> help you should get support from a sendmail user, which I am not >> anymore. >> >> >> >> >> >> April Lorenzen wrote: >>> So far I haven't gotten procmail to deliver into dbmail - I get an >>> error about >>> >>> procmail: Couldn't determine implicit lockfile from >>> "/usr/sbin/dbmail-smtp" >>> procmail: Locking ".lock" >>> procmail: Executing "/usr/sbin/dbmail-smtp,-d," >>> procmail: Non-zero exitcode (75) from "/usr/sbin/dbmail-smtp" >>> procmail: Assigning "LASTFOLDER=/usr/sbin/dbmail-smtp -d " >>> procmail: Assigning "PATH=/root/bin:/usr/local/bin:/usr/bin:/bin" >>> >>> I am wondering if the procmailrc line you suggested: >>> >>> | /usr/sbin/dbmail-smtp -m Bulk -d "$@" >>> >>> delivers to the Bulk folder under the user the message was addressed >>> to >>> - >>> or to a system-wide Bulk folder. I need it to go to the individual >>> addressee bulk folder. >>> >>> >>> >>>>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 >>>> >>> >>> >>> >>> _______________________________________________ >>> Dbmail mailing list >>> Dbmail@dbmail.org >>> https://mailman.fastxs.nl/mailman/listinfo/dbmail >>> >> >> -- >> ________________________________________________________________ >> Paul Stevens [EMAIL PROTECTED] >> NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 >> The Netherlands_______________________________________www.nfg.nl >> _______________________________________________ >> Dbmail mailing list >> Dbmail@dbmail.org >> https://mailman.fastxs.nl/mailman/listinfo/dbmail >> > > > _______________________________________________ > Dbmail mailing list > Dbmail@dbmail.org > https://mailman.fastxs.nl/mailman/listinfo/dbmail > > > _______________________________________________ > Dbmail mailing list > Dbmail@dbmail.org > https://mailman.fastxs.nl/mailman/listinfo/dbmail >