Auto FetchMail Mail Account Management

Moderator: crythias

Locked
machadoa
Znuny advanced
Posts: 101
Joined: 11 Dec 2015, 17:36
Znuny Version: 5.0.5

Auto FetchMail Mail Account Management

Post by machadoa »

Hello

I would set up automatic fetch mail for the Mail Account Management, but i don't know to do this ?

Thanks
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Auto FetchMail Mail Account Management

Post by jojo »

Follow the installation guidelines at http://doc.otrs.org (you need to configure and build the cronjobs and with OTRS5 also the daemon)
"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
machadoa
Znuny advanced
Posts: 101
Joined: 11 Dec 2015, 17:36
Znuny Version: 5.0.5

Re: Auto FetchMail Mail Account Management

Post by machadoa »

Ok thanks , i will follow this installation guidelines .
machadoa
Znuny advanced
Posts: 101
Joined: 11 Dec 2015, 17:36
Znuny Version: 5.0.5

Re: Auto FetchMail Mail Account Management

Post by machadoa »

I still have the same problem, i configure the crontab for OTRS user but i can't specify to fetch automaticaly the emails .

Crontab for user OTRS :

# Who gets the cron emails?
MAILTO="root@localhost"

# check OTRS daemon status
*/5 * * * * $HOME/bin/otrs.Daemon.pl start >> /dev/null

Config : Ubuntu 14.0 + OTRS 5.0.4
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Auto FetchMail Mail Account Management

Post by jojo »

the daemon will fetch the mails every 10 minutes (configured via sysconfig). If no mail is fetchd, check logfiles
"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
machadoa
Znuny advanced
Posts: 101
Joined: 11 Dec 2015, 17:36
Znuny Version: 5.0.5

Re: Auto FetchMail Mail Account Management

Post by machadoa »

Ok, but it's possible to fetch automaticaly every 5 minutes ?
jshowma
Znuny newbie
Posts: 6
Joined: 24 Nov 2015, 01:08
Znuny Version: 5.0.4

Re: Auto FetchMail Mail Account Management

Post by jshowma »

Hi,

I found this in Admin->SysConfig and searched for MailAccountFetch.

It should find:
Daemon::SchedulerCronTaskManager::Task###MailAccountFetch
machadoa
Znuny advanced
Posts: 101
Joined: 11 Dec 2015, 17:36
Znuny Version: 5.0.5

Re: Auto FetchMail Mail Account Management

Post by machadoa »

I have this message in the log :


From otrs@ Fri Dec 18 11:00:21 2015
Return-Path: <otrs@>
X-Original-To: root@localhost
Delivered-To: root@localhost
Received: by ubuntu.iilyo.local (Postfix, from userid 1000)
id 8C153E4D; Fri, 18 Dec 2015 11:00:21 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
From: OTRS Notifications <otrs@>
X-Powered-BY: OTRS - Open Ticket Request System (http://otrs.org/)
Subject: OTRS Scheduler Daemon Cron: FetchMail
Organization: iilyo
X-Mailer: OTRS Mail Service (5.0.5)
Message-ID: <1450432821.200438.636689952@>
Date: Fri, 18 Dec 2015 11:00:21 +0100
To: root@localhost

ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::=
SchedulerTaskWorker-64 Perl: 5.18.2 OS: linux Time: Fri Dec 18 11:00:20 2015


Message: FetchMail bin was not found

Traceback (3342):=20
Module: Kernel::System::FetchMail::Fetch Line: 168
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
machadoa
Znuny advanced
Posts: 101
Joined: 11 Dec 2015, 17:36
Znuny Version: 5.0.5

Re: Auto FetchMail Mail Account Management

Post by machadoa »

open tickets is really random ...
I just tested to send an email to the OTRS support staff inbox, the ticket was created automaticaly 5 minutes after receiving the email, I then remade the same test the ticket was created 9 min after receiving the email, I do not understand anything anymore...
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Auto FetchMail Mail Account Management

Post by crythias »

every 10 minutes means up to 10 minutes from receipt.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
machadoa
Znuny advanced
Posts: 101
Joined: 11 Dec 2015, 17:36
Znuny Version: 5.0.5

Re: Auto FetchMail Mail Account Management

Post by machadoa »

Ok but I configure auto fetch mail every minutes ( in Admin->SysConfig ->MailAccountFetch ) but sometimes the ticket is created after 1 minute to receive the email by the customer, sometimes the ticket is created after 5 minutes, somtimes 8 ...
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Auto FetchMail Mail Account Management

Post by crythias »

If the email is sent at :03, you can expect 2 minutes delay. if the email is sent at :01, you can expect 4 minutes delay.

If the setting still works at 10 minutes but changing it doesn't make a difference, then I would expect a ticket sent at :01 has a 9 minute delay.

But I don't have delays in tickets for my systems because I receive tickets directly to my OTRS box.

Also you may have to restart Daemon if changes.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
machadoa
Znuny advanced
Posts: 101
Joined: 11 Dec 2015, 17:36
Znuny Version: 5.0.5

Re: Auto FetchMail Mail Account Management

Post by machadoa »

Euh OK.
crythias wrote:
But I don't have delays in tickets for my systems because I receive tickets directly to my OTRS box.
How you configure your system ?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Auto FetchMail Mail Account Management

Post by crythias »

OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
machadoa
Znuny advanced
Posts: 101
Joined: 11 Dec 2015, 17:36
Znuny Version: 5.0.5

Re: Auto FetchMail Mail Account Management

Post by machadoa »

I do not tune postfix on my linux, it does not matter I'll leave like that (tickets will be created after 10min)
Locked