Fetch mail works 50% of the time.
Moderator: crythias
Fetch mail works 50% of the time.
We get new ticket notification about 50% of the time. Since it is sort of working I'm not sure what to do to check this out. Sometimes when there are new tickets I have to go to the admin and click "Fetch mail" then a bunch come in. Other times it works on it's own. Any ideas?
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: Fetch mail works 50% of the time.
Anything in the log? Do the tickets where it doesn't work have something in common? Are they different to the mails that work? (e.g. Sender address, recipient addres, language, mail client of the sender, ...)
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Fetch mail works 50% of the time.
That got me thinking.... I checked and tickets that are sent in via email do not work. It is the tickets that are entered via the ui that work correctly. So the reality is that fetch mail is not running automatically. It works when we manually click "Fetch mail" only.
Re: Fetch mail works 50% of the time.
it seems that your system does not have the cron jobs configured
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Fetch mail works 50% of the time.
I'm looking at fetchmail right now and everything is commented. Are both of these lines supposed to be uncommented or only one?
Code: Select all
# fetch every 5 minutes emails via fetchmail
#*/5 * * * * [ -x /usr/bin/fetchmail ] && /usr/bin/fetchmail -a >> /dev/null
#*/5 * * * * /usr/bin/fetchmail -a --ssl >> /dev/null
Re: Fetch mail works 50% of the time.
none, did you follow the guideline for Installation in the admin manual?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Fetch mail works 50% of the time.
I thought I did. I think it said to copy fetchmail.dist over to fetchmail. Then I can't remember after that. I'm off to read it again but any tips are appreciated.
Re: Fetch mail works 50% of the time.
fetchmail is not used typically to fetch mails for OTRS. this is done via otrs.PostMasterMailbox.pl
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Fetch mail works 50% of the time.
Ok... I'm on to something now. I ran Cron.sh (unsure if I did this before or not) however the log is complaining "/bin/sh: 1: /var/www/bin/otrs.PostMasterMailbox.pl: not found". My install is at /var/www2 not /var/www. This is on a shared server and apache is running as www-data. www-data home is /var/www. Once I figure out what to do with that I think it will work. I might hard code it in the meantime.