Hi Kevin sorry for sending offlist the first time :-)
> Have you been using that change in production? Yes I changed it in my prod perl file today. Works so far for the last couple of hours. Issue could occur if trusted/internal networks is not set properly and the message contains a non-smtp received header with a public IP. Like for example could occur if the message is sent via lmtp. Then the received header does not contain ptr info therefore _LASTEXTERNALRDNS_ cannot be set or only set with empty string. That could potentially lead to fancy dns queries if using the tag in an askdns rule From my point of view it would be very nice to have these two tags set by default Cheers tobi Am 27.11.19 um 16:18 schrieb Kevin A. McGrail: > After a 10 minute or so study of the issue and comparing 3.4 and trunk, > it definitely looks like the code is missing. I am not 100% sure your > fix works but it's better than it currently exists :-) > > Have you been using that change in production? > > Regards, > > KAM > > On 11/27/2019 6:59 AM, Tobi <jahli...@gmx.ch> wrote: >> Hi, >> >> is there any specific reason why the two tags mentioned in subject are >> not set in SA? It took me a while to find out why an askdns test was not >> running. The test relies on _LASTEXTERNALRDNS_ but after running with >> --debug I found that those tags are not set by SA. Although >> _LASTEXTERNALIP_ is set. Also the man page states that the two tags >> should exist. >> >> In PerMsgStatus.pm I saw that everything is prepared for the two tags >> but they finally not set (around line 1721). So I changed to >> >>> if ($lasthop) { >>> $self->set_tag('LASTEXTERNALIP', $lasthop->{ip}); >>> $self->set_tag('LASTEXTERNALRDNS', $lasthop->{rdns}); >>> $self->set_tag('LASTEXTERNALHELO', $lasthop->{helo}); >>> } >> >> and --debug shows that the tags are now set and the askdns test is run. >> >> So I wonder if the code has just been forgotten or if there are deeper >> reasons to not set the tags? >> If no deeper reasons exist it would be nice to have those two tags set >> as default in PerMsgStatus.pm >> >> >> Cheers >> >> -- >> >> tobi >