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 <
packetfence-users@lists.sourceforge.net> a écrit :

> Can you edit /usr/local/pf/lib/pf/config/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 <
> dominix....@gmail.com> 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 <
>> packetfence-users@lists.sourceforge.net> 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
>>> test-table...@xxx.pf 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 test-table...@xxx.pf 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 'test-table...@xxx.pf'
>>> :'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 test-table...@xxx.pf 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 test-table...@xxx.pf 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 <
>>> dominix....@gmail.com> 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 )
>>>>
>>>> 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
>>>> tablet-test...@xxx.pf 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 tablet-test...@xxx.pf 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 '
>>>> tablet-test...@xxx.pf' :'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 tablet-test...@xxx.pf 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 tablet-test...@xxx.pf 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 tablet-test...@xxx.pf 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 tablet-test...@xxx.pf 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 
>>> listPacketFence-users@lists.sourceforge.nethttps://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
>>> PacketFence-users@lists.sourceforge.net
>>> 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 
> listPacketFence-users@lists.sourceforge.nethttps://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
> PacketFence-users@lists.sourceforge.net
> 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
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to