t seems it worked now after some regex adjustments.
Now I have to see how I will do with what qmail works with this file
(any tips)?
In fact, this is not an ideal solution (I previously used the
qmail-smtp-auth patch, but I could not make the patch work on newer o.s
64bit) that qmail gateway is an older installation that I'm having to
do a forced upgrade, since old hardware is having problems - but I will
not bother to study or implement other solution as we will migrate to a
cloud service solution (google apps, office 365 or something like that),
so this server is only temporary A survival of some 5 to 6 months only)
Em 28-07-2017 18:18, Matthias Hunstock escreveu:
Am 28.07.2017 um 23:09 schrieb Rejaine Monteiro:
I am testing with these values that you passed
and now there are some
errors running:
:# ./pop-before-smtp --config=/var/qmail/bin/pop-before-smtp-conf.pl
Use of uninitialized value $_[0] in split at
/usr/lib/perl5/vendor_perl/5.18.2/Net/Netmask.pm line 246.
I also use qmail, but
do not have that script.
I guess there need to be some round parenthesis in the RegEx to mark the
spots where e.g. an IP address is located.
So change $pat to:
mailserver1 perdition\.imaps\[\d+\]: Auth:
(\d+\.\d+\.\d+\.\d+):\d+\-\>\d+\.\d+\.\d+\.\d+:\d+ client-secure=plaintext
authorisation_id=NONE authentication_id=\"\S+\" server=\"\S+\"
protocol=\S+ server-secure=plaintext status=\"ok\"
or even shorter:
mailserver1 perdition\.imaps\[\d+\]: Auth:
(\d+\.\d+\.\d+\.\d+):.*status=\"ok\"
(of course adding the LOGTIME thing, removed that for testing locally)
HTH
Matthias
______________________________________________
Perdition-users mailing list
Perdition-users(a)vergenet.net
https://lists.vergenet.net/listinfo/perdition-users
--
Rejaine da Silveira Monteiro
Suporte - Tecnologia Digital
Tel: (31) 2102-8854
Jamef Encomendas Urgentes - Matriz - Belo Horizonte/MG
www.jamef.com.br