• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

fetchmail problem

Hi there, this is probably a question that has been answered a zillion times but here goes. I'm trying to set a linux mail server (Red Hat 5.2), it's duties is simply to forward all outbound mail to my ISP and obtain incoming mail from my POP3 account on my ISP's mail server. I am using fethmail to obtain the mail from my POP3 account and sendmail as the MDA. I've setup my .fetchmailrc correctly according to the many samples I've seen, however when I execute fetchmail is seems to be dowloading something but no mail is posted to my mail box. I've setup the aliases correctly as I have a different user Ids on my linux and ISP's machine. If I do fetchamil -V, I can see the message header being downloaded and forwarded to sendmail however the actual message body is being ignored. Even though the message header looks to be downloaded, nothing appears in my mailbox. Anyone got any advice or could point me to a suitable web page.
0
vishm
Asked:
vishm
  • 2
1 Solution
 
somberlainCommented:
fetchmail is a piece of cake.  im at werk right now but gimme like 8 hours and then ill hook ya up w/ my .fetchmailrc.  in the meantime if you look for "fetchmail FAQ" on webcrawler it might answer some questions.
0
 
somberlainCommented:
ok this is how to setup .fetchmailrc

It scans two pop3 servers for mails, as you can see from this.  so if you need to add more it should be fairly easy.

first the protocol:

poll pop3.yourISP.net proto pop3
user REMOTEUSERNAME is LOCALUSERNAME with password YOURISPPASSWD
poll pop3.secondISP.net proto pop3
user REMOTEUSERNAME there is LOCALUSERnAME with password YOURISPPASSWD

now mine for an example:

(this assumes your running fetchmail to pull mail into your local (root user) mailbox and your pop3 login is "somberlain"

poll pop3.toast.net proto pop3
user somberlain is root with password klfau903
poll horseman.acd.net proto pop3
user somberlain there is root with password fdr39hflke



now, to only run fetchmail for one pop3 account, do it like this:

poll pop3.toast.net proto pop3
user somberlain is root with password 3253d4r3

now, once you setup your .fetchmailrc, chmod 600 .fetchmailrc or it wont even run, and then:

fetchmail -v

if it works, just make your .fetchmailrc in roots home directory and put it to initialize in /etc/rc.d/rc.local and you never have to fool with it again.  i answered this question for someone here before, its probably in the database for 10 points or something, but i basically rehashed everything i said to him , probaby even better so, i hope this works for ya.  you can change "root" to another username if you are like most people and use "root" for admininstration and a normal "users" account for everything else, i just download mine into my box as my normal login, only thing i use root for is hookin up to the isp and compiling proggies.

well, later!
0
 
vishmAuthor Commented:
Yep my .fethmailrc is very similar to the sample somberlain provided. My problem is that fetchmail logs into the mail server correctly. the problem is that it simply reads the to, from + subject line and nothing else. All the mail is supposedly getting forward to sendmail but there is a problem maybe on the sendmail side. I got the thing to work once with my current setup, must of been a fluke.
0
 
marcelofrCommented:
Some mailers are are very RFC-compliant. Try adding "forcecr" to each
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now