OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: 2nd instance of postfix vs smtp

From: Tony Earnshaw (tonyebilly.demon.nl)
Date: Fri Aug 26 2005 - 10:13:23 CDT


fre, 26.08.2005 kl. 15.28 skrev Anne Ramey:

[...]

> My puzzle is how to filter outgoing without having incoming go through
> amavis at all. I know how to set up amavis to not apply it's rules to
> one set while applying them to the other, but there is no reason to send
> the incoming mail to amavis at all...it will only slow things down. I'm
> thinking two smtp instances on separate IPs, like:
>
> master.cf:
>
> smtp inet n - n - - smtpd
> -o content_filter=
>
>
> 66.45.96.10:smtp inet n - n - - smtpd
> -o content_filter=smtp-amavis:[127.0.0.1]:10024

[...]

> And send mail from our filtering service to 66.45.96.10 and have all
> outgoing mail send to the main IP. Will this do what I need?

Well, it's what I do to separate "outgoing" from "incoming" and
allow/impose separate rules, respectively. "It works for me".

> What
> about the content filter variable that's supposed to be in main.cf?

I don't have any content filter in main.cf, I have proxy filters (-o
smtpd_proxy_filter=whatever) in master.cf. if I *did* have any content
filter, it would be in master.cf, anyway, since it's instance-dependent.
IOW set it for each instance in master.cf, not in main.cf.

Next thing is: Get yourself a test server (can be an el-cheapo
something), with its own domain and static IP, mail server service
guaranteed (my dialup one costs me ¤16 per month from Demon Internet in
Holland). There's nothing like it.

> Last time I had a separate instance of postfix for delivery, but I'm
> thinking that is unnecessarily clunky. opinions?

Separate instances are not necessary, separate listeners are.

Best,

--Tonni

--
To Liza Picquard (?), by Phil Williams on BBC Radio 5, Wed. 10th Aug.
2005, 15:59 CEST:

"What is your definition of 'poor'?"
"Well, if your only occupation is collecting dog turds for a living,
you're pretty poor ..."

mail: tonyebilly.demon.nl
http://www.billy.demon.nl