View Full Version : POP3 problem
jeyenne
01-08-2008, 06:17 PM
Hi guys. Im having a problem setting up my pop3 mail account to OsTicket. Im running my osticket on our companys local linux server and we have our mail accounts in other server (windows mail server and not our own). I have the correct host name,user name,password and my pop3 status is enabled, but I still cant recieve my mails what I sent to my support@domain.fi. The mails that I send in to this address go to our external windows mailserver, but I cant see them in osticket. When I send an email for osticket to any address all my mails go out just fine. So my problem is that I cant recieve any mails put my outgoing mails work just fine.
I would appreciate any help or advice concerning my problem. And sorry about my bad english :)
peter
01-08-2008, 07:14 PM
Did you enable cron? It is not enough to just setup POP info, you also need to setup a cron job for mail fetch to function.
Make sure auto cron is checked under 'General Settings'.
jeyenne
01-09-2008, 09:20 AM
Did you enable cron? It is not enough to just setup POP info, you also need to setup a cron job for mail fetch to function.
Make sure auto cron is checked under 'General Settings'.
I have also enabled the cron, but I still cant feth my e-mails.
I'm also experiencing problems with this. All settings look correct.
In the file ./scp/cron.php i have no the following for testing:
$sec = time() - $_SESSION['lastcroncall'];
if($cfg->enableAutoCron() && $sec > 180):
//user can call cron once every 3 minutes.
Misc::alertAdmin('before Cron::POP3();',"test");
Cron::POP3();
Misc::alertAdmin('after Cron::POP3();',"test");
Cron::Tickets();
$_SESSION['lastcroncall']=time();
endif;
The before email is perfectly sent, but it seem to "hang" on Cron::POP3(); because the after mail is never sent.
Unfortunately I get no errors or anything, so it's hard to determine what is going wrong. But I get the feeling that the POP3 function in the file ./include/class.cron.php is never reached at all. Because I have tried a few logging functions inside the POP3() function, but none of them worked/are called.
Any suggestions??
thebosdj
01-09-2008, 11:22 AM
I have also enabled the cron, but I still cant feth my e-mails.
same problem here...
WOOHOO!! I solved it :D
The class was not known. I added require_once(INCLUDE_DIR.'class.cron.php'); and now it works over here.
This is the code at the bottom of the file ./scp/cron.php:
//We DON'T want to spawn cron on every page load...we record the lastcroncall on the session per user
$sec = time() - $_SESSION['lastcroncall'];
if($cfg->enableAutoCron() && $sec > 180):
require_once(INCLUDE_DIR.'class.cron.php');
//user can call cron once every 3 minutes.
Cron::POP3();
Cron::Tickets();
$_SESSION['lastcroncall'] = time();
endif;
Hope this helps for you guys as well.
jeyenne
01-09-2008, 01:03 PM
WOOHOO!! I solved it :D
The class was not known. I added require_once(INCLUDE_DIR.'class.cron.php'); and now it works over here.
This is the code at the bottom of the file ./scp/cron.php:
//We DON'T want to spawn cron on every page load...we record the lastcroncall on the session per user
$sec = time() - $_SESSION['lastcroncall'];
if($cfg->enableAutoCron() && $sec > 180):
require_once(INCLUDE_DIR.'class.cron.php');
//user can call cron once every 3 minutes.
Cron::POP3();
Cron::Tickets();
$_SESSION['lastcroncall'] = time();
endif;
Hope this helps for you guys as well.
Million thanks dude. My Osticket is now working. :)
thebosdj
01-09-2008, 11:33 PM
Woot! ... thanks!
It works now :D yes :)
WOOHOO!! I solved it :D
The class was not known. I added require_once(INCLUDE_DIR.'class.cron.php'); and now it works over here.
This is the code at the bottom of the file ./scp/cron.php:
//We DON'T want to spawn cron on every page load...we record the lastcroncall on the session per user
$sec = time() - $_SESSION['lastcroncall'];
if($cfg->enableAutoCron() && $sec > 180):
require_once(INCLUDE_DIR.'class.cron.php');
//user can call cron once every 3 minutes.
Cron::POP3();
Cron::Tickets();
$_SESSION['lastcroncall'] = time();
endif;
Hope this helps for you guys as well.
thebosdj
01-10-2008, 12:04 AM
he is no repleying again and again and again on the
same mails also when these are deleted in the mailbox and also in the ostciket system!
he is no repleying again and again and again on the
same mails also when these are deleted in the mailbox and also in the ostciket system!
What exactly do you mean? Keeps osTicket making tickets for the same emails? If that is the case, are you sure they are deleted? In my case osTickets checks my POP3 box, retrieves the emails and then deletes it. So it's is only added one time.
thebosdj
01-10-2008, 11:36 AM
just as you told... its making tickets for the same mails.
I have sett it to delete it and these mails are noth at the pop 3 mailbox anymore
Buth osticket is making over and over tickets for these mails...
primrose
01-29-2008, 04:05 PM
Hi all
Please help me :(
I have the same case of Jenenne that I’m running my osticket on our company’s local Linux server and we have our mail accounts in other server (windows mail server and not our own).
I solved the POP3 problem as 4ice solution but now I have another problem which is:
- Client will send mail to support@domain.com
- osTicket fetch the sent mail from the mail inbox, open new ticket and then delete the sent mail from the inbox
- When assign this ticket to staff, the system should send alert to this staff. But system doesn’t do that, so I used phpmailer class to solve this problem (instead of maile() function). With this class my problem of send mail to staff has been solved but the system doesn’t delete fetched mail from the inbox after fetching
Any help will be appreciated