I'm on a vicibox10 install that has been updated to a recent SVN. The problem below has been an issue since before the upgrade.
System Specs:
Version: 2.14b0.5
SVN Version: 3796
DB Schema Version: 1704
DB Schema Update Date: 2024-01-13 10:29:25
I ran the debug /usr/share/astguiclient/AST_inbound_email_parser.pl --debugX
and got the following error:
- Code: Select all
1 - sales - sales
Attempting to connect to IMAP server (mail.domain.tld) - 1 - sales - sales
Started at Sat Jan 13 13:40:44 2024
Using Mail::IMAPClient version 3.43 on perl 5.026001
Connecting with IO::Socket::SSL PeerAddr mail.domain.tld PeerPort 993 Proto tcp Timeout 600 Debug 1
ERROR: Unable to connect to mail.domain.tld: Failed to set SSL cipher list error:1410D0B9:SSL routines:SSL_CTX_set_cipher_list:no cipher match at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 377.
Mail::IMAPClient::connect(Mail::IMAPClient=HASH(0x55c2236abfb0)) called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 315
Mail::IMAPClient::new("Mail::IMAPClient", "Debug", 1, "Ignoresizeerrors", 1, "Port", 993, "User", ...) called at /usr/share/astguiclient/AST_inbound_email_parser.pl line 311
Cannot connect through IMAPClient: (sales|mail.domain.tld|sales@domain.tld|ssl-no-cert:0) Unable to connect to mail.domain.tld: Failed to set SSL cipher list error:1410D0B9:SSL routines:SSL_CTX_set_cipher_list:no cipher match No such file or directory at /usr/share/astguiclient/AST_inbound_email_parser.pl line 311.
You have new mail in /var/spool/mail/root
I've followed the Vicidial Email doc at https://vicidial.org/docs/Email_user_manual.txt to the letter.
- Installed All required CPAN modules
- Ensured "E" Keepalive is enabled on astguiclient.conf
- Verified postfix is installed, active, and running
Initially, I got the error:
SSL_verify_mode must be a number and not a string at /usr/lib/perl5/site_perl/5.12.1/IO/Socket/SSL.pm line 2251.
So I followed the troubleshooting advice in the doc:
- If you see the following error:
SSL_verify_mode must be a number and not a string at /usr/lib/perl5/site_perl/5.12.1/IO/Socket/SSL.pm line 2251.
Edit the "SSL.pm" file that is shown in the error you received:
Line 2251, change:
die "SSL_verify_mode must be a number and not a string";
To:
$verify_mode = '0';
Save it(since the file is most likely read-only, you might have to force save[in 'vi' that's ':w!'])
Then try running the email script again:
/usr/share/astguiclient/AST_inbound_email_parser.pl --ssl-no-cert --debugX --force-check
*Note The line is now at 2391 not, 2251
When I run /usr/share/astguiclient/AST_inbound_email_parser.pl --ssl-no-cert --debugX --force-check, I get:
- Code: Select all
vicibox:~ # /usr/share/astguiclient/AST_inbound_email_parser.pl --debugX
vicibox:~ # /usr/share/astguiclient/AST_inbound_email_parser.pl --ssl-no-cert --debugX --force-check
1 - sales - sales
Attempting to connect to IMAP server (mail.domain.tld) - 1 - sales - sales
Started at Sat Jan 13 14:16:34 2024
Using Mail::IMAPClient version 3.43 on perl 5.026001
Sending: 1 LOGOUT
ERROR: NO not connected at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 1568.
Mail::IMAPClient::_send_line(Mail::IMAPClient=HASH(0x563628e42800), "1 LOGOUT", 0) called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 1344
Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x563628e42800), "LOGOUT", "BYE") called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 1248
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x563628e42800), "LOGOUT", "BYE") called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 2007
Mail::IMAPClient::logout(Mail::IMAPClient=HASH(0x563628e42800)) called at /usr/share/astguiclient/AST_inbound_email_parser.pl line 685
Trying command when NOT connected! at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 123.
Mail::IMAPClient::LastError(Mail::IMAPClient=HASH(0x563628e42800), "NO not connected") called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 1568
Mail::IMAPClient::_send_line(Mail::IMAPClient=HASH(0x563628e42800), "1 LOGOUT", 0) called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 1344
Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x563628e42800), "LOGOUT", "BYE") called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 1248
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x563628e42800), "LOGOUT", "BYE") called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 2007
Mail::IMAPClient::logout(Mail::IMAPClient=HASH(0x563628e42800)) called at /usr/share/astguiclient/AST_inbound_email_parser.pl line 685
ERROR: Error sending '1 LOGOUT': NO not connected at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 1345.
Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x563628e42800), "LOGOUT", "BYE") called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 1248
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x563628e42800), "LOGOUT", "BYE") called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 2007
Mail::IMAPClient::logout(Mail::IMAPClient=HASH(0x563628e42800)) called at /usr/share/astguiclient/AST_inbound_email_parser.pl line 685
Trying command when NOT connected! LastError was: NO not connected at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 123.
Mail::IMAPClient::LastError(Mail::IMAPClient=HASH(0x563628e42800), "Error sending '1 LOGOUT': NO not connected") called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 1345
Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x563628e42800), "LOGOUT", "BYE") called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 1248
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x563628e42800), "LOGOUT", "BYE") called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 2007
Mail::IMAPClient::logout(Mail::IMAPClient=HASH(0x563628e42800)) called at /usr/share/astguiclient/AST_inbound_email_parser.pl line 685
ERROR: Error sending '1 LOGOUT': NO not connected at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 1298.
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x563628e42800), "LOGOUT", "BYE") called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 2007
Mail::IMAPClient::logout(Mail::IMAPClient=HASH(0x563628e42800)) called at /usr/share/astguiclient/AST_inbound_email_parser.pl line 685
Trying command when NOT connected! LastError was: Error sending '1 LOGOUT': NO not connected at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 123.
Mail::IMAPClient::LastError(Mail::IMAPClient=HASH(0x563628e42800), "Error sending '1 LOGOUT': NO not connected") called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 1298
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x563628e42800), "LOGOUT", "BYE") called at /usr/lib/perl5/vendor_perl/5.26.1/Mail/IMAPClient.pm line 2007
Mail::IMAPClient::logout(Mail::IMAPClient=HASH(0x563628e42800)) called at /usr/share/astguiclient/AST_inbound_email_parser.pl line 685
script execution time in seconds: 0 minutes: 0
I've been digging through the forums and I am at a loss as to how to investigate further.
Please help