A good way to filter spam and viruses
By Red Squirrel
Thanks to cron jobs (crond must be running, check the services by going on the server and clicking on the red hat icon / servers / services) you can schedule tasks to happen at a certain interval.
In /etc create a folder called cron.custom (name does not matter but in this article we'll use that name). Then in webmin, go under "system" and click on "scheduled cron jobs". You should see a list of existing jobs, and at the bottom there's an option to add a new job, so click it and fill out the form. It is pretty straightforward, again. Choose to execute the job as root, though this probably does not matter what you choose. Then for the command type /etc/cron.custom/getmail (getmail is a file we will create)
Then on the next section just set the schedule to whatever pleases you and hit "create". This is how mine is setup, it checks every 15 minutes at x:00, x:15, x:30 and x:45 .
Then in /etc/cron.custom create a file called getmail. (to avoid conflicts, we don't use fetchmail) In the file, you can simply type "fetchmail" and maybe output it to a log by adding >>/path/to/file.log.
It's not a bad idea to reboot the server to make sure everything is working fine. It is also wise to have set the getmail file to output to log, since it will let you know if it works or not. If everything went smooth everything should be working and you should be able to receive your emails through the gateway.
Now this is nice, and receiving mail is faster even if it's HUGE attachments, because the server already downloaded it on the network by the time you check. But what about filtering spam?
This is what we'll look at on the next page.
This site best viewed in a W3C standard browser at 800*600 or higher
Site design by Red Squirrel | Contact
© Copyright 2019 Ryan Auclair/IceTeks, All rights reserved