The Trouble Ticket Express needs to know URL of the script in order to generate proper links in email. This info is not available when processing incoming email because the script is being executed by mail daemon or cron process rather than a web server. This is why Trouble Ticket Express stores the URL in config file. The ttx.cgi maintains this info. I would suggest never accessing the ttx.cgi using your intranet URLs. That is always use
http://www.example.com, rather than
http://example or
http://10.0.0.1. You may also disable the URL auto update feature by patching the ttx.cgi, just remove lines that read
if ($cfg->get('httphost') ne $ENV{HTTP_HOST} || $cfg->get('scriptname') ne $ENV{SCRIPT_NAME}) {
$cfg->set('httphost', $ENV{HTTP_HOST});
$cfg->set('scriptname', $ENV{SCRIPT_NAME});
$cfg->save();
}