Nope, our IT sucks. They refuse to forward, so I'm forced to work around that fact.
As it turns out, my VPS hosting company mentioned a program called "fetchmail" to me. Evidently, this is a very popular program that does exactly what I'm needing. (Incidently, fetchmail is used in Horde to get mail from a different account, but it can't be set to run automatically as far as I can tell.)
It took me about 3 hours to muck around with the user guide and find other people's sample files, but here's what I did:
1. Logged into my VPS as root.
2. Eventually created a "~/.fetchmailrc" file structurally identical to this:
Code:
set daemon 120 #run as daemon & poll every 2 minutes
set logfile = "/var/log/fetchmail.log" #log is only output when no terminal
set no bouncemail #not sure
set no spambounce #not sure
set invisible #makes the e-mail still look like it's to/from the original?
poll mail.mywork.com #pop3 mail server
with protocol POP3 no dns #access via POP3, not sure about the dns
#POP3 user/pass, send to diff e-mail...
username user1 password u1pass is user1@myowndomain.com
username user2 password u2pass is user2@myowndomain.com
username user3 password u3pass is user3@myowndomain.com
username user4 password u4pass is user4@myowndomain.com
flush #remove downloaded messages from original server
fetchall #get all even, if already seen
fetchlimit 0 #no fetch limit
fetchsizelimit 0 #no size limitations
;
3. Then, I just ran fetchmail by typing its name at the command line!
I still need to figure out how to put it in my startup scripts so it's sure to run when my server is rebooted. This is a basic Linux task I've never mastered. Can someone help me with it?
-- Matt