LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] fetchmail cron job's

[ILUG] fetchmail cron job's

Padraig Brady padraig at antefacto.com
Tue Sep 25 20:09:38 IST 2001


stee wrote:

>whats the best way to automate the following:
>
>I have a mailserver "tux" and a smoothwall box "firewall"
>now my family are expecting there mail to arrive from there eircom accounts
>to their computers and so I have a fetchmailrc script in each of their /home
>folders
>So my question is do I make a script to run all of these and how to I get
>smoothwall to automatically dialup and call this script or am I barking up
>the wrong tree all together??
>
>ps if this mail has any strange things about it can you tell me - I never
>got sendmail to work before so I'm a wee bit concerned that its alright
>
Possible I guess but not very flexible. You're probably better
running a mail server to connect & populate the users mail?
If you still want to do this I guess you could something like
the following from cron:

#get smoothwall to connect (perhaps by indirectly by doing simple tcp 
connect)?
for $dir in  /home/*/fetchmail.rc: do
    #cd $dir; fetchmail ...
done
#let smoothwall to disconnect automatically when no traffic,
#or explicitly by touching a file over nfs or something?

I'd definitely use a mail server which will be easier in the
long run IMHO.

Padraig.





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell