Email inbound not working

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Email inbound not working

Postby Vince-0 » Thu Mar 30, 2017 8:50 am

Hi!

I can't get Email inbox working. It won't pick up Emails from the inbox and the "un-handled emails" count stays on 0.

I installed build essentials to get cpan to install required packages and followed instructions as per document http://vicidial.org/docs/Email_user_manual.txt
I've tried IMAP and POP3 - inbox allows for both.

Debug of email_parser:
Code: Select all
vicibox7:~ # /usr/share/astguiclient/AST_inbound_email_parser.pl --debugX
1 - capisms - SMSCAPI
script execution time in seconds: 0     minutes: 0

Code: Select all
vicibox7:~ # /usr/share/astguiclient/AST_inbound_email_parser.pl --debugX --ssl-no-cert
1 - capisms - SMSCAPI
script execution time in seconds: 0     minutes: 0

Code: Select all
vicibox7:~ # /usr/share/astguiclient/AST_inbound_email_parser.pl --debugX --force-check
1 - capisms - SMSCAPI
Attempting to connect to IMAP server (mail.bizvoip.co.za)  -  1 - capisms - SMSCAPI

SSL_verify_mode must be a number and not a string at /usr/lib/perl5/site_perl/5.18.2/IO/Socket/SSL.pm line 2251.


From Email_user_manual notes I treid to put "SSL_verify_mode => 'SSL_VERIFY_NONE'," in IMAPClient.pm at line after 338 in file located here:
/usr/lib/perl5/vendor_perl/5.18.2/Mail/IMAPClient.pm

The ASTemail screen appears to be blank if I attach it.

I haven't tested outgoing Email yet, I just want incoming.
Is there a log or other system services I can check?
Any advise will be appreciated.

--
OS: Vicibox 7.0.4 from ISO
VERSION: 2.14-585a BUILD: 170114-1356
Vince-0
 
Posts: 272
Joined: Fri Mar 02, 2012 4:27 pm
Location: South Africa

Re: Email inbound not working

Postby mflorell » Thu Mar 30, 2017 9:31 am

What kind of email service are you trying to integrate with?

We usually suggest using a Gmail account to set up your first email test, and if that works, then trying another service.

We have had many problems trying to integrate with Microsoft email servers due to their lack of following email client standards.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Email inbound not working

Postby Vince-0 » Thu Mar 30, 2017 10:29 am

Hetzner's Email service.

I'll try with a Gmail Account first, thanks!
Vince-0
 
Posts: 272
Joined: Fri Mar 02, 2012 4:27 pm
Location: South Africa

Re: Email inbound not working

Postby Vince-0 » Fri Mar 31, 2017 4:23 am

So! I tried Gmail account but still no unread messages.

I did test connecting to account from openssl client and there are unread messages in the inbox.
I saw some print lines in the email_parser script and tried them but showed nothing.
I can't find the raw_emails.txt file.

I notice that only when I use the force-check option it shows error below, with SSL_verify_mode set to SSL_VERIFY_NONE or PEER:
Code: Select all
vicibox7:~ # /usr/share/astguiclient/AST_inbound_email_parser.pl --debugX --force-check
1 - gmail - SMSCAPI
Attempting to connect to IMAP server (imap.gmail.com)  -  1 - gmail - SMSCAPI
SSL_verify_mode must be a number and not a string at /usr/lib/perl5/site_perl/5.18.2/IO/Socket/SSL.pm line 2251.


Any troubleshooting advice will be appreciated,
Vince-0
 
Posts: 272
Joined: Fri Mar 02, 2012 4:27 pm
Location: South Africa

Re: Email inbound not working

Postby Vince-0 » Wed Apr 05, 2017 1:42 am

Does anyone have inbound Email working lately? I see the last modified date on the doc is 201509.
Vince-0
 
Posts: 272
Joined: Fri Mar 02, 2012 4:27 pm
Location: South Africa

Re: Email inbound not working

Postby mflorell » Wed Apr 05, 2017 6:42 am

I upgraded all of my perl modules and it appears that there is a problem with that SSL module. It looks like within that file, it sets the default of SSL_verify_mode to a non-number, which is quite strange, so the easiest way to fix the issue is just to hard-code it at that point to 0, like this:

Edit the "SSL.pm" file shown in the error:

Line 2251, change:

die "SSL_verify_mode must be a number and not a string";

To:

$verify_mode = '0';


And that was enough to get it to work for me. Also while upgrading all of the required perl modules for Email, it also said I had to install "Mail::Box", although I don't know if that is a requirement or not.

So, please try the edit above and let us know if that fixes the issue for you or not.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Email inbound not working

Postby Vince-0 » Thu Apr 06, 2017 3:03 am

Works!

Edited SSL.pm and installed cpan Mail::Box.

Thanks.
Vince-0
 
Posts: 272
Joined: Fri Mar 02, 2012 4:27 pm
Location: South Africa


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 85 guests