
Hi, is it possible to put mail in a queue, depending on the sender/ For example: mail from cron@system -> cron-queue grtz -- Hans Scheffers

On Tue, Jan 20, Hans Scheffers wrote:
Hi, is it possible to put mail in a queue, depending on the sender/ For example: mail from cron@system -> cron-queue
Please have a look at http://doc.otrs.org/cvs/en/html/receiving-email-procmail.html for the CVS version or http://doc.otrs.org/1.1/html/receiving-email-cmd.html#RECEIVING-EMAIL-CMD-DI... for the 1.1 take care Stefan Wintermeyer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388

Yep, I saw that... sorry, i meant within otrs All te mail is coming on one email adress and at the moment I use the pop3-client to fetch the email grtz On Tue, 2004-01-20 at 14:32, Stefan Wintermeyer wrote:
On Tue, Jan 20, Hans Scheffers wrote:
Hi, is it possible to put mail in a queue, depending on the sender/ For example: mail from cron@system -> cron-queue
Please have a look at http://doc.otrs.org/cvs/en/html/receiving-email-procmail.html for the CVS version or http://doc.otrs.org/1.1/html/receiving-email-cmd.html#RECEIVING-EMAIL-CMD-DI... for the 1.1
take care Stefan Wintermeyer -- Hans Scheffers JifLin Automatisering email:hans@jiflin.nl web: http://www.jiflin.nl

On Tuesday, January 20, 2004 2:47 PM
Hans Scheffers
Yep, I saw that... sorry, i meant within otrs All te mail is coming on one email adress and at the moment I use the pop3-client to fetch the email
You'll have to pre-sort your eMail sources on the POP3 server by using multiple POP3 boxes, then. Why don't you want to use procmail, assuming you're on Linux? At least you're mailing from Linux. hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388

Hi Hans, On Tue, Jan 20, 2004 at 05:37:03PM +0100, Robert Kehl wrote:
Yep, I saw that... sorry, i meant within otrs All te mail is coming on one email adress and at the moment I use the pop3-client to fetch the email
You'll have to pre-sort your eMail sources on the POP3 server by using multiple POP3 boxes, then.
Or you use the new OTRS 1.2 feature: "PostMasterFilter" :) http://doc.otrs.org/cvs/en/html/receiving-email-filter-module.html (It's used for any way of receiving emails on any platforms because it's a OTRS PostMaster module.) There is an existing module for your needs, add the following to Kernel/Config.pm (only in OTRS 1.2): [...] # Job Name: 1-JobForHans # (sort emails with From: sales@example.com into queue 'Order') $Self->{'PostMaster::PreFilterModule'}->{'1-JobForHans'} = { Module => 'Kernel::System::PostMaster::Filter::Match', Match => { To => 'sales@example.com', }, Set => { 'X-OTRS-Queue' => 'Order', }, }; [...] Have a lot of fun! .-) -Martin -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

Or you use the new OTRS 1.2 feature: "PostMasterFilter" :)
http://doc.otrs.org/cvs/en/html/receiving-email-filter-module.html (It's used for any way of receiving emails on any platforms because it's a OTRS PostMaster module.)
There is an existing module for your needs, add the following to Kernel/Config.pm (only in OTRS 1.2):
Only under 1.2 or can i edit 1.1.3 so this will work under 1.1.3? -- Hans Scheffers

Hi Hans, On Wed, Jan 21, 2004 at 11:51:52AM +0100, Hans Scheffers wrote:
Or you use the new OTRS 1.2 feature: "PostMasterFilter" :)
http://doc.otrs.org/cvs/en/html/receiving-email-filter-module.html (It's used for any way of receiving emails on any platforms because it's a OTRS PostMaster module.)
There is an existing module for your needs, add the following to Kernel/Config.pm (only in OTRS 1.2):
Only under 1.2 or can i edit 1.1.3 so this will work under 1.1.3?
Use it only in 1.2 because we changed a lot in charset encoding (utf-8 support) and this will not work with 1.1.
Hans Scheffers
Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

Martin, when I follow your example, the mail just arrives in the Raw queue. I have placed the commands in the Config.pm, is there anything extra I have to add? THis is the command: $Self->{'PostMaster::PreFilterModule'}->{'2-JifLinSpam'} = { Module => 'Kernel::System::PostMaster::Filter::Match', Match => { To => 'spam@jiflin.nl', }, Set => { 'X-OTRS-Queue' => 'spam', }, }; grtz -- Hans Scheffers

Hi Hans, On Thu, Jan 29, 2004 at 04:40:20PM +0100, Hans Scheffers wrote:
Martin, when I follow your example, the mail just arrives in the Raw queue. I have placed the commands in the Config.pm, is there anything extra I have to add? THis is the command:
$Self->{'PostMaster::PreFilterModule'}->{'2-JifLinSpam'} = { Module => 'Kernel::System::PostMaster::Filter::Match', Match => { To => 'spam@jiflin.nl', }, Set => { 'X-OTRS-Queue' => 'spam', }, };
You use OTRS 1.2? If yes, try to use "bin/PostMaster(POP3).pl -d2" and
you will find debug infos in your OTRS log.
E. g.:
[...]
Jan 30 15:25:40 cuba OTRS-PM-10[5018]: [Debug][Kernel::System::PostMaster::Filter::Match::Run][70] 'System Tester I
-- Hans Scheffers
Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

Hi Martin & Rest It does find a match, and sets X-OTRS-Queue to spam. That's it.. Does the default OTRS check on X-OTRS-Queue? greetz Fri, 2004-01-30 at 15:34, Martin Edenhofer wrote:
Hi Hans,
On Thu, Jan 29, 2004 at 04:40:20PM +0100, Hans Scheffers wrote:
Martin, when I follow your example, the mail just arrives in the Raw queue. I have placed the commands in the Config.pm, is there anything extra I have to add? THis is the command:
$Self->{'PostMaster::PreFilterModule'}->{'2-JifLinSpam'} = { Module => 'Kernel::System::PostMaster::Filter::Match', Match => { To => 'spam@jiflin.nl', }, Set => { 'X-OTRS-Queue' => 'spam', }, };
You use OTRS 1.2? If yes, try to use "bin/PostMaster(POP3).pl -d2" and you will find debug infos in your OTRS log.
E. g.:
[...] Jan 30 15:25:40 cuba OTRS-PM-10[5018]: [Debug][Kernel::System::PostMaster::Filter::Match::Run][70] 'System Tester I
' =~ /noreply@/i matched NOT! [...] -- Hans Scheffers
Martin Edenhofer
-- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting fr Ihr OTRS System? => http://www.otrs.de/ -- Hans Scheffers JifLin Automatisering email:hans@jiflin.nl web: http://www.jiflin.nl

Hi Hans, On Fri, Jan 30, 2004 at 04:39:51PM +0100, Hans Scheffers wrote:
It does find a match, and sets X-OTRS-Queue to spam. That's it..
That means, taht the To: field isn't "spam@jiflin.nl". -=> So no X-OTRS-Queue = spam will be set.
Does the default OTRS check on X-OTRS-Queue?
If the header exists, the yes. If no X-OTRS-Queue header exists, the normal otrs dispatching will be used. Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!
participants (4)
-
Hans Scheffers
-
Martin Edenhofer
-
Robert Kehl
-
Stefan Wintermeyer