<div dir="auto">Is <span style="font-family:sans-serif;font-size:12.8px">$msginfo->{trusted} available in inject sub? </span></div><div class="gmail_extra"><br><div class="gmail_quote">Il 19 feb 2018 13:47, "Dietmar Maurer" <<a href="mailto:dietmar@proxmox.com">dietmar@proxmox.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> The concept is to load the relay_domains in hash AND to change the<br>
> $inject_port based on the fact that the sender's domain is found in the<br>
> hash.<br>
<br>
Does not really make sense, because pmg-smtp-filter already knows<br>
the direction, and calls<br>
<br>
  Â  Â  Â  Â  Â  $action->execute ($queue, $self->{ruledb}, $mod_group,<br>
  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  $rule_targets{$rule->{id}},<br>
  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  $msginfo, $vars, $rule_marks{$rule->{id}}->{<wbr>marks}, $ldap);<br>
<br>
<br>
So it seem that $msginfo->{trusted} contains all you need.<br>
(trusted == sent from internal server).<br>
<br>
______________________________<wbr>_________________<br>
pmg-devel mailing list<br>
<a href="mailto:pmg-devel@pve.proxmox.com">pmg-devel@pve.proxmox.com</a><br>
<a href="https://pve.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel" rel="noreferrer" target="_blank">https://pve.proxmox.com/cgi-<wbr>bin/mailman/listinfo/pmg-devel</a><br>
</blockquote></div></div>