On Thu, Mar 11, 2010 at 4:04 PM, Ansgar Wiechers <li...@planetcobalt.net> wrote:
> On 2010-03-11 Bacfd Bubb wrote:
>> I've got a virtual domain setup with a box dedicated to spam filtering
>> in front of it, to keep the hungry spam and av checks away from the
>> mail server itself.
>>
>> Mail between domains is delivered as expected, but the behaviour I'm
>> after is one where if the sender domain is not the same as the
>> recipient domain, and the recipient domain is on the mail server, and
>> if it hasn't got a header from the spam box; send it through the spam
>> box first.
>>
>> This way all local domains' incoming mail would get scanned and avoid
>> sending mail out through the spam box which is only setup to accept
>> mail for the domains on the mail server. The reason for this is all
>> the clean/crap reporting is done on the spam server and I'd like to
>> have those stats.
>>
>> I guess something like ( $sender_domain != $recipient_domain ) &&
>> exists $local_domains{$recipient_domain}  then send it on to the
>> header checks which would check for the spam box header and deliver
>> appropriately. Ideally these domains wouldn't come from the data
>> section.
>
> Why not have the "spam box" act as the MX for your domains? That way all
> inbound mail would go through that box. I'd rather not rely on the
> presence of some header for the decision whether or not to spam-check an
> incoming mail.
>
> For relaying of outbound mail you could enable submission on the backend
> MTA.
>
> Regards
> Ansgar Wiechers
> --
> "Abstractions save us time working, but they don't save us time learning."
> --Joel Spolsky
>

Hi,

Sorry, I probably didn't describe what I'm trying to achieve well enough.

The spam server is the MX and inbound mail is coming through to the
mail server. It's the mail between clients on the mail server that I'm
trying to get to go through the spam server for better reporting.

Please note that I am well aware of it not being an elegant solution
to rely on spam filtering via a header, that's not what I'm doing
here.  I'm trying to ensure that our new hosted mail setup with lots
of local domains have the reporting they used to have when they had
dedicated servers when mailing between the same domains on our mail
server.  The spam filtering still occurs on the mail server locally
but without reporting.

Postifx is v2.6.5.

Hope the above makes more sense, if you require any additional info
please dont hesitate to let me know!

Cheers

Reply via email to