Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

fetchmail problem

Posted on 1998-07-16
4
Medium Priority
?
206 Views
Last Modified: 2013-12-06
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
Comment
Question by:vishm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Expert Comment

by:somberlain
ID: 1637542
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
 

Expert Comment

by:somberlain
ID: 1637543
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
 

Author Comment

by:vishm
ID: 1637544
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
 
LVL 3

Accepted Solution

by:
marcelofr earned 200 total points
ID: 1637545
Some mailers are are very RFC-compliant. Try adding "forcecr" to each
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question