Tips for running fetchmail at Dreamhost
1. First of all, download fetchmail source code and compile it. There shouldn't be any problem, just configure and make.
2. Copy the compiled executable file to somewhere else, say, /home/yourname/bin. Make sure the destination directory is in your path by setting up PATH variable.
3. Setting up your .fetchmailrc in /home/yourname
4. Here's the trick part, add the smtpname option to your .fetchmailrc, otherwise Dreamhost won't accept it. For example, if your email address is abcdef@dreamhost.com, then add the line smtpname abcdef@dreamhost.com to your .fetchmailrc file.
4.a You might wanna test it with the "-c" option to see if .fetchmailrc is well set.
5. Setting up the crontab or use daemon mode option "-d" to run fetchmail. Personally I perfer to use crontab cos you don't know when Dreamhost will gonna reboot.
If you wanna use fetchmail for gmail pop3, here is the reference.
The following is my example of the .fetchmailrc
# set username
set postmaster "yourname"poll pop.gmail.com
protocol POP3
user 'your@email.address.at.gmail'
password 'yourpassword'
options ssl
sslcertck sslcertpath /home/yourname/.certs/
smtpname your@email.address.hosted.at.dreamhost
batchlimit 1
keep
0 TrackBacks
Listed below are links to blogs that reference this entry: Tips for running fetchmail at Dreamhost.
TrackBack URL for this entry: http://hardtosay.net/mt/mt-tb.cgi/219

Thank you for these directions! After much aggravation with attempting to get my email off dreamhost to my local server using fetchmail, I googled and found your entry. (Even your title was important, it was so direct it was the only google entry I tried!) I'm using Webmin to manage my local servers, so one caveat is to use a text editor to directly edit the fetchmail.rc file (created by Webmin). Then add a new line using your instructions above ("smtpname your@email.address.hosted.at.dreamhost"). This line should be after the "password" entry. Again, thanks!
glad it helps!
I thought it would be useful to someone else, so why not share it. that's the beauty of open source spirit.