You are not logged in.
Pages: 1
I am needing to know if we can create a new ticket by sending an email to GLPI.
Offline
Yes, you need to configure a email collector (in Setup menu)
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
I do not see where to configure an email collector in the Setup menu. This is all I see:
Dropdowns
Components
Notifications
SLAs
General
Checks
Automatic Actions
Authentication
Receivers
OC SNG mode
External Links
Plugins
Offline
=> Receivers
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
Ok...I setup the email address. I sent a test email to it to create a ticket, but don't see anything in the "New Tickets" section. What am I doing wrong?
Offline
You need to wait for the mail to be collected.
- manually : you have a "collect now" button on the receiver form
- automatic : see the "Automatic Actions"
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
Ok...I setup the email address. I sent a test email to it to create a ticket, but don't see anything in the "New Tickets" section. What am I doing wrong?
Depending on you configuration, you may also need to allow the anonymous creation of tickets
Setup --> General --> Assistance
if the 'from' email address does not match any of the users in your DB, it will not create a ticket if you don't allow anonymous creation/followup
Offline
ok....I got that part taken care of. The automatic thing is still not working though. I keep having to go to Setup>Automatic Actions and then click on the "Execute" button next to the "Next run: mailgate" icon.
The Settings for Mailgate are as follows:
Run Frequency: 1 Minute(s)
Status: Scheduled
Run Mode: GLPI
Run Period: 0 -> 24
Number of days this action logs are stored: 30 Day(s)
Number of email to retrieve: 10
Offline
I had to configure a crontask to get mine to work.
Thanks,
Dan
Offline
This is what I have done for the crontask below. The parts in bold is what I typed. But this feature still does not work. After saving this i did restart apache.
# crontab -e
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
*/1 * * * * /usr/bin/php /var/www/myhostname/front/cron.php
Offline
You need to change your run mode:
Run Mode: GLPI --> CLI
Thanks,
Dan
Offline
I have changed GLPI --> CLI, but it is still not working. Any ideas?
Offline
From the command line, run
/usr/bin/php /var/www/myhostname/front/cron.php --debug
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
I get this error message:
Could not open input file: /var/www/myhostname/front/cron.php
Offline
So ?
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
to be clear, you are using your own hostname and not "myhostname" ?
Thanks,
Dan
Offline
Correct
Offline
I had saw another post where someone used "data" instead of "www", and it worked for them.
/usr/bin/php /var/data/myhostname/front/cron.php --debug
But it brought up the same error message for me.
Offline
you would use your actual path to the cron.php file.
it is [path to php] [path to cron]
Thanks,
Dan
Offline
you would use your actual path to the cron.php file.
it is [path to php] [path to cron]
That was it...I guess I was having a brain fart. Forgot I installed it in a different location.
Thanks everyone for your help.
Offline
Pages: 1