I currently call into dpsam via an xfilter in /etc/courier/maildroprc and this works well enough when all virtual users use the same system uid:gid but gets tricky when each user has their own uid:gid. I was looking around for the right way to perhaps run Dspam as a local delivery agent and this page has simple snippet that could be appealing but it doesn't work and just throws a "dspam --help" like error (perhaps $USER is unpopulated)...
DEFAULTDELIVERY="| /usr/local/bin/dspam --deliver=innocent --user $USER" https://github.com/derchrisuk/AntiSpam/blob/master/dspam/dspam-3.8.0/doc/courier.txt I was using this in maildroprc until I decided to give each user their own system uid:gid... xfilter "/usr/bin/dspam --user $RECIPIENT --stdout --deliver=innocent,spam" Trust dspam #Trust daemon Trust root Trust admin TrustedDeliveryAgent /usr/bin/maildrop which works fine, and then changed the maildroprc xfilter to this... xfilter "/usr/bin/dspam --stdout --deliver=innocent,spam" and added the below to /etc/dspam/dspam.conf but now ONLY system users with real uid:gids get dropped into a spool/data/local/$USER spool dir and not the spool/data/DOMAIN/$USER that my previous virtual user version provided. UntrustedDeliveryAgent "/usr/bin/maildrop -d %u" Anyway, I'd also be interested in bypassing maildrop altogether if that were possible so I have 2 questions... . how to use xfilter in a mailfilter to handle both local and virtual users? . how to setup Dspam to work as the DEFAULTDELIVERY agent? Dspam version 3.10.2 w/ latest courier build. ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users