On Wed, October 23, 2013 12:56 pm, Gilles Chehade wrote:
> On Wed, Oct 23, 2013 at 12:17:06PM -0000, Michiel van Es wrote:
>>
>> is it possible that clamsmtp (a clam proxy for smtp - mostly used by
>> Postfix) is not working accepting the connection?
>> I see it should be possible with clamav when reading
>> http://comments.gmane.org/gmane.mail.opensmtpd.general/279 but I am
>> interested if this statement is really true and if so with which setup?
>>
>
> Yup, Eric and I made the testing together so we know for sure it works.
>
>
>> Clamav directly? Clamsmtp or clamav-milter or such?
>> Clamsmtp would be the most obvious as it uses an input and output
>> address
>> to pass all the mails through.
>>
>> Any tips would be much appreciated :)
>>
>
> I'm not a Clamav user and we did the testing about over 6 months ago, so
> I can't recall the exact components that were used. Basically, there's a
> Clamav component that knows how to speak smtp and that will forward back
> the mail to a configured smtp server after analysis. We used that and it
> was as simple to setup as dkim-proxy, we used the exact same config.

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

Works like a charm!

Thanks to Gilles! :)

Michiel

>
>
> --
> Gilles Chehade
>
> https://www.poolp.org                                          @poolpOrg
>
> --
> You received this mail because you are subscribed to [email protected]
> To unsubscribe, send a mail to: [email protected]
>
>



-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to