You need to restart the portal, did you do it ?
Le 2018-05-31 à 17:09, Dominix Pub. a écrit :
strange ... no dump. but for sure I have Data::Dumper
[root@pf-wifi ~]# perl -MData::Dumper -we 'print Data::Dumper->VERSION'
2.145
however, email was send
May 31 10:21:38 pf-wifi pfqueue: pfqueue(3024) INFO: [mac:unknown]
Device Galaxy Core Prime is a Android OS (pf::fingerbank::__ANON__)
May 31 10:21:44 pf-wifi packetfence_httpd.portal: httpd.portal(2566)
INFO: [mac:unknown] Instantiate profile default
(pf::Connection::ProfileFactory::_from_profile)
May 31 10:21:44 pf-wifi packetfence_httpd.portal: httpd.portal(2566)
INFO: [mac:f4:0e:22:ef:64:03] Instantiate profile default
(pf::Connection::ProfileFactory::_from_profile)
May 31 10:21:46 pf-wifi packetfence_httpd.portal: httpd.portal(2567)
INFO: [mac:f4:0e:22:ef:64:03] Instantiate profile default
(pf::Connection::ProfileFactory::_from_profile)
May 31 10:22:32 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] Instantiate profile default
(pf::Connection::ProfileFactory::_from_profile)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
WARN: [mac:f4:0e:22:ef:64:03] modify of non-existent person
[email protected] <mailto:[email protected]> attempted - person added
(pf::person::pers
on_modify)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] User [email protected]
<mailto:[email protected]> has authenticated on the portal.
(Class::MOP::Class:::after)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] new activation code successfully
generated (pf::activation::create)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] Instantiate profile default
(pf::Connection::ProfileFactory::_from_profile)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] We are doing guest activationfr_FR
(pf::activation::send_email)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
WARN: [mac:f4:0e:22:ef:64:03] (pf::config::util::send_mime_lite)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] User [email protected]
<mailto:[email protected]> has authenticated on the portal.
(Class::MOP::Class:::after)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
WARN: [mac:f4:0e:22:ef:64:03] Calling match with empty/invalid rule
class. Defaulting to 'authentication' (pf::authentic
ation::match)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] Using sources email for matching
(pf::authentication::match)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] Matched rule (catchall) in source email,
returning actions. (pf::Authentication::Source::m
atch_rule)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] Matched rule (catchall) in source email,
returning actions. (pf::Authentication::Source::m
atch)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] User [email protected]
<mailto:[email protected]> has authenticated on the portal.
(Class::MOP::Class:::after)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
WARN: [mac:f4:0e:22:ef:64:03] Calling match with empty/invalid rule
class. Defaulting to 'authentication' (pf::authentic
ation::match)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] Using sources email for matching
(pf::authentication::match)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] Matched rule (catchall) in source email,
returning actions. (pf::Authentication::Source::m
atch_rule)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] Matched rule (catchall) in source email,
returning actions. (pf::Authentication::Source::m
atch)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] User [email protected]
<mailto:[email protected]> has authenticated on the portal.
(Class::MOP::Class:::after)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
WARN: [mac:f4:0e:22:ef:64:03] Calling match with empty/invalid rule
class. Defaulting to 'authentication' (pf::authentic
ation::match)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] Using sources email for matching
(pf::authentication::match)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] User [email protected]
<mailto:[email protected]> has authenticated on the portal.
(Class::MOP::Class:::after)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
WARN: [mac:f4:0e:22:ef:64:03] Calling match with empty/invalid rule
class. Defaulting to 'authentication' (pf::authentic
ation::match)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] Using sources email for matching
(pf::authentication::match)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] User [email protected]
<mailto:[email protected]> has authenticated on the portal.
(Class::MOP::Class:::after)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] User [email protected]
<mailto:[email protected]> has authenticated on the portal.
(Class::MOP::Class:::after)
May 31 10:22:33 pf-wifi packetfence_httpd.portal: httpd.portal(2565)
INFO: [mac:f4:0e:22:ef:64:03] User [email protected]
<mailto:[email protected]> has authenticated on the portal.
(Class::MOP::Class:::after)
:
Le mer. 30 mai 2018 à 21:21, Dominix Pub. <[email protected]
<mailto:[email protected]>> a écrit :
I have made the change. but I can only test by tomorrow morning
(in 12 hours).
Le mer. 30 mai 2018 à 16:37, Durand fabrice via PacketFence-users
<[email protected]
<mailto:[email protected]>> a écrit :
Can you edit /usr/local/pf/lib/pf/config/util.pm <http://util.pm>
Then change the send_mime_lite like that and restart
packetfence and retry (and send the logs).
sub send_mime_lite {
my ($mime, @args) = @_;
use Data::Dumper;
get_logger->warn(Dumper @args);
my $result = $FALSE;
eval {
$mime->send(
'sub',
\&send_using_smtp_callback,
@args
);
$result = $mime->last_send_successful();
};
if ($@) {
my $to = $mime->{_extracted_to};
my $msg = "Can't send email to '$to' :'$@'";
$msg =~ s/\n//g;
get_logger->error($msg);
}
else {
$result = $result ? $TRUE : $FALSE;
}
return $result;
}
If there is not evidences then we will have to debug
send_using_smtp_callback function.
Regards
Fabrice
Le 2018-05-30 à 20:57, Dominix Public Relation via
PacketFence-users a écrit :
so, has there is a strong dependency on perl-libnet-3.10.1 I
could not just remove it.
I am on Centos7, with all yum update applyed.
So I just removed the file related to perl-libnet in
/usr/share/perl5/vendor_perl/
like :
unalias rm
rpm -ql perl-libnet |awk '/Net\//{print "rm "$1}'
now all my registration send a correct message throught my
MTA and I can see it is send in /var/log/maillog.
my solution is clearly a hack, and may not be recommended,
but it works.
Le mar. 29 mai 2018 à 21:44, Dominix Public Relation
<[email protected] <mailto:[email protected]>> a écrit :
there is no special char in the test I do. may be in the
template file ?
How do I check ?
Le mar. 29 mai 2018 à 15:08, Durand fabrice via
PacketFence-users
<[email protected]
<mailto:[email protected]>> a écrit :
Hello,
i think the issue is an encoding issue.
Can you just try to remove specific char and retry ?
I will do a test on my side too.
Regards
Fabrice
Le 2018-05-29 à 16:16, Dominix Public Relation via
PacketFence-users a écrit :
when sending an email I got these error in the maillog
all details converge to this error : Wide character
in syswrite at
/usr/share/perl5/vendor_perl/Net/Cmd.pm line 212.'
(pf::config::util::send_mime_lite)
May 25 09:42:28 pf-wifi postfix/smtpd[1699]: connect
from localhost[127.0.0.1]
May 25 09:42:28 pf-wifi postfix/smtpd[1699]:
E82042520469: client=localhost[127.0.0.1]
May 25 09:42:28 pf-wifi postfix/smtpd[1699]: lost
connection after DATA (351 bytes) from
localhost[127.0.0.1]
May 25 09:42:28 pf-wifi postfix/smtpd[1699]:
disconnect from localhost[127.0.0.1]
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) WARN: [mac:unknown] Unable to
match MAC address to IP '203.185.170.105'
(pf::ip4log::ip2mac)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) WARN: [mac:d4:ae:05:0d:be:f9]
Unable to match MAC address to IP '203.185.170.105'
(pf::ip4log::ip2mac)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) INFO: [mac:d4:ae:05:0d:be:f9]
Instantiate profile default
(pf::Connection::ProfileFactory::_from_profile)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) WARN: [mac:d4:ae:05:0d:be:f9]
modify of non-existent person [email protected]
<mailto:[email protected]> attempted - person
added (pf::person::person_modify)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) INFO: [mac:d4:ae:05:0d:be:f9]
User [email protected]
<mailto:[email protected]> has authenticated on
the portal. (Class::MOP::Class:::after)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) INFO: [mac:d4:ae:05:0d:be:f9]
new activation code successfully generated
(pf::activation::create)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) INFO: [mac:d4:ae:05:0d:be:f9]
Instantiate profile default
(pf::Connection::ProfileFactory::_from_profile)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) ERROR: [mac:d4:ae:05:0d:be:f9]
Can't send email to '[email protected]
<mailto:[email protected]>' :'Wide character in
syswrite at /usr/share/perl5/vendor_perl/Net/Cmd.pm
line 212.' (pf::config::util::send_mime_lite)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) INFO: [mac:d4:ae:05:0d:be:f9]
User [email protected]
<mailto:[email protected]> has authenticated on
the portal. (Class::MOP::Class:::after)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) WARN: [mac:d4:ae:05:0d:be:f9]
Calling match with empty/invalid rule class.
Defaulting to 'authentication'
(pf::authentication::match)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) INFO: [mac:d4:ae:05:0d:be:f9]
Using sources email for matching
(pf::authentication::match)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) INFO: [mac:d4:ae:05:0d:be:f9]
Matched rule (catchall) in source email, returning
actions. (pf::Authentication::Source::match_rule)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) INFO: [mac:d4:ae:05:0d:be:f9]
Matched rule (catchall) in source email, returning
actions. (pf::Authentication::Source::match)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) INFO: [mac:d4:ae:05:0d:be:f9]
User [email protected]
<mailto:[email protected]> has authenticated on
the portal. (Class::MOP::Class:::after)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) WARN: [mac:d4:ae:05:0d:be:f9]
Calling match with empty/invalid rule class.
Defaulting to 'authentication'
(pf::authentication::match)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) INFO: [mac:d4:ae:05:0d:be:f9]
Using sources email for matching
(pf::authentication::match)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) INFO: [mac:d4:ae:05:0d:be:f9]
Matched rule (catchall) in source email, returning
actions. (pf::Authentication::Source::match_rule)
May 25 09:42:28 pf-wifi packetfence_httpd.portal:
httpd.portal(31805) INFO: [mac:d4:ae:05:0d:be:f9]
Matched rule (catchall) in source email, returning
actions. (pf::Authentication::Source::match)
Le mer. 23 mai 2018 à 11:15, Dominix Public Relation
<[email protected]
<mailto:[email protected]>> a écrit :
Hi all,
yesterday I have succeded in re-installing a
packetfence, and I was able to send email to
validate email address.
today I have reinstalled with some more details,
like turn everything into French. and I am no
more able to send email.
(domain is valid but here I have obfuscated
with xxx.pf <http://xxx.pf> )
setup is inline packetfence with email
registration only.
any idea of what is wrong ? thanks in advance.
error I found in packetfence.log:
May 23 09:25:16 pf-wifi pfipset[1866]:
t=2018-05-23T09:25:16-1000 lvl=info msg="Added
192.168.27.10 08:62:66:79:69:d1 to
pfsession_Unreg_192.168.27.0" pid=1866
request-uuid=05ce28a0-5ebf-11e
8-be4c-ecebb8f835b8
May 23 09:25:43 pf-wifi
packetfence_httpd.portal: httpd.portal(2112)
INFO: [mac:unknown] Instantiate profile default
(pf::Connection::ProfileFactory::_from_profile)
May 23 09:25:43 pf-wifi
packetfence_httpd.portal: httpd.portal(2112)
INFO: [mac:08:62:66:79:69:d1] Instantiate
profile default
(pf::Connection::ProfileFactory::_from_profile)
May 23 09:25:45 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] Instantiate
profile default
(pf::Connection::ProfileFactory::_from_profile)
May 23 09:25:48 pf-wifi pfqueue: pfqueue(2030)
INFO: [mac:unknown] Device Transformer Pad
(TF303K) is a Android OS (pf::fingerbank::__ANON__)
May 23 09:25:49 pf-wifi
packetfence_httpd.portal: httpd.portal(2112)
INFO: [mac:08:62:66:79:69:d1] Instantiate
profile default
(pf::Connection::ProfileFactory::_from_profile)
May 23 09:25:49 pf-wifi
packetfence_httpd.portal: httpd.portal(2111)
INFO: [mac:08:62:66:79:69:d1] Instantiate
profile default
(pf::Connection::ProfileFactory::_from_profile)
May 23 09:25:55 pf-wifi
packetfence_httpd.webservices:
httpd.webservices(1967) INFO: [mac:[undef]]
Sending fingerbank component update to local
queue. (pf::api::fingerbank_update_component)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] Instantiate
profile default
(pf::Connection::ProfileFactory::_from_profile)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
WARN: [mac:08:62:66:79:69:d1] modify of
non-existent person [email protected]
<mailto:[email protected]> attempted -
person added (pf::person::person_modify)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] User
[email protected]
<mailto:[email protected]> has authenticated
on the portal. (Class::MOP::Class:::after)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] new activation
code successfully generated (pf::activation::create)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] Instantiate
profile default
(pf::Connection::ProfileFactory::_from_profile)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
ERROR: [mac:08:62:66:79:69:d1] Can't send email
to '[email protected]
<mailto:[email protected]>' :'Wide character
in syswrite at
/usr/share/perl5/vendor_perl/Net/Cmd.pm line
212.' (pf::config::util::send_mime_lite)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] User
[email protected]
<mailto:[email protected]> has authenticated
on the portal. (Class::MOP::Class:::after)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
WARN: [mac:08:62:66:79:69:d1] Calling match with
empty/invalid rule class. Defaulting to
'authentication' (pf::authentication::match)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] Using sources
email for matching (pf::authentication::match)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] Matched rule
(catchall) in source email, returning actions.
(pf::Authentication::Source::match_rule)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] Matched rule
(catchall) in source email, returning actions.
(pf::Authentication::Source::match)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] User
[email protected]
<mailto:[email protected]> has authenticated
on the portal. (Class::MOP::Class:::after)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
WARN: [mac:08:62:66:79:69:d1] Calling match with
empty/invalid rule class. Defaulting to
'authentication' (pf::authentication::match)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] Using sources
email for matching (pf::authentication::match)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] Matched rule
(catchall) in source email, returning actions.
(pf::Authentication::Source::match_rule)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] Matched rule
(catchall) in source email, returning actions.
(pf::Authentication::Source::match)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] User
[email protected]
<mailto:[email protected]> has authenticated
on the portal. (Class::MOP::Class:::after)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
WARN: [mac:08:62:66:79:69:d1] Calling match with
empty/invalid rule class. Defaulting to
'authentication' (pf::authentication::match)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] Using sources
email for matching (pf::authentication::match)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
INFO: [mac:08:62:66:79:69:d1] User
[email protected]
<mailto:[email protected]> has authenticated
on the portal. (Class::MOP::Class:::after)
May 23 09:26:05 pf-wifi
packetfence_httpd.portal: httpd.portal(2109)
WARN: [mac:08:62:66:79:69:d1] Calling match with
empty/invalid rule class. Defaulting to
'authentication' (pf::authentication::match)
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the
world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
PacketFence-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
PacketFence-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users