SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Pastimes : Linux OS.: Technical questions

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: E. Charters who wrote (111)10/25/1998 2:01:00 PM
From: Mitch Blevins  Read Replies (1) of 484
 
You can easily run fetchmail as non-root. In fact, it is probably preferred for security reasons. I have special situations that drove me to it.

Here is a sample .fetchmailrc for a single user/single ISP. It should be placed directly in the users home directory.

***************************
# .fetchmailrc

# run every 5 minutes
set daemon 300

poll mail.mci2000.com with protocol POP3 timeout 250
interface ppp0/0.0.0.0/0.0.0.0
user "xgq34tg" there with password "mypasswd" options fetchall

**************************

If you want to run fetchmail on demand only, just leave out the 'daemon' line entry. However, you can do both if you leave the daemon entry in. The first time you run fetchmail it will check your POP mail then fork into the background, checking every 5 minutes. If you run fetchmail again, it will wake the background process up and check mail immediately. At work I put this in my .cshrc (or .bashrc) so that it runs whenever I log into a terminal, and checks periodically as long as I am logged into at least one terminal. Demand checking is accomplished by simply running fetchmail again.

As far as differing domains. In this example your email is 'hal9000@mci2000.com'. The MCI2000 ISP gave you a POP login of xgq34tg that is used to get mail for hal9000. Locally, you are user echarter on domain 'mydomian.com'. As long as you are running fetchmail as user echarter, it will know to deliver the mail fetched for 'hal9000@mci2000.com' to echarter@mydomain.com. You can get 'somebody elses mail' because you know the ISP's login and password for that user.

Is that what you were asking?
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext