Quote:
Originally Posted by marko
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.