Automating Email fetch on googlemail

Moderator: crythias

Locked
akanaujia
Znuny newbie
Posts: 5
Joined: 10 Nov 2011, 00:12
Znuny Version: 3.0.10
Real Name: Anand Kanaujia
Company: Advent Global Solutions Inc

Automating Email fetch on googlemail

Post by akanaujia »

I have set up feting email. It works when I click the refresh button.

Is there a way to set this up automatically so it goes and fetches the ticket email every 1 to 2 minutes or something like that.

Also, Is it possible to set up the system that when a ticket comes it should send out emails to all the users (Client / Agents) assigned to those queue / client / Roles?
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Automating Email fetch on googlemail

Post by Wolfgangf »

check out the cron jobs if they are running http://doc.otrs.org/3.0/en/html/manual- ... l#cronjobs
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
akanaujia
Znuny newbie
Posts: 5
Joined: 10 Nov 2011, 00:12
Znuny Version: 3.0.10
Real Name: Anand Kanaujia
Company: Advent Global Solutions Inc

Re: Automating Email fetch on googlemail

Post by akanaujia »

Thanks for the reply. I was able to resolve this issue.

Changed the parameter on postmaster_mailbox.dist as follows and its now picking up emails every 2 min.

# fetch emails every 10 minutes
*/2 * * * * $HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null
akanaujia
Znuny newbie
Posts: 5
Joined: 10 Nov 2011, 00:12
Znuny Version: 3.0.10
Real Name: Anand Kanaujia
Company: Advent Global Solutions Inc

Re: Automating Email fetch on googlemail

Post by akanaujia »

Hi,

I get the following error every once in a while. But if it runs for more than an hour there is some process which cleans it up. Is there a way to change the clean up to happen in 15 min. or so.

[Wed Nov 16 16:58:03 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:00:04 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:02:03 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:04:02 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:06:04 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:12:13 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:14:01 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:16:05 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:18:02 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:20:03 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:22:03 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:24:05 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:26:01 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:28:04 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:30:02 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:32:02 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:34:02 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:36:04 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:40:13 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:42:03 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:44:03 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:46:02 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:48:01 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:50:03 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:52:10 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:54:02 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
[Wed Nov 16 17:56:02 2011][Notice][Kernel::System::PID::PIDCreate] Removed PID (PostMasterMailbox/yourhost.example.com/760, because 1 hour old!

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

Re: Automating Email fetch on googlemail

Post by jojo »

this only happens if the postmaster_mailbox.pl crashes. Have a look in the logfile
"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
akanaujia
Znuny newbie
Posts: 5
Joined: 10 Nov 2011, 00:12
Znuny Version: 3.0.10
Real Name: Anand Kanaujia
Company: Advent Global Solutions Inc

Re: Automating Email fetch on googlemail

Post by akanaujia »

Thanks for your prompt response. Is there a way to clean it up? or restart postmaster_mailbox.pl

Here is the log: - I don't see anything?
[Wed Nov 16 16:36:22 2011][Notice][Kernel::System::MailAccount::IMAPS::_Fetch] IMAPS: Fetched 1 email(s) from issues@premierconsulting.com/imap.gmail.com.
[Wed Nov 16 16:55:03 2011][Notice][Kernel::System::AuthSession::DB::RemoveSessionID] Removed SessionID 10542af1a235514030c9f60f0edd7be911.
[Wed Nov 16 16:56:06 2011][Notice][Kernel::System::PostMaster::Filter::MatchDBSource::Run] Filter: 'Support' Set param 'X-OTRS-CustomerUser' to 'OTRS_CUSTOMER_FROM' (Message-ID: <1321480571.46814.YahooMailNeo@web38405.mail.mud.yahoo.com>)
[Wed Nov 16 16:56:06 2011][Notice][Kernel::System::PostMaster::Filter::MatchDBSource::Run] Filter: 'Support' Set param 'X-OTRS-Priority' to '2 low' (Message-ID: <1321480571.46814.YahooMailNeo@web38405.mail.mud.yahoo.com>)
[Wed Nov 16 16:56:06 2011][Notice][Kernel::System::PostMaster::Filter::MatchDBSource::Run] Filter: 'Support' Set param 'X-OTRS-Queue' to 'Support' (Message-ID: <1321480571.46814.YahooMailNeo@web38405.mail.mud.yahoo.com>)
[Wed Nov 16 16:56:06 2011][Notice][Kernel::System::PostMaster::Filter::MatchDBSource::Run] Filter: 'Support' Stopped filter processing because of used 'StopAfterMatch' (Message-ID: <1321480571.46814.YahooMailNeo@web38405.mail.mud.yahoo.com>)
[Wed Nov 16 16:56:06 2011][Notice][Kernel::System::Ticket::TicketCreate] New Ticket [20111116106/6 - New Ticket ] created (TicketID=25,Queue=support,Priority=2 low,State=new)
[Wed Nov 16 16:58:03 2011][Notice][Kernel::System::PID::PIDCreate] Can't create PID PostMasterMailbox, because it's already running (yourhost.example.com/760)!
Locked