Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

fetchmail errors trying to retrieve from pop3

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


scott.sjodin at gmail

Apr 26, 2012, 12:47 PM

Post #1 of 10 (939 views)
Permalink
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 [at] example and support-comment [at] example 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 [at] example*
*fetchmail: Query status=3 (AUTHFAIL)*
*fetchmail: Authorization failure on support [at] example*
*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 [at] example*
*
*
*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 [at] example*
*
*
*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*


lab at pacbell

Apr 26, 2012, 1:32 PM

Post #2 of 10 (887 views)
Permalink
Re: fetchmail errors trying to retrieve from pop3 [In reply to]

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?

-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
> <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 [at] example <mailto:support [at] example> and
> support-comment [at] example <mailto:support-comment [at] example> 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 [at] example
> <mailto:support-comment [at] example>/
> /fetchmail: Query status=3 (AUTHFAIL)/
> /fetchmail: Authorization failure on support [at] example
> <mailto:support [at] example>/
> /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 [at] example <mailto:support [at] example>/
> /
> /
> /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 [at] example <mailto:support-comment [at] example>/
> /
> /
> /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/


scott.sjodin at gmail

Apr 26, 2012, 2:25 PM

Post #3 of 10 (921 views)
Permalink
Re: fetchmail errors trying to retrieve from pop3 [In reply to]

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 [at] example at
pop.yourpopserver.com(13002 octets).
*
*sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied*
*fetchmail: reading message
support [at] example@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 [at] example@
pop.yourpopserver.com*
*fetchmail: Query status=6 (IOERR)*

On Fri, Apr 27, 2012 at 12:32 AM, 20/20 Lab <lab [at] pacbell> 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 [at] example and support-comment [at] example 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 [at] example*
> *fetchmail: Query status=3 (AUTHFAIL)*
> *fetchmail: Authorization failure on support [at] example*
> *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 [at] example*
> *
> *
> *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 [at] example*
> *
> *
> *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*
>
>
>


falcone at bestpractical

Apr 26, 2012, 2:34 PM

Post #4 of 10 (886 views)
Permalink
Re: fetchmail errors trying to retrieve from pop3 [In reply to]

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


scott.sjodin at gmail

Apr 26, 2012, 2:39 PM

Post #5 of 10 (888 views)
Permalink
Re: fetchmail errors trying to retrieve from pop3 [In reply to]

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 [at] bestpractical>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
>


lab at pacbell

Apr 26, 2012, 2:58 PM

Post #6 of 10 (887 views)
Permalink
Re: fetchmail errors trying to retrieve from pop3 [In reply to]

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 [at] bestpractical <mailto:falcone [at] bestpractical>> 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


scott.sjodin at gmail

Apr 26, 2012, 3:01 PM

Post #7 of 10 (885 views)
Permalink
Re: fetchmail errors trying to retrieve from pop3 [In reply to]

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 [at] pacbell> 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 [at] bestpractical>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
>
>


lab at pacbell

Apr 26, 2012, 3:07 PM

Post #8 of 10 (884 views)
Permalink
Re: fetchmail errors trying to retrieve from pop3 [In reply to]

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 [at] pacbell
> <mailto:lab [at] pacbell>> 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 [at] bestpractical <mailto:falcone [at] bestpractical>> 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
>
>


scott.sjodin at gmail

Apr 26, 2012, 3:17 PM

Post #9 of 10 (899 views)
Permalink
Re: fetchmail errors trying to retrieve from pop3 [In reply to]

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 [at] example at
pop.yourpopserver.com(13002 octets).
sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied
fetchmail: reading message
support [at] example@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 [at] example@
pop.yourpopserver.com
fetchmail: Query status=6 (IOERR)

On Fri, Apr 27, 2012 at 2:07 AM, 20/20 Lab <lab [at] pacbell> 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 [at] pacbell> 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 [at] bestpractical
>> > 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
>>
>>
>
>


scott.sjodin at gmail

Apr 26, 2012, 3:47 PM

Post #10 of 10 (887 views)
Permalink
Re: fetchmail errors trying to retrieve from pop3 [In reply to]

[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 [at] gmail>wrote:

> 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 [at] example at pop.yourpopserver.com(13002 octets).
> sh: /root/rt-4.0.5/bin/rt-mailgate: Permission denied
> fetchmail: reading message support [at] example@
> 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 [at] example@
> pop.yourpopserver.com
> fetchmail: Query status=6 (IOERR)
>
> On Fri, Apr 27, 2012 at 2:07 AM, 20/20 Lab <lab [at] pacbell> 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 [at] pacbell> 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 [at] bestpractical> 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
>>>
>>>
>>
>>
>

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.