Which is better to use?
IMAP or IMAPS?
When I use IMAP I always have an error eventhough I set it with right server imap.gmail.com See the error below. But it will run if I use IMAPS. I don't know if this is the root cause because I need to configure the time of fetch mail interval.
Code: Select all
[root@sbfac2 ~]# crontab -u otrs -l
# Who gets the cron emails?
MAILTO="root@localhost"
# check OTRS daemon status
*/1 * * * * $HOME/bin/otrs.Daemon.pl start >> /dev/null
Daemon::SchedulerCronTaskManager::Task###MailAccountFetch
Daemon::SchedulerCronTaskManager::Task###FetchMail
Daemon::SchedulerCronTaskManager::Task###FetchMailSSL
I already install fetchmail in my server. But I keep on getting this error.

ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-01 Perl: 5.10.1 OS: linux Time: Tue Sep 27 13:05:08 2016
Message: There was an error executing /usr/bin/fetchmail -a: Unknown
Traceback (17998):
Module: Kernel::System::FetchMail::Fetch Line: 344
Module: (eval) Line: 147
Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 131
Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 259
Module: (eval) Line: 316
Module: main::Start Line: 316
Module: /opt/otrs//bin/otrs.Daemon.pl Line: 138