postfix - one interface, two different content filter?
Hello List, is it possible to have postfix listen on two network interfaces, but the same port and use two different content filter for mails depending on where they come in? I have the following config: - incoming mail via eth0 is spam-checked and forwarded to exchange server - outgoing mail comes from the exchange server and must not be spam-checked when going out. Actually now I have three Ports open for postfix-SMTP (incoming,spamd,outgoing), and three smtp-instances running via config from master.cf. Now we need to close the port for outgoing mail. (And I don't want to do a redirect with iptables!) Thanks a lot! -- Mit freundlichen Grüßen Markus Feilner -- Linux Solutions, Training, Seminare und Workshops - auch Inhouse Feilner IT Linux & GIS Erlangerstr. 2 93059 Regensburg fon: +49 941 70 65 23 - mobil: +49 170 302 709 2 web: http://feilner-it.net mail: mfeilner@feilner-it.net
On Fri, 28 Nov 2003, Markus Feilner wrote:
is it possible to have postfix listen on two network interfaces, but the same port and use two different content filter for mails depending on where they come in?
This is only possible if you use two different ip adresses for each interface, bind one smtpd on each for port 25 and select the filter depending on this via master.cf c'ya sven -- The Internet treats censorship as a routing problem, and routes around it. (John Gilmore on http://www.cygnus.com/~gnu/)
Am Freitag, 28. November 2003 15:11 schrieb Sven-Haegar Koch:
On Fri, 28 Nov 2003, Markus Feilner wrote:
is it possible to have postfix listen on two network interfaces, but the same port and use two different content filter for mails depending on where they come in?
This is only possible if you use two different ip adresses for each interface, bind one smtpd on each for port 25 and select the filter depending on this via master.cf
c'ya sven
right - i was able to solve this, thanks to andreas winkelmann, this box is a router, so this ist no problem. thank you! Am Freitag, 28. November 2003 12:49 schrieb Andreas Winkelmann: (...)
Das sind dann trotzdem mehrere Instanzen, aber sowas müsste in der master.cf doch trennbar sein.
192.168.10.1:25 inet .... smtpd -o ... 192.168.11.1:25 inet .... smtpd -o ...
-- Andreas --
The Internet treats censorship as a routing problem, and routes around it. (John Gilmore on http://www.cygnus.com/~gnu/)
-- Mit freundlichen Grüßen Markus Feilner -- Linux Solutions, Training, Seminare und Workshops - auch Inhouse Feilner IT Linux & GIS Erlangerstr. 2 93059 Regensburg fon: +49 941 70 65 23 - mobil: +49 170 302 709 2 web: http://feilner-it.net mail: mfeilner@feilner-it.net
participants (2)
-
Markus Feilner
-
Sven-Haegar Koch