How to fix this
This happens from two things
1. You just installed/uninstalled mcrypt or moved servers (mcrypt changed your password salt between servers, or one server does not have mcrypt)
2. Your crontab kept executing until Gmail locks your account out.
How to fix
1. Reset Gmail from your server ip (might need to run lynx)
For Gmail:
https://www.google.com/accounts/DisplayUnlockCaptcha(https://www.google.com/accounts/DisplayUnlockCaptcha)
For Google apps:
https://www.google.com/a/yourdomain/UnlockCaptcha(https://www.google.com/a/yourdomain/UnlockCaptcha)
2. Re-enter the password of each email in the admin panel, email tab of osTicket
I added code to check this
Change fields EMAIL ACCOUNT HERE and PASSWORD HERE
<?php
$mbox=imap_open ("{pop.gmail.com/pop3/ssl/novalidate-cert}Inbox", "EMAIL ACCOUNT HERE", "PASSWORD HERE")
or die("Error: " . imap_last_error());
echo "<h1>Mailboxes</h1>\n";
$folders = imap_listmailbox($mbox, "{imap.example.org}", "*");
if ($folders == false) {
echo "Call failed<br />\n";
} else {
foreach ($folders as $val) {
echo $val . "<br />\n";
}
}
echo "<h1>Headers in INBOX</h1>\n";
$headers = imap_headers($mbox);
if ($headers == false) {
echo "Call failed<br />\n";
} else {
foreach ($headers as $val) {
echo $val . "<br />\n";
}
}
imap_close($mbox);
?>