[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: specification of mailhost password to fetchmail on command line.



On Sat, May 29, 1999 at 04:11:06PM -0600, David Karlin wrote:
> Hello,
> I'm using the following fetchmail command to download my mail from
> my smarthost:
> 	
> 	/usr/bin/fetchmail -u funk48 travelin.com
> 
> This command causes me to be prompted for my mail password, but 
> I'd like to be able to run this as a script in a cron job, i.e. to
> to have this script run w/o user input.
> 
> I've read the manpage for fetchmail and it says:
> 
> "The default behavior of fetchmail is to prompt you for your 
> mailserver password before the connection is established. 
> This is the safest way to use fetchmail and ensures that your 
> password will not be compromised. You may also specify your 
> password in your ~/.fetchmailrc file. This is convenient when 
> using fetchmail in daemon mode or with scripts."
> 
> There is, however, no mention of the syntax for .fetchmailrc.
> 
> Q1) Is there a way to simply add the password to the command line?
> Q2) If not, then where can I find the proper syntax for .fetchmailrc?
> 
> Thanks,
> 
> -David
> 
> 

David,

My .fetchmailrc looks like this:

-------------------------------------------------------------------------------
# Configuration created Wed Feb  3 01:42:17 1999 by fetchmailconf
set postmaster "ironfoot"
poll pop-server.com with proto POP3 and options no dns
       user "ironfoot" there with password "password" is ironfoot here options fetchall mimedecode warnings 3600
-------------------------------------------------------------------------------

Only the names have been changed to protect the innocent ;)

Mike

-- 
Michael Merten        ironfoot@popaccount.com         NRA Life Member
---------------------------------------------------------------------
Nebraska State Constitution: All persons are by nature free and
independent, and have certain inherent and inalienable rights; among
these are life, liberty, the pursuit of happiness, and the right to
keep and bear arms for security or defense of self, family, home and
others, and for lawful common defense, hunting, recreational use and
all other lawful purposes, and such rights shall not be denied or
infringed by the state or any subdivision thereof. (Art. I, Sect. 1)
[NRA-ILA (www.nraila.org)]


Reply to: