Fetch Mail interval

Moderator: crythias

Locked
omercohen3
Znuny newbie
Posts: 8
Joined: 02 Jan 2013, 16:13
Znuny Version: 3.2.0
Real Name: Omer
Company: Private

Fetch Mail interval

Post by omercohen3 »

Hello

I am working with OTRS 3.2.5 and want to know how to change the email fetching interval?
the mail box the OTRS is fetching from receives about 800 emails per hour, does any one know if OTRS can handle such volume including postmaster filters?



Thank you
omercohen3
KlausNehrer
Znuny ninja
Posts: 1312
Joined: 25 May 2012, 08:51
Znuny Version: OTRS 4
Real Name: Klaus Nehrer

Re: Fetch Mail interval

Post by KlausNehrer »

Change ${OTRSPATH}/var/cron/postmaster_mailbox and reinstall cronjob with croninstaller in ${OTRSPATH}/bin

Only 800 E-Mails per hour? You are alone? ;)
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Fetch Mail interval

Post by crythias »

at that load, you may want to not fetch and instead allow otrs to receive the emails directly.
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
omercohen3
Znuny newbie
Posts: 8
Joined: 02 Jan 2013, 16:13
Znuny Version: 3.2.0
Real Name: Omer
Company: Private

Re: Fetch Mail interval

Post by omercohen3 »

How do i configure that?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Fetch Mail interval

Post by crythias »

What operating system?

Basic concept:
make the otrs box receive mail.
pipe mail through otrs.Postmaster.pl

See the latest HowTo for Windows.

For Linux, it's a bit easier (in the wiki).
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
omercohen3
Znuny newbie
Posts: 8
Joined: 02 Jan 2013, 16:13
Znuny Version: 3.2.0
Real Name: Omer
Company: Private

Re: Fetch Mail interval

Post by omercohen3 »

Hi

I'd be very thankful if you can provide a link to the specific Wiki page

one more question:

I recently changed and upgraded from windows OTRS helpdesk 3.1X to linux OTRS helpdesk 3.2.6
the email fetching proccess is not working proprly:

1) the automatic fetching is not working at all
2)when i try the manual fetching ,it only fetches about 20 mails when the mailbox has over 900

Does anyone knows how to fix it?

Thanks,
Omer
reneeb
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 interval

Post by reneeb »

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
omercohen3
Znuny newbie
Posts: 8
Joined: 02 Jan 2013, 16:13
Znuny Version: 3.2.0
Real Name: Omer
Company: Private

Re: Fetch Mail interval

Post by omercohen3 »

if you mean to the automatic fetching, then no.

Automatic fetching in the previous versions of OTRS came out of the box - no extra development needed
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Fetch Mail interval

Post by crythias »

omercohen3 wrote:I'd be very thankful if you can provide a link to the specific Wiki page
http://wiki.otterhub.org/index.php?titl ... POP3/fetch

Note that getting your Linux box to receive email *at all* is a required step. (It doesn't have to receive mail directly from the Interwebs. It just needs to have the ability to receive mail and something can forward to it.)

And yes, fetching will only grab 20 mails at a time. I think this is configured as a MaxFetch number.
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
omercohen3
Znuny newbie
Posts: 8
Joined: 02 Jan 2013, 16:13
Znuny Version: 3.2.0
Real Name: Omer
Company: Private

Re: Fetch Mail interval

Post by omercohen3 »

Thanks you all.

what is the MaxFetch number and where can i change it?
reneeb
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 interval

Post by reneeb »

omercohen3 wrote:Automatic fetching in the previous versions of OTRS came out of the box - no extra development needed
yes, the windows installer created the cronjobs automatically, but on linux, you have to add the cronjobs manually (as described in the documentation).
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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Fetch Mail interval

Post by crythias »

omercohen3 wrote: Thanks you all.

what is the MaxFetch number and where can i change it?
The manual fetch (Kernel/Modules/AdminMailAccount) is hardcoded for 15:

Code: Select all

        my $Ok = $Self->{MailAccount}->MailAccountFetch(
            %Data,
            Limit  => 15,
            UserID => $Self->{UserID},
        );
The scheduled fetch in the cronjob (bin/otrs.PostMaster.pl ) doesn't have a limit, though if you have 800-1000 hourly and fetch every minute (for example), it's highly likely that you will attempt to fetch again while the previous job is in session. Especially if there are large attachments.
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
omercohen3
Znuny newbie
Posts: 8
Joined: 02 Jan 2013, 16:13
Znuny Version: 3.2.0
Real Name: Omer
Company: Private

Re: Fetch Mail interval

Post by omercohen3 »

reneeb wrote:Did you create the cronjob? http://doc.otrs.org/3.2/en/html/manual- ... l#cronjobs
I followed the instructions to create and start the cronjobs (after changing the interval) but OTRS still does not fetch automatically.

If i change the installation to windows, where can i change the fetching interval? (I'm new to linux :/)

Thanks,
Omercohen3
Locked