Koozali.org: home of the SME Server

SME 7 Beta 8&9 - Fetchmail config

weare

SME 7 Beta 8&9 - Fetchmail config
« on: December 31, 2005, 01:11:36 PM »
I've just done a fresh install of beta9 & everything is working fine except fetchmail

Do I need to configure anything to have fetchmail collect pop3 emails from multi-addresses at regular intervals?

I have configured the pop3 accounts for each user by logging in to their accounts via webmail & accessing the fetchmail settings via the options link, but the users have to manually tell fetchmail to pull down the mail.

I installed fetchmail manually after 2 previous sme installs, via this link http://sme.swerts-knudsen.dk/index.html?frame=http%3A//sme.swerts-knudsen.dk/howtos/howto_9.htm , and each time fetchmail collected the mail fine for a while then sme developed terminal problems & I had to re-install sme from scratch, & I lost a hdd, possibly from the amount of disk activity that was evident over the 2 days it was 'running' with issues. (webmail would issue the certificate, but no-one could login & it stopped letting me in via ssh, even though I was ssh'ing in to another box, then across to sme locally)

I'm assuming the problem centres around the fact that fetchmail is already installed & a re-install is causing problems.

Do I just need to create a cron job to kick fetchmail off for all users every 5 minutes or so, and if so could someone please give me the syntax of the command to use?

Thanks in advance

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SME 7 Beta 8&9 - Fetchmail config
« Reply #1 on: December 31, 2005, 05:10:36 PM »
Quote from: "weare"
I've just done a fresh install of beta9 & everything is working fine except fetchmail


If you find any problems with 7.0 test releases you should be reporting via the Bug Tracker rather than trying to discuss here.

weare

SME 7 Beta 8&9 - Fetchmail config
« Reply #2 on: December 31, 2005, 05:26:24 PM »
Thanks CharlieBrady - if I considered it a problem with sme7 I would have done that.

I considered it to be a problem at my end, and with the fact that I'd installed fetchmail when it was already installed.

Are you advising me I've proceeded correctly and this is in fact a bug?

I think you're incorrect & the problem was my end as I added a .fetchmailrc & a cronjob & all is now fine.

Thanks for your 'help'

If anyone else needs assistance to get fetchmail working I'm happy to assist, rather than fobbing you off with 'post in another forum' inanities like this clown

thefff-fr

SME 7 Beta 8&9 - Fetchmail config
« Reply #3 on: January 01, 2006, 03:03:23 PM »
Hello,

I'm using this http://www.schirrms.net/sme/SMEFetchMail.php on SME 7 Beta 8 and now with a beta 9 and it works great.

kenironside

Re: SME 7 Beta 8&9 - Fetchmail config
« Reply #4 on: January 05, 2006, 12:33:14 PM »
Quote from: "weare"
If anyone else needs assistance to get fetchmail working I'm happy to assist, rather than fobbing you off with 'post in another forum' inanities like this clown


I'm evaluating SME Server for a small office, in server-only configuration. I have installed 7beta9.

Each of four people have their own (real) email mailboxes on my ISP's mailserver. In order to collect mail for them I currently (on my present homebrew mailserver) call fetchmail four seperate times, once each for each mailbox. The mail is then passed on to qmail via SMTP port 25.

In SME Server, it seems that the equvalent functionality does not exist out of the box - there is either an SMTP option (for mail servers directly exposed to the internet) or fetchmail multidrop on one external mailbox.

If I am incorrect here, please set me right!

Am I correct in saying that the howto/contrib of Pascal Schirrmann on http://www.schirrms.net/sme/SMEFetchMail.php adresses this issue?

Is this the best solution to the problem or are there ather approaches?

Thank you for your help.

Ken

weare

Fetchmail - crontab for auto fetch & deliver
« Reply #5 on: January 12, 2006, 05:12:05 AM »
Hi kenironside,

All you need to do is add a .fetchmailrc text file to /root, edit it and insert the mail account details of all your users, then use cron to kick it off every 5 mins or so.

Here's a link to some info: http://people.cornell.edu/pages/jcb35/linux/.fetchmailrc

Here's a sample:
#       Sample .fetcmailrc file
#
poll some.server.com.au
        with protocol pop3
        username ted@some.server.com.au password tedspassword is ted
        username fred@some.server.com.au password fredspassword is fred
;

Here's the cron syntax for a 30 min pickup

# Pickup mail every 30 minutes
2,32 * * * * /usr/bin/fetchmail -s

the -s just tells fetchmail to run silently - if you leave it off & just run /usr/bin/fetchmail from the shell you'll see the mail being fetched & deposited in the user accounts

kenironside

SME 7 Beta 8&9 - Fetchmail config
« Reply #6 on: January 12, 2006, 06:31:02 AM »
Brilliant, thanks for making the time to reply. I'm getting the hang of this now!