On Wed, Oct 23, 2013 at 01:03:32PM -0000, Michiel van Es wrote: > > I have it working. > For people who want to use this: > > 1) install clamsmtp - it is a clam smtp proxy which accepts incoming and > then outgoing connections (putting a message back in the queue) > > 2) use something similar as setup - adjust to your own needs: > > table vdomains "/usr/local/etc/vdomains" > table vusers "/usr/local/etc/users" > listen on lo port 10025 tag CLAM > accept tagged CLAM from any for domain <vdomains> virtual <vusers> deliver > to mda "procmail -f -" > accept tagged CLAM for any relay > accept from any for any relay via smtp://127.0.0.1:10026 >
The above is working but as an open-relay, you will want to adjust the ruleset, something along the lines of: listen on lo port 10025 tag CLAM_IN listen on lo port 10027 tag CLAM_OUT accept tagged CLAM_IN for domain <vdomains> virtual <vusers> deliver to mda "procmail -f -" accept tagged CLAM_OUT for any relay accept from local for any relay via smtp://127.0.0.1:10026 # will reinject in CLAM_IN accept from any for any relay via smtp://127.0.0.1:10028 # will reinject in CLAM_OUT There may be better/other ways, that's just from the top of my head -- Gilles Chehade https://www.poolp.org @poolpOrg -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org