Solved

fetchmail problem

Posted on 1998-07-16
4
197 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Mint 18 31 91
High Bandwidth Usage 6 58
reset ubuntu password for root and admin after clearing it. 7 44
How to enable sync between two yum repo? 1 32
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

803 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