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

Dietmar Maurer dietmar at proxmox.com
Mon Feb 19 13:47:37 CET 2018


> 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).



More information about the pmg-devel mailing list