Configuration mailgate RT

hello,
I would like to configure mailgate to convert emails to tickets .
for example this is the source of mail naoufal@mail.com.

how i can configure it to convert the email to ticket and assigne it to a queue ?

thanks

I would like to configure mailgate to convert emails to tickets .
for example this is the source of mail naoufal@mail.com.

how i can configure it to convert the email to ticket and assigne it to a queue ?

You need to call the script rt-mailgate with inside the arguments you pass the queue name.

The way you going to call rt-mailgate depend on how you manage your email.

For example if you using sendmail, you can add in the alias something like

:0:

  • ^(To|Resent-To|Cc).email_address_of_the_queue
    | /usr/local/bin/rt-mailgate --queue QUEUE_NAME --action correspond --url https://URL_OF_YOUR_RT

:0:

  • ^(To|Resent-To|Cc).email_address_of_the_queue_for_comments
    | /usr/local/bin/rt-mailgate --queue QUEUE_NAME --action comment --url https://URL_OF_YOUR_RT

Don’t forget to change the

$RTAddressRegexp

inside your RT_SiteConfig to match the email_address_*

HTH

Can you give me the configuration step by step if it possible.

Thank you

Le 23/08/2017 à 10:59:00+0000, naoufal a écrit

[45] naoufalmeknaoui
August 23

Can you give me the configuration step by step if it possible.

Well…without knowing your configuration it’s hard to help you.

For me it’s very simple :

1/ Put inside a file name

/usr/local/etc/procmail-rt

what I already write

2/ Put inside

  /etc/mail/aliases.txt

something like

  email_address_of_the_queue: /usr/local/sbin/procmail /usr/local/etc/procmailrc-rt
  email_address_of_the_queue_for_comments: /usr/local/sbin/procmail /usr/local/etc/procmailrc-rt

3/ run

    newaliases

That’s all.

Regards

thank you albert , for my case i use exim4 as mail server , and i have two queues named vulnerability and the second is incident .