
hi, i'm having trouble getting the 'PostMaster::PreFilterModule' working when following the instructions at http://doc.otrs.org/1.2/en/html/receiving-email-filter-module.html i'm running otrs-1.2.2-01 on a SuSE 9.0 with apache with mod_perl, mySQL etc. I seem to have everything i need working so far except 'PostMaster::PreFilterModule' Here is what i've put into Config.pm: [...] # ---------------------------------------------------- # # Dispatching rules for sorting / filtering mail # # ---------------------------------------------------- # # Job Name: 1-Match # (sort emails with From: @aol.com to Misc Queue) $Self->{'PostMasterPOP3::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMasterPOP3::Filter::Match', Match => { From => '@aol.com', }, Set => { 'X-OTRS-Queue' => 'Misc', }, }; [...] I've got a seperate queue configured (let's call it MyQueue) and under AdminArea --> POP3 Account Management i've configured it to POP mail from an external account and it's set to Trusted=Yes, Dispatching="Dispatching by selected Queue", Queue="MyQueue", Valid=valid and when i send mail with 'no_such_user@aol.com' in the 'From' header to that POP account it goes to MyQueue instead of going to the Misc queue as it should. i've tried bin/PostMasterPOP3.pl -d2 and the logs show no mention of the filter at all. any ideas what i might be doing wrong? thanks, ~steven

forgot to mention that i initially tried: $Self->{'PostMaster::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMaster::Filter::Match', but changed 'PostMaster' to 'PostMasterPOP3' (shown in my first post) to see if that's what i was missing. ~steven
hi,
i'm having trouble getting the 'PostMaster::PreFilterModule' working when following the instructions at http://doc.otrs.org/1.2/en/html/receiving-email-filter-module.html
i'm running otrs-1.2.2-01 on a SuSE 9.0 with apache with mod_perl, mySQL etc.
I seem to have everything i need working so far except 'PostMaster::PreFilterModule'
Here is what i've put into Config.pm: [...] # ---------------------------------------------------- # # Dispatching rules for sorting / filtering mail # # ---------------------------------------------------- #
# Job Name: 1-Match # (sort emails with From: @aol.com to Misc Queue) $Self->{'PostMasterPOP3::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMasterPOP3::Filter::Match', Match => { From => '@aol.com', }, Set => { 'X-OTRS-Queue' => 'Misc', }, }; [...]
I've got a seperate queue configured (let's call it MyQueue) and under AdminArea --> POP3 Account Management i've configured it to POP mail from an external account and it's set to Trusted=Yes, Dispatching="Dispatching by selected Queue", Queue="MyQueue", Valid=valid
and when i send mail with 'no_such_user@aol.com' in the 'From' header to that POP account it goes to MyQueue instead of going to the Misc queue as it should.
i've tried bin/PostMasterPOP3.pl -d2 and the logs show no mention of the filter at all.
any ideas what i might be doing wrong?
thanks, ~steven _______________________________________________ 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 für Ihr OTRS System? => http://www.otrs.de/

On Wednesday, March 17, 2004 3:50 AM
Steven Shults
forgot to mention that i initially tried:
$Self->{'PostMaster::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMaster::Filter::Match',
but changed 'PostMaster' to 'PostMasterPOP3' (shown in my first post) to see if that's what i was missing.
PostMasterPOP3 doesn't invent the wheel twice, he's just fetching the eMails from a POP server and hands them over to his brother, Kernel::System::Postmaster. So, try this: $Self->{'PostMaster::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMaster::Filter::Match', Match => { 'From' => '.+@aol\.com', }, Set => { 'X-OTRS-Queue' => 'Misc', }, };
# Job Name: 1-Match # (sort emails with From: @aol.com to Misc Queue) $Self->{'PostMasterPOP3::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMasterPOP3::Filter::Match', Match => { From => '@aol.com', }, Set => { 'X-OTRS-Queue' => 'Misc', }, }; [...]
The above would have no effect at all. hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388

thanks robert, at least it's filtering now, but regardless of what i set 'X-OTRS-Queue' to it goes to the Junk queue. any ideas? thanks, ~steven Thus spake the noble and just Robert Kehl :
On Wednesday, March 17, 2004 3:50 AM Steven Shults
wrote: forgot to mention that i initially tried:
$Self->{'PostMaster::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMaster::Filter::Match',
but changed 'PostMaster' to 'PostMasterPOP3' (shown in my first post) to see if that's what i was missing.
PostMasterPOP3 doesn't invent the wheel twice, he's just fetching the eMails from a POP server and hands them over to his brother, Kernel::System::Postmaster.
So, try this:
$Self->{'PostMaster::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMaster::Filter::Match', Match => { 'From' => '.+@aol\.com', }, Set => { 'X-OTRS-Queue' => 'Misc', }, };
# Job Name: 1-Match # (sort emails with From: @aol.com to Misc Queue) $Self->{'PostMasterPOP3::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMasterPOP3::Filter::Match', Match => { From => '@aol.com', }, Set => { 'X-OTRS-Queue' => 'Misc', }, }; [...]
The above would have no effect at all.
hth,
Robert Kehl
-- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
_______________________________________________ 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 für Ihr OTRS System? => http://www.otrs.de/

ignore that last. i'd set the popper to filter to Junk during some testing and forgot. so what I should have said was that your suggestion didn't change the situation, mail still goes to the queue which the POP3 account is set to dispatch it to, regardless of whether it matches the PreFilterModule or not. any ideas of what else i might try? thanks, ~steven On Wed, 17 Mar 2004, Robert Kehl wrote:
On Wednesday, March 17, 2004 3:50 AM Steven Shults
wrote: forgot to mention that i initially tried:
$Self->{'PostMaster::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMaster::Filter::Match',
but changed 'PostMaster' to 'PostMasterPOP3' (shown in my first post) to see if that's what i was missing.
PostMasterPOP3 doesn't invent the wheel twice, he's just fetching the eMails from a POP server and hands them over to his brother, Kernel::System::Postmaster.
So, try this:
$Self->{'PostMaster::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMaster::Filter::Match', Match => { 'From' => '.+@aol\.com', }, Set => { 'X-OTRS-Queue' => 'Misc', }, };
# Job Name: 1-Match # (sort emails with From: @aol.com to Misc Queue) $Self->{'PostMasterPOP3::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMasterPOP3::Filter::Match', Match => { From => '@aol.com', }, Set => { 'X-OTRS-Queue' => 'Misc', }, }; [...]
The above would have no effect at all.
hth,
Robert Kehl
-- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
_______________________________________________ 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 für Ihr OTRS System? => http://www.otrs.de/

thanks for the suggestion robert but this is also not filtering mail which matches into the set queue: $Self->{'PostMaster::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMaster::Filter::Match', Match => { 'From' => '.+ at aol\.com', }, Set => { 'X-OTRS-Queue' => 'Misc', }, }; what might i try next? thanks, ~Steven On Tue, 16 Mar 2004, Steven Shults wrote:
forgot to mention that i initially tried:
$Self->{'PostMaster::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMaster::Filter::Match',
but changed 'PostMaster' to 'PostMasterPOP3' (shown in my first post) to see if that's what i was missing.
~steven
hi,
i'm having trouble getting the 'PostMaster::PreFilterModule' working when following the instructions at http://doc.otrs.org/1.2/en/html/receiving-email-filter-module.html
i'm running otrs-1.2.2-01 on a SuSE 9.0 with apache with mod_perl, mySQL etc.
I seem to have everything i need working so far except 'PostMaster::PreFilterModule'
Here is what i've put into Config.pm: [...] # ---------------------------------------------------- # # Dispatching rules for sorting / filtering mail # # ---------------------------------------------------- #
# Job Name: 1-Match # (sort emails with From: @aol.com to Misc Queue) $Self->{'PostMasterPOP3::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMasterPOP3::Filter::Match', Match => { From => '@aol.com', }, Set => { 'X-OTRS-Queue' => 'Misc', }, }; [...]
I've got a seperate queue configured (let's call it MyQueue) and under AdminArea --> POP3 Account Management i've configured it to POP mail from an external account and it's set to Trusted=Yes, Dispatching="Dispatching by selected Queue", Queue="MyQueue", Valid=valid
and when i send mail with 'no_such_user@aol.com' in the 'From' header to that POP account it goes to MyQueue instead of going to the Misc queue as it should.
i've tried bin/PostMasterPOP3.pl -d2 and the logs show no mention of the filter at all.
any ideas what i might be doing wrong?
thanks, ~steven _______________________________________________ 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 für Ihr OTRS System? => http://www.otrs.de/
_______________________________________________ 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 für Ihr OTRS System? => http://www.otrs.de/

On Wednesday, March 17, 2004 10:19 PM
Steven Shults
thanks for the suggestion robert but this is also not filtering mail which matches into the set queue:
$Self->{'PostMaster::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMaster::Filter::Match', Match => { 'From' => '.+ at aol\.com', }, Set => { 'X-OTRS-Queue' => 'Misc', }, };
This won't work due to the ' at '. The 'From' mnatch is: '.+@aol\.com'. Are you sure, the address you're trying to match isn't the Return-Adress?
what might i try next?
Switch on Debugging by setting: $Self->{Debug} = 9; And watch the output. hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388

oops, copied that from the pipermail archives rather than my Config.pm, it's actually '.+@aol\.com' in the Config.pm file. it's the from i'm trying to match. i forged the 'From' field by creating a 'no_such_user@aol.com' in squirellmail's 'options -> advanced identities' dialogue and am using that to send with for testing purposes. the header's do show no_such_user@aol.com in the From line. ~steven On Wed, 17 Mar 2004, Robert Kehl wrote:
On Wednesday, March 17, 2004 10:19 PM Steven Shults
wrote: thanks for the suggestion robert but this is also not filtering mail which matches into the set queue:
$Self->{'PostMaster::PreFilterModule'}->{'1-Match'} = { Module => 'Kernel::System::PostMaster::Filter::Match', Match => { 'From' => '.+ at aol\.com', }, Set => { 'X-OTRS-Queue' => 'Misc', }, };
This won't work due to the ' at '. The 'From' mnatch is: '.+@aol\.com'. Are you sure, the address you're trying to match isn't the Return-Adress?
what might i try next?
Switch on Debugging by setting:
$Self->{Debug} = 9;
And watch the output.
hth,
Robert Kehl
-- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
_______________________________________________ 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 für Ihr OTRS System? => http://www.otrs.de/

On Wednesday, March 17, 2004 11:11 PM
Steven Shults
it's the from i'm trying to match. i forged the 'From' field by creating a 'no_such_user@aol.com' in squirellmail's 'options -> advanced identities' dialogue and am using that to send with for testing purposes. the header's do show no_such_user@aol.com in the From line.
Ok, then post some portions of your log file. Regards, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
participants (2)
-
Robert Kehl
-
Steven Shults