[pmg-devel] Separate smtp injection port for IN e OUT in pmg-filter

Davide Bozzelli davide.bozzelli at gmail.com
Mon Feb 19 13:58:01 CET 2018


Is $msginfo->{trusted} available in inject sub?

Il 19 feb 2018 13:47, "Dietmar Maurer" <dietmar at proxmox.com> ha scritto:

> > The concept is to load the relay_domains in hash AND to change the
> > $inject_port based on the fact that the sender's domain is found in the
> > hash.
>
> Does not really make sense, because pmg-smtp-filter already knows
> the direction, and calls
>
>             $action->execute ($queue, $self->{ruledb}, $mod_group,
>                               $rule_targets{$rule->{id}},
>                               $msginfo, $vars, $rule_marks{$rule->{id}}->{marks},
> $ldap);
>
>
> So it seem that $msginfo->{trusted} contains all you need.
> (trusted == sent from internal server).
>
> _______________________________________________
> pmg-devel mailing list
> pmg-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pve.proxmox.com/pipermail/pmg-devel/attachments/20180219/8d75b3f2/attachment.html>


More information about the pmg-devel mailing list