Re: [otrs] otrs-fetching mails from mail server

HI Rory
Am working in RHEL 5.3 and otrs also installed on the same machine
On Thu, Sep 17, 2009 at 7:02 AM,
Send otrs mailing list submissions to otrs@otrs.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.otrs.org/cgi-bin/listinfo/otrs or, via email, send a message with subject or body 'help' to otrs-request@otrs.org
You can reach the person managing the list at otrs-owner@otrs.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of otrs digest..."
Today's Topics:
1. otrs-fetching mails from mail server (Karthick B) 2. Re: otrs-fetching mails from mail server (Rory) 3. Couple of questions on Notifications (Gustavo Montes) 4. Tr : Can't solve : Panic, no user data found (olivier.villegente@sic.nc)
----------------------------------------------------------------------
Message: 1 Date: Wed, 16 Sep 2009 21:17:17 +0530 From: Karthick B
Subject: [otrs] otrs-fetching mails from mail server To: otrs@otrs.org Message-ID: <844c48950909160847w1e6aa5ado6d350a09a4f36143@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" HI I'm new to otrs.i have installed otrs and configured.everything is working fine.i can able to fetch the mails from mail server via postmastermail account. now i want to fetch the mail for every minute. i read the otrs doccument.but i can't understand..can any1 tell me how to do..pls tell me which file to edit and which service should i start so i can fetch my mails for every minute.
-- Regards, B.Karthick.

Hi Karthick,
The documentation you are looking at is at
http://doc.otrs.org/2.4/en/html/x531.html#cronjobs
There are 2 directories for you to consider;
1) /opt/otrs/var/cron
2) /opt/otrs/bin/
In directory 1 there is a list of files ending in .dist. These files
contain details for scheduling different functions of the otrs system.
If you have configured your e-mail through the PostMaster Mail Account
menu in the otrs web interface (not throught the config files) you
will be interested in the postmaster_mailbox.dist file.
This file will be used to add a crontab entry for the
PostMasterMailbox.pl perl script which gets your mail and puts it into
your database.
You need to change the filename postmaster_mailbox.dist to postmaster_mailbox
This will cause the the postmaster_mailbox settings to be included in
your crontab later.
Open the postmaster_mailbox file for editing.
Look for the line;
*/10 * * * * $HOME/bin/PostMasterMailbox.pl >> /dev/null
This is the standard syntax for a crontab entry. Change the "10" to a
"1". This will tell the system you want to execute the script
mentioned every 1 minute (instead of every 10). If you want to do
something different then look up how to write a crontab entry for more
instructions.
Save and close the file.
You have now prepared what you want to be added to crontab.
The next step will over write your current crontab so it would be best
to list the contents (crontab -l) and back them up.
Change to your otrs user if you are not already that user (usually
just otrs), su - otrs
Once you are the otrs user change to directory 2, /opt/otrs/bin/
Now execute the command;
./Cron.sh start
This will add the details from the file in directory 1 to your
crontab. Check your crontab to make sure what you want to be there is
actually there (crontab -l)
If your entry for the PostMasterMailbox.pl is there then your job is
scheduled and will run every minute.
Test it by sending a mail to the otrs account you created.
I hope that works for you,
Rory
Support my 365 Challenge in aid of the Irish Cancer Society
www.365challenge.ie
2009/9/17 Karthick B
HI Rory
Am working in RHEL 5.3 and otrs also installed on the same machine
participants (2)
-
Karthick B
-
Rory