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
p.s. - forgive me if this turns out to be a repost but I don't think the
previous attempt made it through the smtp server