Re: traffic flow when using postfix with a content_filter

This is a discussion on Re: traffic flow when using postfix with a content_filter within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; * Tom Van Overbeke <tom.van.overbeke@pandora.be> > Hi, > > Can someone explain me what the ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-07-2003
Erland Nylend
 
Posts: n/a
Default Re: traffic flow when using postfix with a content_filter

* Tom Van Overbeke <tom.van.overbeke@pandora.be>
> Hi,
>
> Can someone explain me what the traffic flow is when you use postfix with a
> content filter ?
>
> I installed a commercial virus checker (imss) that is called from postfix
> via the 'content_filter=" keyword in main.cf, like this/
>
> content_filter=imss:localhost:10025


Note that this will scan both incoming and outgoing mail. If you only
want to scan inbound mail (in fact, messages not sent to your
domains), then you can use something like this instead:

smtpd_recipient_restrictions =
check_recipient_access hash:/etc/postfix/recipient_access,
[more stuff]

The contents of recipient_access should be something like this:

your_domain FILTER imss:[127.0.0.1]:10025
your_domain2 FILTER imss:[127.0.0.1]:10025

> So i think the flow is like this:
>
>
> postfix receives the mail on port 25.
> postfix checks if the mail is allowed (smtp client restrictions, helo
> restrictions, etc)
> postfix passes the mail on to the content_filter
> the content_filter does its work also.
> but, is it then the content_filter that opens up an smtp connection, or does
> it send it back to postfix to let it handle it ?


With amavisd-new, its the second option. (amavisd sends the mail back
to postfix, listening at 127.0.0.1:whatever_port, if it decides that the
message should be delivered to one or several recipients.)

(you will have to tell postfix to listen to whatever_port in
/etc/postfix/master.cf, of course)


> I would think it's the latter option, because postfix will need to look up
> the correct route to send the mail to the destination (transportlist, mx
> record, etc), but i'm not sure.
>
>
> Can someone enlighten me ?


Ive only set this up with amavisd-new. If you download it, you will
find that the download includes some documentation on how to set it up
on a postfix server.

Even though you use a different content scanner, I believe that you
will find some answers to your questions from this documentation.


--
Erland Nylend
Reply With Quote
  #2 (permalink)  
Old 09-07-2003
Erland Nylend
 
Posts: n/a
Default Re: traffic flow when using postfix with a content_filter

* Erland Nylend <erland1@online.no>

> Note that this will scan both incoming and outgoing mail. If you only
> want to scan inbound mail (in fact, messages not sent to your

^^^
*remove not*
--
Erland Nylend
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:50 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0