|Main Archive Page > Month Archives > postfix-users archives|
On 22 November 2011 11:52, David Mehler <email@example.com> wrote:
> On 11/22/11, Simon Brereton <firstname.lastname@example.org> wrote:
>> On 21 November 2011 19:33, David Mehler <email@example.com> wrote:
>>> I'm running Postfix 2.8 and virtual mailbox domains with a mysql
>>> database. I've also got spf and dkim signatures going as well as
>>> clamsmtp as an smtp proxy for virus checking. I'd now like to add in
>>> dspam antispam capability so that user's can forward emails that are
>>> spam or not. My problem is the multiple content filters are mixing me
>>> up and I'm not sure I've got the most efficient setup.
>>> In master.cf if the smtpd process has a content_filter option on it
>>> does that go first in the chain before any content_filter directives
>>> in main.cf? My working main.cf and master.cf files are below this
>>> message, dspam addon lines are still commented out. If anyone has this
>>> setup going I'd appreciate a sanity check. Also, if there are any
>>> configuration errors that I've missed please let me know, this is the
>>> most complex configuration I've set up to date.
>> I'm sure you have a good reason for rejecting this idea, but
>> amavisd-new would do the DKIM, DSPAM and Virus checking all in one
>> filter. Have you considered that?
> Thanks for your reply. I've tried amavisd-new in the past and when I
> did so it seemed more luck that it all worked vs. at least for me good
> configuration. I read the docs but still was more lucky to get it
> working, I was looking in to other solutions before I went that route.
> ¬†Also, when I ran it it seemed to slow things down system resource
> If I do go there will that mean I wouldn't have to run my setup as is,
> just hook amavisd-new in to the running daemons?
> How is your setup? What are you running?
Dave - I'm not an expert, but plenty of people (the majority, I would
guess) run amavisd with postfix. Plus the amavisd mailing list is
also very helpful.
What do you mean it was more luck that it worked? In my main.cf, I have defined
content_filter = smtp-amavis:[127.0.0.1]:10024
And in master.cf, I have
#The amavis reciever
127.0.0.1:10025 inet n - - - - smtpd
#the amavis connector, to send to amavis
smtp-amavis unix - - - - 2 smtp
#Stop Postfix from cleaning emails before sending to amavis
pre-cleanup unix n - n - 0 cleanup
My set up is quite old, so some of these may not be best practice any more.