[SOLVED]IMAP vs IMAPS

Moderator: crythias

Locked
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

[SOLVED]IMAP vs IMAPS

Post by gecelann »

Hi!

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
Selection_026.png
See the error below.
Selection_025.png
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
I already set the time into 1 min in subcategory of
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
You do not have the required permissions to view the files attached to this post.
Last edited by gecelann on 27 Sep 2016, 09:49, edited 1 time in total.
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: IMAP vs IMAPS

Post by root »

It's the same with HTTP vs. HTTPS.

I recommend keeping your mailbox credentials secure by using secure protocols.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: IMAP vs IMAPS

Post by gecelann »

root wrote:It's the same with HTTP vs. HTTPS.

I recommend keeping your mailbox credentials secure by using secure protocols.
Hi!

Thanks for the reply!
Which is better to use?
Daemon::SchedulerCronTaskManager::Task###FetchMail
or Daemon::SchedulerCronTaskManager::Task###MailAccountFetch?

I'm having a hard time how to secure my email cause im using imaps instead of imap.
I just wanted to change the time interval when fetching mail. :(
Btw, I already install fetchmail. What else do I need to do after installing fetchmail.
Please bear with me its my first time to configure it in OTRS. :(

This is the error when im using fetchmail :(

Code: Select all

Tue Sep 27 14:51:16 2016	error	OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-01	There was an error executing Fetch() in Kernel::System::FetchMail: ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-01 Perl: 5.10.1 OS: linux Time: Tue Sep 27 14:51:16 2016
Tue Sep 27 14:51:16 2016	error	OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-01	There was an error executing /usr/bin/fetchmail -a: Unknown
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: IMAP vs IMAPS

Post by wurzel »

Hi,

for fetchmail please read
http://www.fetchmail.info/fetchmail-FAQ.html

The Task###MailAccountFetch uses the PostmasterMailbox you configure in the GUI.
This is the easiest one.

You should contact a mailserver specialist for configuring fetchmail (I would not do this) or a local mailserver. The local mailserver is the best option.

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: IMAP vs IMAPS

Post by gecelann »

wurzel wrote:Hi,

for fetchmail please read
http://www.fetchmail.info/fetchmail-FAQ.html

The Task###MailAccountFetch uses the PostmasterMailbox you configure in the GUI.
This is the easiest one.

You should contact a mailserver specialist for configuring fetchmail (I would not do this) or a local mailserver. The local mailserver is the best option.

Flo

Hi flo!

Okay. but how can I change the time of fetching emails. because initially it fetches email 5-10 mins. and I have to change it to max 1 min or 3 mins interval.
Is it possible to change it even if i'm using Task###MailAccountFetch? :(

I already change it in ssh.

Code: Select all

[root@sbfac2 bin]# 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
[root@sbfac2 bin]#
But it keeps on fetching emails from 5 - 10 mins. and I already change the time Task###MailAccountFetch into 1 min. :(

Thank you!
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: IMAP vs IMAPS

Post by root »

You should switch to receiving e-mails via SMTP. Configure your local MTA on the OTRS server for receiving e-mails and deliver it to local user via procmail.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: IMAP vs IMAPS

Post by wurzel »

Hi,

yes, it is the same syntax in Task###MailAccountFetch

Restart the Daemon after the change and it will work.

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: IMAP vs IMAPS

Post by gecelann »

wurzel wrote:Hi,

yes, it is the same syntax in Task###MailAccountFetch

Restart the Daemon after the change and it will work.

Flo
YAHOOOOOOOOOOOOOOOOOOOO!!!!
IT WORKS!!!!

THANK YOU SO MUCH!!!! :D :D :D :D
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: IMAP vs IMAPS

Post by gecelann »

root wrote:You should switch to receiving e-mails via SMTP. Configure your local MTA on the OTRS server for receiving e-mails and deliver it to local user via procmail.

Hi root!

Thank you root!!
I already use Task###MailAccountFetch instead of fetchmail.
Thank you so much!! :D :D :D
Locked