Koozali.org: home of the SME Server

SME to POP3s download using SSL eg from Gmail - Experts only

lawz911

SME to POP3s download using SSL eg from Gmail - Experts only
« on: November 04, 2006, 06:09:16 PM »
How could SME7 be setup to POP3s (SSL), retrieving mail from an external mailbox to local SME user inbox :?:

I am able to Configure External Mailbox Retrieval (standard pop3) from mailbox at ISP which use non ssl, standard pop3 on port 110. Other users have accounts with eg. Gmail which uses pop3s port 995.

Anyone with knowledge on configuation of SME(Fetchmail) for pop3 mail retrieval with SSL, port 995 eg. from Gmail, please post.

SEE OPTION 1 & 2 BELOW (scroll down)

This seems to be a challenge - 6 posts & no fix.

Some of you may think "why download all mail with pop3?" The answer is, "please help, everyone is unfortunately not lucky to have a non-intermittent connection due to location. Use SME, because it is stable and very good with internal client IMAP connections".

Hope you are able to help soon... Thanks, your time is appreciated. :wink:

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
SME to POP3s download using SSL eg from Gmail - Experts only
« Reply #1 on: November 05, 2006, 10:36:59 AM »
Quote
pop.gmail.com
Use SSL: Yes
Port: 995


This would suggest that you need to use pop3s, configure your mail client accordingly.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

addodge

SME to POP3s download using SSL eg from Gmail - Experts only
« Reply #2 on: November 05, 2006, 02:07:39 PM »
You probably need to install the Fetchmail Contrib located here
http://no.longer.valid/phpwiki/index.php/SME7Contribs
I installed that and was able to have it go out and log into a pop3 account and forward that mail to a local sme account.  I then configured my outlook to use imap with the sme's ip as the server and it worked great.  The only thing you should have to play with it the intervals that it checks for new mail.
Have fun.
Andy

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
SME to POP3s download using SSL eg from Gmail - Experts only
« Reply #3 on: November 05, 2006, 04:02:01 PM »
Quote from: "addodge"
You probably need to install the Fetchmail Contrib located here


No. Mail from gmail can be downloaded directly via user's mail client.

lawz911

SME to POP3s (SSL)
« Reply #4 on: November 06, 2006, 06:03:44 AM »
:arrow: OPTION 2 :!:
Webmail (Horde) can be set to Fetchmail from a secure pop3s eg Gmail port 995. But it cannot automatic download emails not unless user logs in on webmail. Here is this issue using the Horde option: Clients connect to SME mailbox with email client IMAP, but receive no mail until they login with browser into webmail. This option is no good, not unless timing can be set to download automaticly.

Anyone that knows which file and how to set timing on interval (auto/scheduled) for pop mailbox check & dowload? :?:

lawz911

SME to download from POP3sPort 995
« Reply #5 on: November 06, 2006, 06:16:10 AM »
Quote from: "addodge"
I installed that and was able to have it go out and log into a pop3 account and forward that mail to a local sme account.
Andy

Andy (addodge) is POP3 downloading emails from the standard POP3 on port 110, which is non SSL. Unfortunately (fortunately for security) Gmail does not allow this. Thanks so far Andy, please help further..

 :arrow: OPTION 1 :!:
This is what I need it to do, but Configure External Mailbox Retrieval on SME7 server manager does not have the option to download from POP3s which use port 995. It does try on timing interval to check external mailbox (eg Gmail), but on the incorrect port.

Anyone knows how to edit the file and where it is located / what package to install?? :?:

lawz911

Re: SME to POP3s (SSL)
« Reply #6 on: November 06, 2006, 07:30:33 AM »
Does anyone know how to fix this SME POP3s issue?? ....  Option 1 OR 2

Example: Gmail only alows configuration:
pop.gmail.com
Use SSL: Yes
Port: 995
My Gmail account settings is set to allow pop3 download.

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
SME to POP3s download using SSL eg from Gmail - Experts only
« Reply #7 on: November 08, 2006, 12:30:26 AM »
start with an /etc/fetchmail with multiple entries
then edit it manually for the ssl mailboxes
with help from man fetchmail or google fetchmail
once it works, template your changes
and save your changes often and they will be overwritten

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: SME to POP3s download using SSL eg from Gmail - Experts
« Reply #8 on: November 08, 2006, 01:45:39 AM »
Quote from: "lawz911"
How could SME7 be setup to POP3s (SSL), retrieving mail from an external mailbox to local SME user inbox :?:



I'm no expert so I don't know why I'm posting this..

A contrib to extend SME 7's fetch mail capabilities exist here..
http://www.schirrms.net/sme/SMEFetchMail.php

If you look in the wish list section you will find..
Quote
Secure pop3 retrieval:      Some mail services (GMail from Google for instance) can only be accessed via secure POP3 (or maybe secure IMAP). The fetchmail binary send with SME doesn't have the ssl extension embedded. So it's not only a configuration option to add...


Although --ssl does exist in the fetchmail man.

The following command just dumped 461 gmails into roots email :shock:
Code: [Select]
fetchmail -v -p pop3 -u dude@gmail.com --ssl pop.gmail.com
Regards,
William

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

Offline mmccarn

  • *
  • 2,657
  • +10/-0
SME to POP3s download using SSL eg from Gmail - Experts only
« Reply #9 on: November 11, 2006, 08:12:30 PM »
Looking at /etc/e-smith/templates/etc/fetchmail/50multi-drop, it looks as though you can specify SSL by:

config setprop fetchmail SSL enabled
expand-template /etc/fetchmail


According to 'man fetchmail', specifying SSL will cause fetchmail to use the standard port for the secure version of the specified protocol (IMAP -> IMAPs, so presumably also POP3 -> POP3s)

If true, you should only need to configure the gmail settings in server-manager, then manually issue the two commands shown above.

I don't have the fetchmail contrib loaded, so I can't help with that.

rostons

SME to POP3s download using SSL eg from Gmail - Experts only
« Reply #10 on: December 04, 2006, 09:42:16 AM »
I installed this and it is excellent. I just have one question.
Does the email which comes in on fetchmail still get scanned by SME for spam and virus?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
SME to POP3s download using SSL eg from Gmail - Experts only
« Reply #11 on: December 04, 2006, 09:57:39 AM »
Quote from: "rostons"
I installed this and it is excellent. I just have one question.
Does the email which comes in on fetchmail still get scanned by SME for spam and virus?
Yes, check the headers to be sure, there should be extra stating what program was used and what score the mail received.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)