Fetchmail errors trying to retrieve from pop3

Hi rt-users!

So, I got my earlier Perl dependency woes worked out thanks to Stephen
Alexander on this board.

I’ve got RT 4.0.5 successfully installed and running on example.com (just
the root, no /rt)

I’m trying to setup mail now. I’ve got an external pop3 server that I’m
attempting to use fetchmail to grab mail from and pipe it into RT.

Fetchmail is installed and running. I’ve verified that both
support@example.com and support-comment@example.com have the correct
credentials corresponding to my fetchmailrc file (which is listed below).

When looking at my fetchmail logs, however, it shows the following errors:

fetchmail: Authorization failure on support-comment@example.com
fetchmail: Query status=3 (AUTHFAIL)
fetchmail: Authorization failure on support@example.com
sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied
fetchmail: MDA returned nonzero status 126
fetchmail: Query status=3 (AUTHFAIL)

Any ideas? Thanks in advance.

FETCHMAILRC
set daemon 60
set invisible
set no bouncemail
set no syslog
set logfile /var/log/fetchmail.log
#support@example.com
poll pop.example.com protocol pop3 username “support” password
“nottelling” mda “/root/rt-4.0.5/bin/rt-mailgate --queue support --action
correspond --url http://www.example.com” no keep

#support-comment@example.com
poll pop.example.com protocol pop3 username “support-comment” password
“nottelling” mda “/root/rt-4.0.5/bin/rt-mailgate --queue support --action
comment --url http://www.example.com” no keep

I think I saw something about this before.

/poll pop.example.com http://pop.example.com protocol pop3 username
‘support’ password ‘nottelling’ mda “/root/rt-4.0.5/bin/rt-mailgate
–queue support --action correspond --url http://www.example.com” no keep/

If I remember correctly, it had to be single quotes (') and not doubles
(") around the username and password.

and your server will auth without the full email as the username?

-MattOn 04/26/2012 12:47 PM, Scott Sjodin wrote:

Hi rt-users!

So, I got my earlier Perl dependency woes worked out thanks to Stephen
Alexander on this board.

I’ve got RT 4.0.5 successfully installed and running on example.com
http://example.com (just the root, no /rt)

I’m trying to setup mail now. I’ve got an external pop3 server that
I’m attempting to use fetchmail to grab mail from and pipe it into RT.

Fetchmail is installed and running. I’ve verified that both
support@example.com mailto:support@example.com and
support-comment@example.com mailto:support-comment@example.com have
the correct credentials corresponding to my fetchmailrc file (which is
listed below).

When looking at my fetchmail logs, however, it shows the following errors:

/fetchmail: Authorization failure on support-comment@example.com
mailto:support-comment@example.com/
/fetchmail: Query status=3 (AUTHFAIL)/
/fetchmail: Authorization failure on support@example.com
mailto:support@example.com/
/sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied/
/fetchmail: MDA returned nonzero status 126/
/fetchmail: Query status=3 (AUTHFAIL)/

Any ideas? Thanks in advance.

/FETCHMAILRC/
/
/
/set daemon 60/
/set invisible/
/set no bouncemail/
/set no syslog/
/set logfile /var/log/fetchmail.log/
/
/
/#support@example.com mailto:support@example.com/
/
/
/poll pop.example.com http://pop.example.com protocol pop3 username
“support” password “nottelling” mda “/root/rt-4.0.5/bin/rt-mailgate
–queue support --action correspond --url http://www.example.com” no keep/
/
/
/#support-comment@example.com mailto:support-comment@example.com/
/
/
/poll pop.example.com http://pop.example.com protocol pop3 username
“support-comment” password “nottelling” mda
“/root/rt-4.0.5/bin/rt-mailgate --queue support --action comment --url
http://www.example.com” no keep/

Matt,

Thanks for the reply. You were right on the full e-mail as username. Once I
changed that in the fetchmailrc file I got an update, but still with errors
in the log:

fetchmail: starting fetchmail 6.3.18 daemon
*fetchmail: 3 messages for support@example.com at
pop.yourpopserver.com(13002 octets).
sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied
*fetchmail: reading message
support@example.com@xx.xxx.xx.xx.static.xx.net:1of 3 (9017 octets)
(log message incomplete)
fetchmail: error writing message text
fetchmail: MDA error while fetching from support@example.com@
pop.yourpopserver.com

*fetchmail: Query status=6 (IOERR)*On Fri, Apr 27, 2012 at 12:32 AM, 20/20 Lab lab@pacbell.net wrote:

I think I saw something about this before.

poll pop.example.com protocol pop3 username ‘support’ password
‘nottelling’ mda “/root/rt-4.0.5/bin/rt-mailgate --queue support --action
correspond --url http://www.example.com” no keep

If I remember correctly, it had to be single quotes (') and not doubles
(") around the username and password.

and your server will auth without the full email as the username?

-Matt

On 04/26/2012 12:47 PM, Scott Sjodin wrote:

Hi rt-users!

So, I got my earlier Perl dependency woes worked out thanks to Stephen
Alexander on this board.

I’ve got RT 4.0.5 successfully installed and running on example.com(just the root, no /rt)

I’m trying to setup mail now. I’ve got an external pop3 server that I’m
attempting to use fetchmail to grab mail from and pipe it into RT.

Fetchmail is installed and running. I’ve verified that both
support@example.com and support-comment@example.com have the correct
credentials corresponding to my fetchmailrc file (which is listed below).

When looking at my fetchmail logs, however, it shows the following
errors:

fetchmail: Authorization failure on support-comment@example.com
fetchmail: Query status=3 (AUTHFAIL)
fetchmail: Authorization failure on support@example.com
sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied
fetchmail: MDA returned nonzero status 126
fetchmail: Query status=3 (AUTHFAIL)

Any ideas? Thanks in advance.

FETCHMAILRC
*
*
set daemon 60
set invisible
set no bouncemail
set no syslog
set logfile /var/log/fetchmail.log
*
*
#support@example.com
*
*
poll pop.example.com protocol pop3 username “support” password
“nottelling” mda “/root/rt-4.0.5/bin/rt-mailgate --queue support --action
correspond --url http://www.example.com” no keep

*
*
#support-comment@example.com
*
*
poll pop.example.com protocol pop3 username “support-comment” password
“nottelling” mda “/root/rt-4.0.5/bin/rt-mailgate --queue support --action
comment --url http://www.example.com” no keep

sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied

Is your rt-mailgate executable by the user running fetchmail?

-kevin

Root (I know, I know) is running fetchmail. when I do an ls- l this is what
I get:

-rwxr-xr-- 1 root root 16542 2012-04-23 03:00 /root/rt-4.0.5/bin/rt-mailgate

My output for ls -l ofOn Fri, Apr 27, 2012 at 1:34 AM, Kevin Falcone falcone@bestpractical.comwrote:

On Fri, Apr 27, 2012 at 01:25:45AM +0400, Scott Sjodin wrote:

sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied

Is your rt-mailgate executable by the user running fetchmail?

-kevin

Root (I know, I know) is running fetchmail. when I do an ls- l this is
what I get:

-rwxr-xr-- 1 root root 16542 2012-04-23 03:00
/root/rt-4.0.5/bin/rt-mailgate

My output for ls -l of

>    sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied

Is your rt-mailgate executable by the user running fetchmail?

-kevin

Shouldnt that be -rwxr-xr-x root rt … … … …? Thats how mine
is set. I have fetchmail in the crontab under an underprivied user
belonging to the rt group.

Hope this helps.

-Matt

Matt,

I’m sort of a linux n00b, so please excuse my ignorance…how do I set the
extra attribute you have and I don’t?

ThanksOn Fri, Apr 27, 2012 at 1:58 AM, 20/20 Lab lab@pacbell.net wrote:

On 04/26/2012 2:39 PM, Scott Sjodin wrote:

Root (I know, I know) is running fetchmail. when I do an ls- l this is
what I get:

-rwxr-xr-- 1 root root 16542 2012-04-23 03:00
/root/rt-4.0.5/bin/rt-mailgate

My output for ls -l of

On Fri, Apr 27, 2012 at 1:34 AM, Kevin Falcone falcone@bestpractical.comwrote:

On Fri, Apr 27, 2012 at 01:25:45AM +0400, Scott Sjodin wrote:

sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied

Is your rt-mailgate executable by the user running fetchmail?

-kevin

Shouldnt that be -rwxr-xr-x root rt … … … …? Thats how mine
is set. I have fetchmail in the crontab under an underprivied user
belonging to the rt group.

Hope this helps.

-Matt

sudo chmod 755 /root/rt-4.0.5/bin/rt-mailgate
or just ‘chmod 755 /root/rt-4.0.5/bin/rt-mailgate’ if your running your
shell as root (which I suspect you are ;p )

MattOn 04/26/2012 3:01 PM, Scott Sjodin wrote:

Matt,

I’m sort of a linux n00b, so please excuse my ignorance…how do I set
the extra attribute you have and I don’t?

Thanks

On Fri, Apr 27, 2012 at 1:58 AM, 20/20 Lab <lab@pacbell.net mailto:lab@pacbell.net> wrote:

On 04/26/2012 2:39 PM, Scott Sjodin wrote:
Root (I know, I know) is running fetchmail. when I do an ls- l
this is what I get:

-rwxr-xr-- 1 root root 16542 2012-04-23 03:00
/root/rt-4.0.5/bin/rt-mailgate

My output for ls -l of

On Fri, Apr 27, 2012 at 1:34 AM, Kevin Falcone <falcone@bestpractical.com <mailto:falcone@bestpractical.com>> wrote:

    On Fri, Apr 27, 2012 at 01:25:45AM +0400, Scott Sjodin wrote:
    >    sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied

    Is your rt-mailgate executable by the user running fetchmail?

    -kevin
Shouldnt that be -rwxr-xr-x root rt ... ... ... .....?  Thats how
mine is set.  I have fetchmail in the crontab under an
underprivied user belonging to the rt group.

Hope this helps.

-Matt

Matt,

After changing (and confirming the change) of the attributes, I’m still
getting the same error:

fetchmail: starting fetchmail 6.3.18 daemon
fetchmail: 3 messages for support@example.com at
pop.yourpopserver.com(13002 octets).
sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied
fetchmail: reading message
support@example.com@xx.xxx.xx.xx.static.xx.net:1of 3 (9017 octets)
(log message incomplete)
fetchmail: error writing message text
fetchmail: MDA error while fetching from support@example.com@
pop.yourpopserver.com
fetchmail: Query status=6 (IOERR)On Fri, Apr 27, 2012 at 2:07 AM, 20/20 Lab lab@pacbell.net wrote:

sudo chmod 755 /root/rt-4.0.5/bin/rt-mailgate
or just ‘chmod 755 /root/rt-4.0.5/bin/rt-mailgate’ if your running your
shell as root (which I suspect you are ;p )

Matt

On 04/26/2012 3:01 PM, Scott Sjodin wrote:

Matt,

I’m sort of a linux n00b, so please excuse my ignorance…how do I set
the extra attribute you have and I don’t?

Thanks

On Fri, Apr 27, 2012 at 1:58 AM, 20/20 Lab lab@pacbell.net wrote:

On 04/26/2012 2:39 PM, Scott Sjodin wrote:

Root (I know, I know) is running fetchmail. when I do an ls- l this is
what I get:

-rwxr-xr-- 1 root root 16542 2012-04-23 03:00
/root/rt-4.0.5/bin/rt-mailgate

My output for ls -l of

On Fri, Apr 27, 2012 at 1:34 AM, Kevin Falcone <falcone@bestpractical.com wrote:

On Fri, Apr 27, 2012 at 01:25:45AM +0400, Scott Sjodin wrote:

sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied

Is your rt-mailgate executable by the user running fetchmail?

-kevin

Shouldnt that be -rwxr-xr-x root rt … … … …? Thats how mine
is set. I have fetchmail in the crontab under an underprivied user
belonging to the rt group.

Hope this helps.

-Matt

[SOLVED]

So after changing the username on the script (resolving the AUTH error) I
was still left with the permissions error. I moved my rt directory OUT of
the root folder and into opt/rt and low and behold it started flowing mail
into RT. Thank you so much for all the help, this is a great list and
wonderful community. Also appreciate it for not making me feel too dumb :)On Fri, Apr 27, 2012 at 2:17 AM, Scott Sjodin scott.sjodin@gmail.comwrote:

Matt,

After changing (and confirming the change) of the attributes, I’m still
getting the same error:

fetchmail: starting fetchmail 6.3.18 daemon
fetchmail: 3 messages for support@example.com at pop.yourpopserver.com(13002 octets).
sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied
fetchmail: reading message support@example.com@
xx.xxx.xx.xx.static.xx.net:1 of 3 (9017 octets) (log message incomplete)
fetchmail: error writing message text
fetchmail: MDA error while fetching from support@example.com@
pop.yourpopserver.com
fetchmail: Query status=6 (IOERR)

On Fri, Apr 27, 2012 at 2:07 AM, 20/20 Lab lab@pacbell.net wrote:

sudo chmod 755 /root/rt-4.0.5/bin/rt-mailgate
or just ‘chmod 755 /root/rt-4.0.5/bin/rt-mailgate’ if your running your
shell as root (which I suspect you are ;p )

Matt

On 04/26/2012 3:01 PM, Scott Sjodin wrote:

Matt,

I’m sort of a linux n00b, so please excuse my ignorance…how do I set
the extra attribute you have and I don’t?

Thanks

On Fri, Apr 27, 2012 at 1:58 AM, 20/20 Lab lab@pacbell.net wrote:

On 04/26/2012 2:39 PM, Scott Sjodin wrote:

Root (I know, I know) is running fetchmail. when I do an ls- l this is
what I get:

-rwxr-xr-- 1 root root 16542 2012-04-23 03:00
/root/rt-4.0.5/bin/rt-mailgate

My output for ls -l of

On Fri, Apr 27, 2012 at 1:34 AM, Kevin Falcone < falcone@bestpractical.com> wrote:

On Fri, Apr 27, 2012 at 01:25:45AM +0400, Scott Sjodin wrote:

sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied

Is your rt-mailgate executable by the user running fetchmail?

-kevin

Shouldnt that be -rwxr-xr-x root rt … … … …? Thats how
mine is set. I have fetchmail in the crontab under an underprivied user
belonging to the rt group.

Hope this helps.

-Matt