Rt-mailgate requests from 127.0.1.1?

Setting up rt-mailgate, and was getting “403 Forbidden” errors. Checked
Apache logs, and request was coming from 127.0.1.1 instead of 0.1. If I
do a wget or w3m for the same /REST… address, it comes from 127.0.0.1
and works. Just a minor change to apache2-modperl from “Allow from
127.0.0.1” to “Allow from 127” and it’s fixed…

Can anyone tell me why requests from rt-mailgate would come from
127.0.1.1? Maybe it’s a Perl thing?
Nick Irvine
IT and Network Administrator
Artona Group

Setting up rt-mailgate, and was getting “403 Forbidden” errors.
Checked Apache logs, and request was coming from 127.0.1.1 instead
of 0.1. If I do a wget or w3m for the same /REST… address, it
comes from 127.0.0.1 and works. Just a minor change to
apache2-modperl from “Allow from 127.0.0.1” to “Allow from 127” and
it’s fixed…

Can anyone tell me why requests from rt-mailgate would come from
127.0.1.1? Maybe it’s a Perl thing?

Can you send your /etc/hosts?

Wow, you’re good:

127.0.0.1 localhost
127.0.1.1 hostname.domain.tld hostname

plus some IPv6 stuff

So RT prefers the FQDN to using localhost?

Nick Irvine
IT and Network Administrator
Artona GroupOn 04/01/10 12:38, Jesse Vincent wrote:

On Thu, Apr 01, 2010 at 11:23:47AM -0700, Nick Irvine wrote:

Setting up rt-mailgate, and was getting “403 Forbidden” errors.
Checked Apache logs, and request was coming from 127.0.1.1 instead
of 0.1. If I do a wget or w3m for the same /REST… address, it
comes from 127.0.0.1 and works. Just a minor change to
apache2-modperl from “Allow from 127.0.0.1” to “Allow from 127” and
it’s fixed…

Can anyone tell me why requests from rt-mailgate would come from
127.0.1.1? Maybe it’s a Perl thing?

Can you send your /etc/hosts?


Nick Irvine
IT and Network Administrator
Artona Group

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Wow, you’re good:

127.0.0.1 localhost
127.0.1.1 hostname.domain.tld hostname

plus some IPv6 stuff

So RT prefers the FQDN to using localhost?

Next up, what’s in /etc/aliases?

/etc/aliases

mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: administrator

But I’m using fetchmail actually:

#/etc/fetchmailrc
poll mail.domain.tld proto imap auth password
user helpdesk@domain.tld pass password mda “rt-mailgate --url
http://hostname/rt --queue General --action correspond”

Thanks,

Nick Irvine
IT and Network Administrator
Artona GroupOn 04/01/10 12:58, Jesse Vincent wrote:

On Thu, Apr 01, 2010 at 12:52:00PM -0700, Nick Irvine wrote:

Wow, you’re good:

127.0.0.1 localhost
127.0.1.1 hostname.domain.tld hostname

plus some IPv6 stuff

So RT prefers the FQDN to using localhost?

Next up, what’s in /etc/aliases?

Nick Irvine
IT and Network Administrator
Artona Group

On 04/01/10 12:38, Jesse Vincent wrote:

On Thu, Apr 01, 2010 at 11:23:47AM -0700, Nick Irvine wrote:

Setting up rt-mailgate, and was getting “403 Forbidden” errors.
Checked Apache logs, and request was coming from 127.0.1.1 instead
of 0.1. If I do a wget or w3m for the same /REST… address, it
comes from 127.0.0.1 and works. Just a minor change to
apache2-modperl from “Allow from 127.0.0.1” to “Allow from 127” and
it’s fixed…

Can anyone tell me why requests from rt-mailgate would come from
127.0.1.1? Maybe it’s a Perl thing?

Can you send your /etc/hosts?


Nick Irvine
IT and Network Administrator
Artona Group

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Can anyone tell me why requests from rt-mailgate would come from 127.0.1.1?

127.0.1.1 hostname.domain.tld hostname

poll mail.domain.tld proto imap auth password user helpdesk@domain.tld pass password mda “rt-mailgate --url http://hostname/rt --queue General --action correspond”

I presume it’s now obvious. :slight_smile:

Yeah, thanks!

Nick Irvine
IT and Network Administrator
Artona GroupOn 04/01/10 13:52, Jesse Vincent wrote:

On Thu, Apr 01, 2010 at 01:23:28PM -0700, Nick Irvine wrote:

Can anyone tell me why requests from rt-mailgate would come from 127.0.1.1?

127.0.1.1 hostname.domain.tld hostname

poll mail.domain.tld proto imap auth password user helpdesk@domain.tld pass password mda “rt-mailgate --url http://hostname/rt --queue General --action correspond”

I presume it’s now obvious. :slight_smile: