Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 31st March 2010, 03:25 AM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,456
linuxfedorafirefox
I want to setup a single imap server to pop3 service

My actual mail is via pop3 from verizon. What I've done so far is just pull my pop3 mail onto my main machine at my house. But I'm finding I'd rather have a single imap server on my network so then all my machines could see the same mail.

I don't really want the imap server to poll verizon for mail, I just want the imap server to check pop3 mail at verizon only when one of my mail apps checks into it to look for mail.

I looked into dovecot but it's a bit much for this job. What else could I use?
Reply With Quote
  #2  
Old 31st March 2010, 05:16 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfedorafirefox
Re: I want to setup a single imap server to pop3 service

Quote:
Originally Posted by marko View Post
My actual mail is via pop3 from verizon. What I've done so far is just pull my pop3 mail onto my main machine at my house. But I'm finding I'd rather have a single imap server on my network so then all my machines could see the same mail.

I don't really want the imap server to poll verizon for mail, I just want the imap server to check pop3 mail at verizon only when one of my mail apps checks into it to look for mail.

I looked into dovecot but it's a bit much for this job. What else could I use?
I think there is some confusion in your terminology. An imap server can't pickup pop3 mail from your ISP and that would be polling.

It's pretty easy to set up a dovecot imap server in Fedora. So install dovecot with
yum -y install dovecot
setup the config file (see below)
and start the service with
chkconfig dovecot on
service dovecot start


To perform the configuration edit /etc/dovecot.conf edit to add one line like:
For "maildir" format:
Code:
                mail_location=maildir:/home/Maildir/%u
For mbox format:
Code:
                mail_location = mbox:~/mail:INBOX=/var/mail/%u
Then start or restart the service.

netstat -ntpl
will show something like:
tcp 0 0 *:imap *:* LISTEN 604/imap-login
tcp 0 0 *:imaps *:* LISTEN 604/imap-login
tcp 0 0 *:imap *:* LISTEN 604/imap-login
tcp 0 0 *:imaps *:* LISTEN 604/imap-login
meaning that service is available on all interface at imap port 143, and ssl encrypted at 993.
NO authentication used !

Open the firewall ports 143, 993 whichever.

So if you think dovecot is too much I'm afraid everything else is more complex.

===========
Just to be crystal clear - dovecot serves you maildiir or mbox emails to your mail-client (thunderbird or evolution for example). It has no ability to fetch mail from your ISP.
To to that you want getmail or fetchmail.

---------- Post added at 11:17 PM CDT ---------- Previous post was at 10:58 PM CDT ----------

I've used fetchmail in the past, and it's evolved to the point where it is IMO mostly annoying. When I have to pull sources and strace a program to detrmine with it is doing undocumented behaviour it's well broken.

Anyway the fetchmail setup is easy. Make a config file (anywhere) with content like:
Code:
set postmaster "stevea"
set syslog
set bouncemail

poll mail.your.isp.com  pop3
	user "stevea"    	there with password "steveapasswd" is "stevea" here
	user "ann"          	there with password "annpasswd"   is "annab"   here
then executing "fetchmail -f configfilename". Should fetch your mail and send it to the port 25(smtp) sendmail service running on your fedora system. sendmail drops it into the mbox, and dovecot serves up whatever appears in your mbox.

BTW on recent versions I found fetchmail trying the "::1" ipv6 localhost instead of 127.0.0.1. That failed for my postfix config, but should succeed for the default fedora sendmail config.

See here
[root@nidula Desktop]# netstat -tlp | grep smtp
tcp 0 0 nidula.localdomain:smtp *:* LISTEN 2013/sendmail: acce

sendmail is listening on all interfaces.

DO NOT expose your port 25 to the internet since you will be hit by illicit mail forwarders.

---------- Post added 2010-03-31 at 12:16 AM CDT ---------- Previous post was 2010-03-30 at 11:17 PM CDT ----------

I've been meaning to test getmail for my application and it seems even easier than fetchmail.

Intall the package
yum -y getmail

In your home directory make a file called .getmail/getmailrc with contents:
Code:
[retriever]
type = SimplePOP3Retriever
server = mail.yourisp.com
username = stevea
password = stevespasswd

[destination]
type = Mboxrd
path = /var/spool/mail/stevea

[options]
delete = true
Then running the command "getmail" with no arguments pulls email of the account and adds then to the /var/spool/mail/stevea mbox. As above dovecot pulls mai lfron the /var/spool/mail too.


Just tried this and it works very nicely.
You can also deliver mai lto maildir, and to mda's (like sendmail's port 25).

Divvying up email to various users is reasonably sumple too.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 31st March 2010 at 05:55 AM.
Reply With Quote
Reply

Tags
imap, pop3, server, service, setup, single

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Email Server (imap/pop3) trinimoses Servers & Networking 4 1st August 2007 02:46 PM
pop3 and imap not working :( dent Servers & Networking 22 31st May 2005 01:29 AM


Current GMT-time: 22:21 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat