fetchmail-friends
[Top] [All Lists]

[fetchmail]Fw: fetchmail scripting problem

2002-04-24 19:30:34

All,

 
I am trying to use fetchmail to take care of a 'pop before smtp' authorization 
scheme my isp has implemented.

I have a script with the line:    "/usr/bin/fetchmail -c -f /etc/fetchmailrc"

The script is called by mailprogram and therefore fetchmail (running under 
mailprogram) doesn't work:
- fetchmail doesn't seem to have an option to provide a password to a pop 
account w/o using fetchmailrc
- fetchmail can't access fetchmailrc because  a: fetchmailrc is not owned by 
mailprogram
                                                                   b: 
fetchmailrc can not have permissions greater than 710
- can not chown of fetchmailrc to mailprogram because no user by that name
- can not create user of that name because is a system account 


So, is there any way to run fetchmail from a script called by a program and/or 
another way to do a dummy login to a pop account, ie. I tried:
'telnet mail.isp.com 110 < popscript'  but just get disconnected by the remote.
If worst comes to worst I'll install expect but would prefer to do it with 
what's already on the system.

Thanks,
Stephen Watts
<Prev in Thread] Current Thread [Next in Thread>