Koozali.org: home of the SME Server

fetchmail problems

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
fetchmail problems
« on: July 22, 2005, 12:25:54 AM »
when i run
/sbin/e-smith/db configuration setprop fetchmail status=enabled

i get this
/sbin/e-smith/db dbfile setprop key prop1 val1 [prop2 val2] [prop3 val3] ...

what does this mean and how do i get fetchmail t work properly again ??

when i enable it from the server-manager under the mail retrieval, i get cron mails constantly telling me i have  another session running in the foreground

any help is greatly appreciated
thanks
KaiNeR  :pint: ......

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
fetchmail problems
« Reply #1 on: July 22, 2005, 10:10:59 PM »
i also have 2 pop accounts configured in the 'mail retrieval' section on the server-manager and i'm also gettings this error every 5 mins

fetchmail: lock creation failed.

please can someone help, thanks
KaiNeR  :pint: ......

Offline raem

  • *
  • 3,972
  • +4/-0
Re: fetchmail problems
« Reply #2 on: July 23, 2005, 01:58:33 PM »
KaiNeR

Leave out the = sign

do
/sbin/e-smith/db configuration setprop fetchmail status enabled

 
> /sbin/e-smith/db dbfile setprop key prop1 val1
> [prop2 val2] [prop3 val3] ...

That's prompting you for the correct input and showing what is expected (notice there are no equal signs)
...

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
Re: fetchmail problems
« Reply #3 on: July 23, 2005, 02:12:46 PM »
Quote from: "RayMitchell"
KaiNeR

Leave out the = sign

do
/sbin/e-smith/db configuration setprop fetchmail status enabled

 
> /sbin/e-smith/db dbfile setprop key prop1 val1
> [prop2 val2] [prop3 val3] ...

That's prompting you for the correct input and showing what is expected (notice there are no equal signs)


thanks dude that seemed to get it enabled, but now i'm getting this

fetchmail: lock creation failed.

what do i do to ressolve this ?

thanks, Dave
KaiNeR  :pint: ......

Offline raem

  • *
  • 3,972
  • +4/-0
fetchmail problems
« Reply #4 on: July 23, 2005, 02:23:58 PM »
I'm not 100% sure but you probably need to do a

/sbin/e-smith/signal-event email-update

after that

I thought the Fetchmail contrib adds a nice server manager panel to configure it all (I don't use it), so why are you playing with the command prompt ??
...

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
fetchmail problems
« Reply #5 on: July 23, 2005, 03:04:49 PM »
Quote from: "RayMitchell"
I'm not 100% sure but you probably need to do a

/sbin/e-smith/signal-event email-update

after that

I thought the Fetchmail contrib adds a nice server manager panel to configure it all (I don't use it), so why are you playing with the command prompt ??


i had fetchmail all setup and working ok, but was recieving alot of message logs from fetchmail giving errors. I never had any of the logging or verbose options enabled in the server-manager panel for fetchmail, so i enabled the --silent option from the comman line and that still didnt work.

So i removed all the fetchmail accounts i'd previously setup apart from 1 and try reading through the logs to find the source of the problem, but still no joy.

so i decided to uninstall fetchmail with rpm -e
then reinstalled using rpm -Uvh

this still didnt work, now for every account i have setup i recieved the same error

fetchmail: lock creation failed.

i have tried what you said in your last post
/sbin/e-smith/signal-event email-update

then i rebooted the server, but i'm still recieving those same errors, i'm nearly ready to start backing up all and reinstall the whole thing, but i think that may cause me even more grief as the server is very heavily modded.

i just wish there was a way to completely remove all traces of fetchmail and then reinstall it.

thanks, Dave
KaiNeR  :pint: ......

Offline raem

  • *
  • 3,972
  • +4/-0
fetchmail problems
« Reply #6 on: July 24, 2005, 04:23:24 AM »
KaiNeR

>...i had fetchmail all setup and working ok, but
> was receiving a lot of message logs from fetchmail > giving errors.

Maybe it's too late now, but that's the real problem you should be reporting here. If you give some of those errors perhaps others can help.

If you re-add all the fetchmail users/accounts can you get your system back to the "working but with errors" state ? Then report some of the error messages exactly.
...

Offline raem

  • *
  • 3,972
  • +4/-0
fetchmail problems
« Reply #7 on: July 24, 2005, 12:41:52 PM »
...

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
fetchmail problems
« Reply #8 on: July 24, 2005, 03:12:10 PM »
Quote from: "RayMitchell"
KaiNeR

>...i had fetchmail all setup and working ok, but
> was receiving a lot of message logs from fetchmail > giving errors.

Maybe it's too late now, but that's the real problem you should be reporting here. If you give some of those errors perhaps others can help.

If you re-add all the fetchmail users/accounts can you get your system back to the "working but with errors" state ? Then report some of the error messages exactly.


When i say that i had fetchmail working ok i meant it was recieving pop mail from my external pop servers ok.  
Now it isnt fetching anything at all. So i removed all the pop accounts aparts from one and enabled logging mode on that one so see what errors i would get.

and i'm still recieving this one error in my mail every 5 mins

fetchmail: lock creation failed.
KaiNeR  :pint: ......

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
fetchmail problems
« Reply #9 on: July 25, 2005, 04:32:01 AM »
it seems to fetch external mail ok if i just run it from the command line, so i guess its a problem with the   server-manager panel template some how ?
KaiNeR  :pint: ......

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
fetchmail problems
« Reply #10 on: July 25, 2005, 12:14:55 PM »
What about permissions ?

Code: [Select]
[root@teddy root]# ls -la /var/lock/
total 20
drwxrwxr-x    4 root     lock         4096 Jul 25 04:02 .
drwxr-xr-x   24 root     root         4096 Jan 11  2005 ..
drwxr-xr-x    2 qmailr   qmail        4096 Jul 25 20:10 fetchmail
drwxr-xr-x    2 root     root         4096 Jul 25 04:03 subsys
-rw-r--r--    1 root     root            4 Jul 13 19:07 sysmon
[root@teddy root]#



Regards,
William.
Regards,
William

IF I give advise.. It's only if it was me....

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
fetchmail problems
« Reply #11 on: July 25, 2005, 03:52:50 PM »
Quote from: "william_syd"
What about permissions ?

Code: [Select]
[root@teddy root]# ls -la /var/lock/
total 20
drwxrwxr-x    4 root     lock         4096 Jul 25 04:02 .
drwxr-xr-x   24 root     root         4096 Jan 11  2005 ..
drwxr-xr-x    2 qmailr   qmail        4096 Jul 25 20:10 fetchmail
drwxr-xr-x    2 root     root         4096 Jul 25 04:03 subsys
-rw-r--r--    1 root     root            4 Jul 13 19:07 sysmon
[root@teddy root]#



Regards,
William.


i think the permissions are ok, do they look ok to you ?

[root@p31000 root]# ls -la /var/lock/
total 16
drwxrwxr-x    4 root     lock         4096 Jul 25 14:45 .
drwxr-xr-x   23 root     root         4096 Jun 22 13:55 ..
drwxr-xr-x    2 root     root         4096 Jul 25 01:17 fetchmail
drwxr-xr-x    2 root     root         4096 Jul 25 14:41 subsys


i found the .pid file and deleted it to see if that would make any difference. i found it at
/root/.fetchmail.pid
KaiNeR  :pint: ......

Offline jackl

  • ****
  • 136
  • +0/-0
fetchmail problems
« Reply #12 on: July 26, 2005, 01:16:58 AM »
kainer,

Permissions are right but ownership is wrong.
fetchmail should be qmailr qmail not root root
Use chown or mc to correct ownership

Regards
Jackl
......

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
fetchmail problems
« Reply #13 on: July 26, 2005, 03:40:28 AM »
Hi dudes, thanks for all your help.

I have sort of fixed it.
I installed SME 6.0.1 on my spare laptop, then installed fetchmail contribs. then ssh'd into the laptop tar'd up the templates and templates-custom directories.

then copied them over to my server and just over written the fetchmail config files in the /etc/e-smith/templates/etc/fetchmail/* directory

and i'm happy to say that fetchmail is now recieving all my mails  :-D  but i'm still left with my 1st original problem of fetchmail sending me emails with (................) in the body of the mail every 15 mins  :hammer: .

at least i'm now recieving my mail. i'll have to try and get my head round this other issue when i  can understand what its actually doing.

Thanks for all the help guys and especially RayMitchell for being extremely patient.
KaiNeR  :pint: ......