Solved

fetchmail problem

Posted on 1998-07-16
4
194 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
  • 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 100 total points
ID: 1637545
Some mailers are are very RFC-compliant. Try adding "forcecr" to each
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now