<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I use a cron job that runs fetchmail. Here's my fetchmail config file. The credentials are for the mail server, not RT.<div class=""><br class=""></div><div class=""><font face="Courier" class="">poll <a href="http://imap.gmail.com" class="">imap.gmail.com</a> proto IMAP user "<a href="mailto:example@example.com" class="">example@example.com</a>" with pass "example1234" no idle ssl mda "/opt/rt4/bin/rt-mailgate --url <a href="https://requesttracker.example.com" class="">https://requesttracker.example.com</a> --queue General --action correspond"</font></div><div class=""><br class=""></div><div class="">To get fancier you could use the +queue part of the email and have Gmail put it in specific imap folders and then have the fetchmail configs go into different queues based on the imap folder by adding something like <font face="Courier" class="">folder "queueName"</font> to the above line.</div><div class=""><br class=""></div><div class="">For the no permission error, is it possible that the sending email address in the test is a disabled user in RT? I've had that happen before. Overall that sounds more like a permissions issue to the user or queue rather than an issue with fetchmail or rt-mailgate.</div><div class=""><br class=""></div><div class="">Aaron</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 5, 2016, at 12:47 PM, Alex Hall <<a href="mailto:ahall@autodist.com" class="">ahall@autodist.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">One more follow-up. Now that I have fetchmail working (my cron job question still applies) what do I use for the username? I got "no permission to create tickets in queue 'General'" when I tried to use email creation. Good, because it's picking up emails correctly, but bad, because I'm not sure who lacks the permission. I'm guessing either the user set in the fetchmailrc file, or my email address? If the former, to what do I set the value? If the latter, how do I allow users to create tickets via email automatically? Thanks.<br class=""></div><div class="gmail_extra" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""><div class="gmail_quote">On Mon, Sep 5, 2016 at 1:52 PM, Alex Hall<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:ahall@autodist.com" target="_blank" class="">ahall@autodist.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class="">Thanks for the answers. I'm happy, and a bit surprised, to say that I have my test RT instance sending out emails on ticket creation/activity using postfix. It's not a GUI like OSTicket is, but this took far less time to get working. Indeed, the more I use RT, the happier I am that I switched to it.<br class=""><br class=""></div>Anyway, I have a fetchmail question. I have to make the configuration file for fetchmail, which I've done successfully. Testing with that file, fetchmail works. I got the file syntax/setup from here:<br class=""><a href="https://help.ubuntu.com/community/GmailPostfixFetchmail" target="_blank" class="">https://help.ubuntu.com/<wbr class="">community/<wbr class="">GmailPostfixFetchmail</a><br class=""><br class=""></div>However, the RT fetchmailrc file the wiki says to use looks very, very different:<br class=""><a href="https://rt-wiki.bestpractical.com/wiki/Fetchmail" target="_blank" class="">https://rt-wiki.bestpractical.<wbr class="">com/wiki/Fetchmail</a><br class=""><br class=""></div>For one thing, there's no interval, so how does fetchmail know to poll every few minutes? Do I call fetchmail /path/to/myfetchmailrc as a cron job?<br class=""><br class=""></div>Second, there seems to be a lot of repetition. For instance, is there any way to store my RT URL and domain as variables, so I could just do<br class=""></div>username someAddress@$domain url $myURL<br class=""></div>and so on? This isn't a big deal, but the programmer in me cringes at the re-use of what should be a static string. Thanks in advance. Oh, if there are any reasons to use getmail instead, please let me know. I just found more resources that use fetchmail, and fetchmail doesn't need to be compiled as getmail seems to, so fetchmail won. I'm not at all opposed to switching if I should, though.<br class=""></div><div class="gmail_extra"><div class=""><div class="h5"><br class=""><div class="gmail_quote">On Sun, Sep 4, 2016 at 6:09 PM, Chris McClement<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:chrisis@bosberaad.com" target="_blank" class="">chrisis@bosberaad.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div dir="ltr" class="">You don't need to setup your own mail server, you can just use Gmail. There are two components to it:<div class=""><br class=""></div><div class="">- sending mail via gmail from RT</div><div class="">- fetching mail from gmail and inserting it into RT queues</div><div class=""><br class=""></div><div class="">For sending mail via gmail from RT, start here: <a href="http://serverfault.com/questions/204216/how-to-make-request-tracker-use-an-external-smtp-mail-server" target="_blank" class="">http://serverfault.com/q<wbr class="">uestions/204216/how-to-make-re<wbr class="">quest-tracker-use-an-external-<wbr class="">smtp-mail-server</a>. The answer to that thread links to how-tos.</div><div class=""><br class=""></div><div class="">For fetching mail and inserting it into RT queues, you first need to install either fetchmail or getmail (I use getmail), configure it to collect mail from the gmail inbox allocated to the queue, and then hand off mail it collects to rt-mailgate. rt-mailgate's arguments direct mail to the relevant queues.</div></div><br class=""><div class="gmail_quote"><div class=""><div class=""><div dir="ltr" class="">On Mon, 5 Sep 2016 at 02:30 Alex Hall <<a href="mailto:ahall@autodist.com" target="_blank" class="">ahall@autodist.com</a>> wrote:<br class=""></div></div></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div class=""><div class=""><div dir="auto" class=""><div class=""><div style="direction: inherit;" class="">Hi list,</div><div style="direction: inherit;" class="">I've never set up or run a mail server before, but I need to get email working with RT. We use Gmail Apps at work, so everyone has an email address. Right now,<span class="Apple-converted-space"> </span><a href="mailto:tickets@domain.com" target="_blank" class="">tickets@domain.com</a><span class="Apple-converted-space"> </span>is our ticket one, and I'll use<span class="Apple-converted-space"> </span><a href="mailto:tickets+queueName@domain.com" target="_blank" class="">tickets+queueName@domain.com</a><span class="Apple-converted-space"> </span>for email ticket creation.</div><div style="direction: inherit;" class=""><br class=""></div><div style="direction: inherit;" class="">What I'm wondering is which is the best mail server to use on the Debian 8 server that hosts RT? FastMail seems popular, but will it be best suited to Gmail, which requires encryption? Is there a better one? Any other notes on doing this I should know? Thanks in advance. </div><br class="">Sent from my iPhone</div></div></div></div>---------<br class="">RT 4.4 and RTIR training sessions, and a new workshop day!<span class="Apple-converted-space"> </span><a href="https://bestpractical.com/training" rel="noreferrer" target="_blank" class="">https://bestpractical.com/trai<wbr class="">ning</a><br class="">* Boston - October 24-26<br class="">* Los Angeles - Q1 2017</blockquote></div></blockquote></div><br class=""><br clear="all" class=""><br class=""></div></div><span class="HOEnZb"><font color="#888888" class="">--<span class="Apple-converted-space"> </span><br class=""><div data-smartmail="gmail_signature" class=""><div dir="ltr" class=""><div class=""><div class="">Alex Hall<br class=""></div>Automatic Distributors, IT department<br class=""></div><a href="mailto:ahall@autodist.com" target="_blank" class="">ahall@autodist.com</a><br class=""></div></div></font></span></div></blockquote></div><br class=""><br clear="all" class=""><br class="">--<span class="Apple-converted-space"> </span><br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div class="">Alex Hall<br class=""></div>Automatic Distributors, IT department<br class=""></div><a href="mailto:ahall@autodist.com" target="_blank" class="">ahall@autodist.com</a><br class=""></div></div></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">---------</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">RT 4.4 and RTIR training sessions, and a new workshop day!<span class="Apple-converted-space"> </span></span><a href="https://bestpractical.com/training" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://bestpractical.com/training</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">* Boston - October 24-26</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">* Los Angeles - Q1 2017</span></div></blockquote></div><br class=""></div></body></html>