PDA

View Full Version : Cerb4 not pulling mail properly


Zeeboot
10-04-2007, 04:49 PM
In my cerb setup I have setup the mail to pop mail every 3 minutes and parse mail every 1 minute. The tasks are enabled but are not pulling mail unless I manually run the scheduled task. When I run the scheduled task it does download mail BUT it does not put it into my group inbox/workspace... I am not very familiar with navigating mysql so I can't dig into sql to see if the messages are there or not. Any assistance would be greatly appreciated.

All my mail settings have been verified to be correct. It is pulling mail from the server because I see it disappear when I run the scheduler task manually. It's just not coming up in my tickets inbox...

Zeeboot
10-04-2007, 05:12 PM
I have changed nothing and for some reason now... I am getting no connection problems BUT Cerb4 is making a connection to the correct account on the mail server and its not pulling mail at all.. even there there are 3 unread messages sitting in the inbox.

Hildy
10-04-2007, 05:42 PM
The POP3 process will download the email and drop it in /cerb4/storage/mail/new/. The parser moves the message to mail/fail, attempts to process it, and deletes the file if successful (if not, it stays there in fail, and doesn't interfere with further parsing). Check those directories: lots of stuff in /new means the parser's not running; stuff in /fail means there's something going wrong during the parse; nothing anywhere means it's successfully parsing.

Also, FYI, if you leave a browser window open to http://localhost/cerb4/index.php/cron it will refresh every 30 seconds and check for any tasks that need to run. Alternatively, you can have an external cronjob of some kind ping that page.

Zeeboot
10-04-2007, 07:05 PM
So now that we know its a parsing error..... not sure where to start troubleshooting

Hildy
10-04-2007, 07:48 PM
Copy the mail messages back into /new and click the "run" link next to the parser and then let us know what output you get.

Zeeboot
10-04-2007, 08:39 PM
This problem seems to be a downward spiral.

The issue now is that any new messages coming into the mail account are not being pulled down by cerb4.

It is making a connection and doesnt seem to get any errors in the process but it just doesnt download the messages.

I run the task and the messages arent even going into the /new folder... Not seeing any errors to deal with so im not sure where to go.

jstanden
10-04-2007, 10:02 PM
Can you take a screenshot of your POP3 configuration for me? (Configuration->Scheduler->POP3)

Feel free to scrub any sensitive information, but keep the spirit of the thing intact (the same port, POP3/IMAP, SSL/etc)

As well, what MTA are you using? (e.g., Exchange, Qmail, Exim, Postfix)

Thanks!

jstanden
10-04-2007, 10:02 PM
As well, if your mail server is public you could make a temporary account for us to test with and we'll be able to do some more involved debugging.

Zeeboot
10-09-2007, 09:00 PM
I think my install may be fubar. Maybe I will reinstall later. I will let you guys tinker before I do anything.

We are using GoDaddy as our mail host at the moment.
I will private message you the info.

Zeeboot
10-10-2007, 06:19 PM
I'm not sure what exactly happened but for some reason e-mail seems to be coming in properly and parsing properly. I wish I had an explanation... Now I just need to setup a cron job to hit the scheduling page so that it does it every few minutes or will the cerb4 do the scheduled tasks without me doing that?

Hildy
10-10-2007, 06:35 PM
You need something to trigger it. You can hit the http://localhost/cerb4/index.php/cron page with an external cronjob / sceduled task, or you can leave it open in a window somewhere, and the page should refresh every 30 seconds to check for new work. It's probably a more stable idea to use an external cronjob.

Zeeboot
10-10-2007, 06:41 PM
Sounds good. I will setup a cronjob to hit the website via lynx or something

jstanden
10-13-2007, 09:28 PM
Alright!
http://www.cerberusweb.com/kb/article/000029

giz
11-04-2007, 03:23 AM
I'm hopping on this thread (no hijacking intended)

After svn updates today, the parser is not working. When I unlock it and run it manually, I get this error:

Time Limit: unlimited secs
Memory Limit: 64M

Reading 1193979360.6874.msg...
Decoding...
Fatal error: Call to undefined function mailparse_msg_parse_file() in /home/me/cerb4/plugins/cerberusweb.core/cron.classes.php on line 110

I now have 368 items in my "new" folder and 1 in "fail".

I'm going to clear out the new and try the parser again.

giz
11-04-2007, 03:36 AM
no change. new messages show up and stay in "new"

jstanden
11-06-2007, 09:57 PM
When you update from SVN, run the following script:
/cerb4/install/servercheck.php

Do you get any errors?

bjarke
04-07-2008, 09:27 PM
I have a guess.. looks like mine:

The 'GD' PHP extension (with FreeType library support) is required. Please enable them.
The 'MailParse' PHP extension is required. Please enable it.


As described in another thread. (http://www.cerb4.com/forums/showthread.php?t=136&highlight=exchange&page=3)