Koozali.org: home of the SME Server

FREEPOPS installation help?

DevoDave

FREEPOPS installation help?
« on: January 30, 2007, 11:28:04 PM »
FREEPOPS appears to be a solution to allow a linux server to retrieve email from Hotmail.

http://www.freepops.org/en/

Unfortunately, I'm an utter newb at linux and if I start to poke around I'm sure I'll stuff everything.

Has someone installed this beastie on SME 7.1?  Is there simple instructions available?

Offline svangool

  • ****
  • 73
  • +0/-0
FREEPOPS installation help?
« Reply #1 on: February 01, 2007, 11:06:10 AM »
Quote
Has someone installed this beastie on SME 7.1?

Yes (works on 7.0 and 7.1) and I am very satisfied with it, I use it to retrieve mails from my hotmail accounts.
Quote
Is there simple instructions available?

I leave it to you if the instructions below are simple:

How to install freepops on SME 7.1
First you must install the fetchmail contrib: http://www.schirrms.net/sme/SMEFetchMail.php
It might be that you need to consider what is stated here (but first try without): http://forums.contribs.org/index.php?topic=35228.0
Get this correctly working with a normal pop3-account before doing anything else.

Then:
Code: [Select]
#wget http://www.homit.nl/freepops/freepops-0.0.99-1-no-rpm-helper.i386.rpm
#yum localinstall freepops-0.0.99-1-no-rpm-helper.i386.rpm
#ls /etc/e-smith/templates-custom/etc/fetchmail/

The original RPM comes from Enrico Tassi and can be found here:
http://rpmfind.net/linux/RPM/sourceforge/f/fr/freepops/freepops-0.0.99-1.i386.html
But it kept asking for RPM-Helper which freepops doesn't need, so I modified it a little bit.
If the last command doesn't show a 90fetchmail file then:
Code: [Select]
#cp /etc/e-smith/templates/etc/fetchmail/90fetchmail /etc/e-smith/templates-custom/etc/fetchmail/
then:
Code: [Select]
#pico /etc/e-smith/templates-custom/etc/fetchmail/90fetchmail
Search for this piece of code:
Code: [Select]
$OUT .= "#\n";
$OUT .= "#   Mail N$i Account for : $comment\n";
$OUT .= $staticvalue;
$OUT .= "poll $mserv with proto $mtype$dnstyp user '" ;

Insert following line (replace the <domain.tld> with your own domain) just above that:
Code: [Select]
if ( $mserv eq "domain.tld") {$mserv="domain.tld port 2000";}
Save the file and exit pico.

Then, to enable this:
Code: [Select]
#/sbin/e-smith/expand-template /etc/fetchmail
To have freepops enabled and started on boot:
Code: [Select]
#config set freepops service status enabled
#ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S91freepops

Start freepops:
Code: [Select]
#/etc/rc.d/init.d/freepops start

Configure fetchmail with the e-mail you want to retrieve with freepops.
Put your server domain.tld as incoming mail server and put the full e-mail address and password in for the accounts you wish to retrieve.

I'm doing this out of the top of my head so I might have missed something, please test.

Success!
......

DevoDave

FREEPOPS installation help?
« Reply #2 on: February 22, 2007, 10:46:15 PM »
Managed to get fetchmail going.

However when I yum install freepops I get heaps of these..

Code: [Select]
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 237, <LEXIN> line 155.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 237, <LEXIN> line 164.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 237, <LEXIN> line 181.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 237, <LEXIN> line 184.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 237, <LEXIN> line 187.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 237, <LEXIN> line 200.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 237, <LEXIN> line 225.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.


(There are more.. these are a sample)

Is this normal?

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
FREEPOPS installation help?
« Reply #3 on: February 22, 2007, 10:49:43 PM »
Yes and no. Search the forum a little. And a few open posts on bugtracker. FormMagick is the key word.
"It should just work" if it doesn't report it. Thanks!

DevoDave

FREEPOPS installation help?
« Reply #4 on: February 22, 2007, 11:07:38 PM »
Okay... I pressed onward ignoring the FORMMAGICK bunk.

I had to create the /etc/e-smith/templates/etc/fetchmail directory manually.

Code: [Select]
[root@server etc]# cp /etc/e-smith/templates/etc/fetchmail/90fetchmail /etc/e-smith/templates-custom/etc/fetchmail/
[root@server etc]# pico /etc/e-smith/templates-custom/etc/fetchmail/90fetchmail
[root@server etc]# /sbin/e-smith/expand-template /etc/fetchmail
[root@server etc]# config set freepops service status enabled
[root@server etc]# ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S91freepops
[root@server etc]# /etc/rc.d/init.d/freepops start
Starting FreePOPs Service :/usr/bin/freepopsd: error while loading shared libraries: libcurl-gnutls.so.3: cannot open shared object file: No such file or directory
                                                           [FAILED]


So I obviosly need to install libcurl?  (Any hints on how appreciated!)

Offline svangool

  • ****
  • 73
  • +0/-0
FREEPOPS installation help?
« Reply #5 on: February 22, 2007, 11:26:12 PM »
Oops forgot, make following symlinks by:

Code: [Select]
cd /usr/lib
ln -s /usr/lib/libcurl.so.3.0.0 libcurl-gnutls.so.3
ln -s /usr/lib/libcurl.so.3.0.0 libcurl.so.3


And try again.
Success!
......

DevoDave

FREEPOPS installation help?
« Reply #6 on: February 22, 2007, 11:35:12 PM »
Code: [Select]
[root@server etc]# cd /usr/lib
[root@server lib]# ln -s /usr/lib/libcurl.so.3.0.0 libcurl-gnutls.so.3
[root@server lib]# ln -s /usr/lib/libcurl.so.3.0.0 libcurl.so.3
ln: `libcurl.so.3': File exists
[root@server lib]# /etc/rc.d/init.d/freepops start
Starting FreePOPs Service :/usr/bin/freepopsd: /usr/lib/libcurl-gnutls.so.3: no version information available (required by /usr/bin/freepopsd)
                                                           [  OK  ]
[root@server lib]#


It's going now...

Now to see if Freepops will grab my hotmail messages!

DevoDave

FREEPOPS installation help?
« Reply #7 on: February 23, 2007, 07:18:39 AM »
svangool...

Could you possibly expand on how to configure freepops?

I have it running (I hope) and I have manually uploaded the hotmail plugin into the /etc/freepops directory (is this right?).

(Note the error message when I start freepops regarding the version number... should I be concerned?  Is it really running?)

Now.. you are saying I need to configure SME server from the Mail Retrieval tab to somehow point to my hotmail account?

Code: [Select]
Name or IP Address of the external mail server   ??? live.hotmail.com?
Protocol to use when reading mails   (Imap/Pop) ????
The user account name on the mail server   myemail@hotmail.com?
The user account password on the mail server  mypassword?



Your assistance is appreciated! :wink:

Offline svangool

  • ****
  • 73
  • +0/-0
FREEPOPS installation help?
« Reply #8 on: February 23, 2007, 08:34:37 AM »
You are right, I took the latest hotmail.lua from http://www.freepops.org and did put it in the /usr/share/freepops/lua/ directory.
I only have config.lua in /etc/freepops and I did not change that file

Did you do all the things with fetchmail at the top of this thread?
Meanwhile I'm using the latest version for 7.1 (yum update) together with Gordon's work-around explained by William_syd in this thread:  
http://forums.contribs.org/index.php?topic=35228.0

Then, go to your "server-manager":
- Enter "mail-retrieval"
- Enable at least option 1, 2 and 5
- "create" a fetchmail-action for the user you desire
- Enter e.g. "No", "No", "retrieve all mails" (rest empty)
- "Next"
- For a new "hotmail" account: your servername <domain.tld>, Pop, hotmail email-addres, hotmail password
- Validate changes
- That should be it

Alter schedule if needed by the advise given when you enter "mail-retrieval".
......

DevoDave

FREEPOPS installation help?
« Reply #9 on: February 24, 2007, 10:30:31 PM »
All working well now...

Only remaining issue is that hotmail is undergoing some changes at the moment, and the plugin for freepops is being updated quite frequently.

(I had to get the 1.61k version of the hotmail plugin... there is a link to it from a hotmail discussion in the freepops forum)

Thanks for all your help.

Offline mmellon

  • ***
  • 41
  • +0/-0
working 2008? v0.2.6 RPM?.. Re: FREEPOPS installation help?
« Reply #10 on: March 02, 2008, 05:01:17 PM »
Hello,

Does anyone have this working in SME 7.3?  It seems that many of the new lua plugins require 0.2 and up, especially that for hotmail.

If you have it working, did you have to compile it or did you find an RPM somewhere?  The only EL4 RPMs I have found are 0.0.99.

Thanks,

--Matt

Offline svangool

  • ****
  • 73
  • +0/-0
Re: FREEPOPS installation help?
« Reply #11 on: March 03, 2008, 12:58:43 AM »
Hi Matt,

I have freepops 0.2.6 working since the beginning of January on 7.3 and yes I compiled it, I don't have an rpm package. But once you set up the SME dev environment for compiling, it is straight forward (and don't forget to remove the dev compile environment afterwards).

Sjef.
......