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

Davide Bozzelli davide.bozzelli at gmail.com
Mon Feb 19 10:19:33 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,

Do you use the  PMG::Utils::reinject_mai every time in ALL the
pmg-smtp-filter to reinject ?

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 ?


On Mon, Feb 19, 2018 at 9:56 AM, Dietmar Maurer <dietmar at proxmox.com> wrote:

> > Could you please point me to the right direction ?
> Some examples are:
> pmg-api/PMG/RuleDB/Accept.pm (line 108)
> or
> pmg-api/PMG/RuleDB/BCC.pm (line 146)

Got problems with Windows? - ReBooT
Got problems with Linux? - Be RooT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pve.proxmox.com/pipermail/pmg-devel/attachments/20180219/0e348c21/attachment.html>

More information about the pmg-devel mailing list