From: Wietse Venema (no email)
Date: Sun Jun 02 2002 - 18:19:18 EDT
Believe it or not, this will actually be simpler if you run two
Postfix instances, each with different virtual_maps and relay_domains
settings.
- The first Postfix sits before the content filter, and delivers
not-to-be-filtered mail directly. To-be-filtered mail is sent
to the content filter.
- The second Postfix gets mail from the content filter and
delivers it.
It can be done with one Postfix but it gets complicated. See the
last example in FILTER_README of the most recent snapshot releases.
You're on the right way with using a transport map to make content
filtering destination dependent.
Wietse
Daniel Khan:
> Hello List,
>
> I am a Postfix Rookie and implementing a rather complicated setup.
>
> Cause I am getting weird trying different setups since days I have to ask
> you.
>
> The mailserver I'm configuring is intended to do filtering trough amavis,
> but should restrict this filtering to certain domains.
>
> I am using amavis-ng which offers it's own small SMTP server.
> The transport,alias,virtual maps are stored in LDAP.
>
> E-Mail comming in which shouldn't be scanned is considered to be local and
> will be transfered to the right mailbox.
> That's no problem. This setup works.
> Now I want to implement the optional virus scanning.
>
> To do this I have set values in LDAP which make the virtual_maps LDAP not
> match.
> So the email doesn't went into the mailbox because it isn't considered to
> have a local mailbox. Now the transport map comes in action.
> This map redirects the mail to the amavis SMTPD running on 10025. The
> scanned Mail is returned on
> Port 10026 via SMTP.
> Port 10026 is set in master.cf. No Problem.
> Now I have the problem that I have to make this mail match against the
> virtual_maps to get it into the users mailbox.
> So I think I would need a new virtual map, which ignores the values used for
> the scanning.
>
> So the point would be to set a new ldap map inside the master.cf for port
> 10026 with
> -o virtual_maps=ldap:ldapvirtualNoscan
>
> But maybe there is a mistake in my setup, or the virtual_maps settings
> inside main.cf are simply not visible inside
> master.cf. So I end up with a mail loop.
>
> So is there a way to specify a new ldapvirtual map within master.cf for a
> specified Filter/Port?
> I also have a secondary MX running which is crosscowired with the Primary.
> So I could pass the messages to the second one to scan it.
>
> I think having the whole thing in LDAP makes the whole thing easier because
> I am able to process the informations with filters, but I think my postfix
> knowledge is simply to little.
>
> I'm really thinking and trying since days to fullfill my requirements -
> please help me out!
>
> Regards
>
> Daniel Khan
>
> -
> To unsubscribe, send mail to with content
> (not subject): unsubscribe postfix-users
>
>
-
To unsubscribe, send mail to with content
(not subject): unsubscribe postfix-users
|
|
|