X-OTRS used to ignore AND send a rejection message?

If I use X-OTRS to ignore a message is it also possible to send a notice back to the sender informing them of the rejection? Thanks, Tyler Hepworth

Hi Tyler, On Wed, May 12, 2004 at 05:17:54PM -0600, Tyler Hepworth wrote:
If I use X-OTRS to ignore a message is it also possible to send a notice back to the sender informing them of the rejection?
No. In this case you need to write a new PostMaster filter module to do this. (http://doc.otrs.org/cvs/en/html/dev-custom-modules-postmaster.html)
Tyler Hepworth
Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

On Thu, 2004-05-13 at 08:29, Martin Edenhofer wrote:
On Wed, May 12, 2004 at 05:17:54PM -0600, Tyler Hepworth wrote:
If I use X-OTRS to ignore a message is it also possible to send a notice back to the sender informing them of the rejection?
No. In this case you need to write a new PostMaster filter module to do this.
Or you can do it a different way if you are able use procmail. I have a procmail filter to reject new messages that have multiple recipients in the To: field or have been CC'd to others (who obviously wouldn't have the ticket number if they were to reply). I use formail to generate the auto-reply, concatenate its output with a canned message, and then feed the lot to sendmail. Jim

Or you can do it a different way if you are able use procmail. I have a procmail filter to reject new messages that have multiple recipients in the To: field or have been CC'd to others (who obviously wouldn't have the ticket number if they were to reply). I use formail to generate the auto-reply, concatenate its output with a canned message, and then feed the lot to sendmail.
I saw your message after sending mine :(( could you share your procmail script, please ? (I've never used procmail before, and all my test filters left all messages through :))) thanks in advance and have a nice day. -- Sébastien

On Wed, 2004-05-19 at 14:44, Sebastien Guilbaud wrote:
I saw your message after sending mine :((
could you share your procmail script, please ? (I've never used procmail before, and all my test filters left all messages through :)))
thanks in advance and have a nice day.
The relevant part is: :0 :: * ^To:.*@.*@.*|^(CC|Cc):.*@.* * !^Subject:.*\[Tkt: 1[0-9].*\] | (formail -t -r -k -p "> " -I "Reply-To: <reply address>"; cat /path/to/rejection/message) | sendmail -t You will obviously have to customise the subject match to correspond to your ticket number format. Replace <reply address> with the address you want replies to go to should customers reply to the rejection message - unless you want them arriving back in the ticket system, in which case remove the -I option. Jim

The relevant part is:
:0 :: * ^To:.*@.*@.*|^(CC|Cc):.*@.* * !^Subject:.*\[Tkt: 1[0-9].*\] | (formail -t -r -k -p "> " -I "Reply-To: <reply address>"; cat /path/to/rejection/message) | sendmail -t
You will obviously have to customise the subject match to correspond to your ticket number format. Replace <reply address> with the address you want replies to go to should customers reply to the rejection message - unless you want them arriving back in the ticket system, in which case remove the -I option.
great ! thanks ! I test it asap, it's very kind of you to share your knowledge here. -- Sébastien

The relevant part is:
:0 :: * ^To:.*@.*@.*|^(CC|Cc):.*@.* * !^Subject:.*\[Tkt: 1[0-9].*\] | (formail -t -r -k -p "> " -I "Reply-To: <reply address>"; cat /path/to/rejection/message) | sendmail -t
You will obviously have to customise the subject match to correspond to your ticket number format. Replace <reply address> with the address you want replies to go to should customers reply to the rejection message - unless you want them arriving back in the ticket system, in which case remove the -I option.
it works perfectly, thanks ! now that we have the basic procmail building blocks, we'll try to extend this ruleset to do cool things like blacklisting stupid customers, forbid HTML content, etc. -- Sébastien Guilbaud

You will obviously have to customise the subject match to correspond to your ticket number format. Replace <reply address> with the address you want replies to go to should customers reply to the rejection message - unless you want them arriving back in the ticket system, in which case remove the -I option.
it works perfectly, thanks ! now that we have the basic procmail building blocks, we'll try to extend this ruleset to do cool things like blacklisting stupid customers, forbid HTML content, etc.
and next : forbid s/mime signed messages :-) (i've received 3 of them today...) -- Sébastien Guilbaud

On Tuesday, May 25, 2004 4:48 PM
Sebastien Guilbaud
it works perfectly, thanks ! now that we have the basic procmail building blocks, we'll try to extend this ruleset to do cool things like blacklisting stupid customers, forbid HTML content, etc.
and next : forbid s/mime signed messages :-) (i've received 3 of them today...)
Have a look at an SMTP scanner. It's better to do these checks outside the app. exim in combination with SpamAssassin and a MIME encodign at SMTP receive time is suited best for this. hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
participants (5)
-
Jim Wight
-
Martin Edenhofer
-
Robert Kehl
-
Sebastien Guilbaud
-
Tyler Hepworth