Moderator: crythias
Hi, this is my first time using OTRS. I have the following
Windows 2003 R2 Server
It's actually a VPS server in a data Center
All works i can browse to the server via the web and it works fine, I have setup the email to send out email / the smtp host and all is working. I have also setup a pop3 account which if i go into the web and click fetch mail it will fetch the mail, create a ticket & send a auto responder back to the email address who sent in the email.
So I have 2 questions.
1st How can i get the system to automatically fetch the mail
2nd can i set it up to be able to send mail directly the OTRS?
Thanks in advance for all and any help.
Windows 2003 R2 Server
It's actually a VPS server in a data Center
All works i can browse to the server via the web and it works fine, I have setup the email to send out email / the smtp host and all is working. I have also setup a pop3 account which if i go into the web and click fetch mail it will fetch the mail, create a ticket & send a auto responder back to the email address who sent in the email.
So I have 2 questions.
1st How can i get the system to automatically fetch the mail
2nd can i set it up to be able to send mail directly the OTRS?
Thanks in advance for all and any help.
-
- Znuny advanced
- Posts: 136
- Joined: 04 Oct 2010, 14:14
- Znuny Version: 3.0.10; 3.1.4
- Location: US, SC
- Contact:
Re: Email
Under the Admin tab in OTRS there is a block of options called "Email Settings." There is an option called PostMaster Mail Accounts, you can setup the email address to fetch from here. You can also setup the queue in which you want the emails to flow into here as well. The emails are automatically fetched by a running Cron job, the default is every 10 minutes.
OTRS 3.1.4
Windows Server 2008 R2
MySQL
OTRS 3.0.10 - soon to be 3.0.12 or 3.1.4
Windows Server 2008 R2
MySQL DB
Windows Server 2008 R2
MySQL
OTRS 3.0.10 - soon to be 3.0.12 or 3.1.4
Windows Server 2008 R2
MySQL DB
Re: Email
I have everything setup correctly, but the only way that i can get the system to fetch my email is if i go into the admin block click the pop3 settings and then click fetch mail. It will not auto fetch every 10 minutes.
I have a basic install on windows. All i did was download the software and install it.
I have a basic install on windows. All i did was download the software and install it.
-
- Znuny expert
- Posts: 241
- Joined: 06 Feb 2009, 11:15
- Znuny Version: 3.0.x
- Company: Perl-Services.de
- Contact:
Re: Email
So you're sure that your cronjobs work? Can you post you crontab.txt? Is cronw installed as a service? Are there any entries in the logfile?
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
Re: Email
# cronw - Cron for Windows (http://cronw.sourceforge.net)
#
# automatically generated CRONTAB file
# you may edit this file - you changes won't be overwritten!
#
# crontab format is:
# <Minute> <Hour> <Day> <Month> <Day of Week> <Command line>
# Position: Values:
# Minute 0-59
# Hour 0-23
# Day 1-31
# Month 1-12 (1 = January, 12 = December)
# Day of week 0-7 (0=Sunday, 1=Monday, ..., 6=Saturday, 7=Sunday)
#
# Alternatively you may use mnemonics for diffent fields:
# Hour: "1am", "2am", ..., "12am", "1pm", "2pm", ..., "12pm",
# Month: "Jan", "Feb", ..., "Nov", "Dec"
# Day of week: "Mon", "Tue", "Wed", ..., "Sat", "Sun"
#
# If you want to execute a job only one times daily just put an
# executable into cron.daily. Execution time is 18:00. Same goes
# for cron.weekly (every Monday, 18:00) and cron.monthly (first day
# of every month, 18:00).
#
# Examples:
#
# Every Friday at 13:00h
# 0 13 * * 5 c:\perl\bin\perl.exe c:\test.pl
# 0 13 * * Fri c:\perl\bin\perl.exe c:\test.pl
#
# Every 15 Minutes during daytime on Saturdays and Sundays
# */15 6-20 * * 6,7 c:\perl\bin\perl.exe c:\webcam.pl
# */15 6-20 * * Sat,Sun c:\perl\bin\perl.exe c:\webcam.pl
#
# <Minute> <Hour> <Day> <Month> <Day of Week> <Command line>
#
# automatically generated CRONTAB file
# you may edit this file - you changes won't be overwritten!
#
# crontab format is:
# <Minute> <Hour> <Day> <Month> <Day of Week> <Command line>
# Position: Values:
# Minute 0-59
# Hour 0-23
# Day 1-31
# Month 1-12 (1 = January, 12 = December)
# Day of week 0-7 (0=Sunday, 1=Monday, ..., 6=Saturday, 7=Sunday)
#
# Alternatively you may use mnemonics for diffent fields:
# Hour: "1am", "2am", ..., "12am", "1pm", "2pm", ..., "12pm",
# Month: "Jan", "Feb", ..., "Nov", "Dec"
# Day of week: "Mon", "Tue", "Wed", ..., "Sat", "Sun"
#
# If you want to execute a job only one times daily just put an
# executable into cron.daily. Execution time is 18:00. Same goes
# for cron.weekly (every Monday, 18:00) and cron.monthly (first day
# of every month, 18:00).
#
# Examples:
#
# Every Friday at 13:00h
# 0 13 * * 5 c:\perl\bin\perl.exe c:\test.pl
# 0 13 * * Fri c:\perl\bin\perl.exe c:\test.pl
#
# Every 15 Minutes during daytime on Saturdays and Sundays
# */15 6-20 * * 6,7 c:\perl\bin\perl.exe c:\webcam.pl
# */15 6-20 * * Sat,Sun c:\perl\bin\perl.exe c:\webcam.pl
#
# <Minute> <Hour> <Day> <Month> <Day of Week> <Command line>
-
- Znuny expert
- Posts: 241
- Joined: 06 Feb 2009, 11:15
- Znuny Version: 3.0.x
- Company: Perl-Services.de
- Contact:
Re: Email
So, there is no cronjob at all...
The file should look like:
(you have to change the paths to the appropriate values on your machine as the paths to Perl and to you OTRS installation may vary)
See also http://faq.otrs.org/otrs/public.pl?Acti ... ItemID=203
The file should look like:
Code: Select all
*/10 * * * * c:\perl\bin\perl.exe c:\otrs\bin\otrs.PostMaster.pl
See also http://faq.otrs.org/otrs/public.pl?Acti ... ItemID=203
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
-
- Znuny advanced
- Posts: 136
- Joined: 04 Oct 2010, 14:14
- Znuny Version: 3.0.10; 3.1.4
- Location: US, SC
- Contact:
Re: Email
Which version of OTRS are you using? 3.0.9? There was an issue with 3.0.9 not auto-fetching emails, please look at this post: http://forums.otrs.org/viewtopic.php?f=62&t=10578 Note: the forum indicates that the crontab is not being populated, but I believe the offer a fix in that thread.
OTRS 3.1.4
Windows Server 2008 R2
MySQL
OTRS 3.0.10 - soon to be 3.0.12 or 3.1.4
Windows Server 2008 R2
MySQL DB
Windows Server 2008 R2
MySQL
OTRS 3.0.10 - soon to be 3.0.12 or 3.1.4
Windows Server 2008 R2
MySQL DB
Re: Email
Ok so here is where i'm at.
I reinstalled OTRS into C:\
So my working directory is now C:\OTRS, I have went through all the forum and done the following
Added
*/2 * * * * C:\OTRS\StrawberryPerl\perl\bin\perl.exe C:\OTRS\OTRS\bin\otrs.PostMaster.pl
Modified
otrs.Cron4Win32
my $PerlExe = "c:/OTRS/StrawberryPerl/perl/bin/perl.exe";
my $Directory = "c:/OTRS/OTRS/var/cron";
my $CronTabFile = "c:/OTRS/CRONw/crontab.txt";
my $OTRSHome = "c:/OTRS/OTRS/";
Still i have no luck the system will not fetch mail?
I reinstalled OTRS into C:\
So my working directory is now C:\OTRS, I have went through all the forum and done the following
Added
*/2 * * * * C:\OTRS\StrawberryPerl\perl\bin\perl.exe C:\OTRS\OTRS\bin\otrs.PostMaster.pl
Modified
otrs.Cron4Win32
my $PerlExe = "c:/OTRS/StrawberryPerl/perl/bin/perl.exe";
my $Directory = "c:/OTRS/OTRS/var/cron";
my $CronTabFile = "c:/OTRS/CRONw/crontab.txt";
my $OTRSHome = "c:/OTRS/OTRS/";
Still i have no luck the system will not fetch mail?