[pmg-devel] Separate smtp injection port for IN e OUT in pmg-filter
Dietmar Maurer
dietmar at proxmox.com
Mon Feb 19 12:40:07 CET 2018
> I've found this:
> RuleDB/Notify.pm: my $qid = PMG::Utils::reinject_mail(
> RuleDB/Accept.pm: my ($qid, $code, $mess) = PMG::Utils::reinject_mail(
> RuleDB/BCC.pm: my $qid = PMG::Utils::reinject_mail(
> Utils.pm:sub reinject_mail {
> Utils.pm: PMG::Utils::reinject_mail ($top, '', [$receiver], undef,
> $data->{fqdn});
>
> Do you use the PMG::Utils::reinject_mai every time in ALL the
> pmg-smtp-filter to reinject ?
AFAIK yes.
> I've found the var at the top of pmg-filter:
>
> my $opt_int_port = 10023;
> my $opt_inject_port = 10025; <--- HERE
>
> BUT seems to be not used.
>
> I'm planning to distinguish two different smtp port to reinject back, how
> can I figure out inside the function
> PMG::Utils::reinject_mail which direction (and so which port of
> pmg-filter) I'm using ?
I guess you need to check all call sites, and maybe you need
to add an extra parameter ...
More information about the pmg-devel
mailing list