Jay Lee wrote:
[snip]
What is the db-update process? Is it possible the email is being sent
out before the file is accessible?
I think you answered your own question. :-)
Your own testing shows this is true. I suspect the e-mail is sent out at
the same time the update is made available. But, all mirrors may not be
synchronized by the time you receive the e-mail. (Very likely I think,
even more so if you receive e-mail directly and do not poll a pop3
server periodically)
If you want to be the first on your block to receive such updates, I
suggest something like this
- receive e-mail saying update is available (triggers following)
1 - get/save your current version (version when e-mail arrived)
2 - use dig to get the version of most available
3a - compare dig results to the version you had when the e-mail arrived
and to the version currently installed
3b - if the installed version is newer than the e-mail announced
version, ignore the e-mail - it is out of order (stop, you're done until
the next e-mail)
4a - if dig reports a newer version is available than what you had when
e-mail arrived, run freshclam (check freshclm results... dns may be
updated, but mirror not synch'd yet)
4b - dig says no new version yet or freshclam didn't get newer
version.... use cron to try again (steps 2-4) in a little while
The above is very brief, but illustrates a concept.... you need to
account for update e-mails arriving out of order (sometimes a flurry of
updates/e-mails occur and I receive the e-mail messages out of order.)
Or any particular e-mail could be delayed/lost...
It's also possible that freshclam runs automatically while you're
waiting to try again, so you need a way to make sure you're not waiting
for updates that are already installed (step 3)
It's also possible that an e-mail gets lost/delayed
If you receive multiple e-mails, you could have multiple instances of
the above.... (if implemented properly, they will "self-exit" on the
next iteration when they determine the installed version is >= the
version they're waiting for)
Not sure it's worth the effort...but that's your call... .I often do
these sorts of things as an "excercise".
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html