[SLE] Automating mail collecting and sending
Hi This discussion list is a mine of information and I have learned a lot in a short space of time - thanks all! My internat gateway/mailserver is up and running correctly, and the clients are able to use software to instruct the server to connect as needed (I set it set up as non-dod). Now I want to automate the collection of e-mail and sending of queued mail; perhaps twice a day for each of these processes. I understand the basics of cron, but I can not get all of the processes to execute automatically. 1. Should I put the instructions in the system crontab or in the root table? 2. Are the commands executed one at a time dependent on the order in the table, or does the time setting play the most important role? Basically I want the server to use my ISDN connect script to dial up, then execute fetchmail, then execute sendmail -q, then hangup after everything is done. Any suggestions? Thanks Grant. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Grant Walton wrote:
Hi
This discussion list is a mine of information and I have learned a lot in a short space of time - thanks all!
My internat gateway/mailserver is up and running correctly, and the clients are able to use software to instruct the server to connect as needed (I set it set up as non-dod). Now I want to automate the collection of e-mail and sending of queued mail; perhaps twice a day for each of these processes. I understand the basics of cron, but I can not get all of the processes to execute automatically.
1. Should I put the instructions in the system crontab or in the root table? 2. Are the commands executed one at a time dependent on the order in the table, or does the time setting play the most important role?
Basically I want the server to use my ISDN connect script to dial up, then execute fetchmail, then execute sendmail -q, then hangup after everything is done. Any suggestions?
Thanks
Grant.
Hi Grant, I use basicly a setup described in the Support Data Base. My machine is the local mail server and collects stuff. I issue "sendmail -q" from my /etc/ppp/ip-up script (with the ISDN stuff its in there, commented) as well as fetchmail. This has the advantage that as soon as there is a connection to the net, mail is sent and fetched. (i.e. if you use your machine as a getweway too). I trigger this with a script from the systems crontab /etc/crontab. Juergen -- =========================================== __ _ Juergen Braukmann juergen.braukmann@gmx.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | /\\ /__/ / _ \/ // /\ \/ / ===========================================_\_v __/_/_//_/\_,_/ /_/\_\ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
juergen.braukmann@ruhr-west.de
-
ncfcrh@global.co.za