Benches Uncategorized

1

Looking for 10.4.x "learn_junk_mail" Users

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hi,

I am in the process of finalizing a few tools and need some feedback.

Reading through discussions and looking on my own machines I've noticed that "learnjunkmail", the script included by Apple to update the SpamAssassin database every night, is not started automatically on all servers. Also it looks like some 10.4.x installs use a cron job, while others use a launchd .plist.

If you know (or know where to look) could you please let me know how and if "learnjunkmail" is run on your 10.4.x server.

Hint:
If it's a cron job you should see it by typing
<code>
sudo crontab -u root -l
and
cat /etc/crontab
</code>
In the output you should see a line referencing the script.

If it is a launchd item you should find it by issuing:
<code>
grep learnjunkmail /System/Library/LaunchDaemons/*
</code>
This should output the name of the .plist file and the line containing "learnjunkmail"

If you like, let me know the results. If it is a cronjob I only need to know this without further information
If it's a launchd item, it would be nice if you could include the .plist as well.

Click here to send me your feedback.

Thanks,
Alex

1 reply

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Mine looks like it's a cron job ("Daemon"), I executed:
    sudo crontab -u root -l

    And received this output:
    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (cyrusimap installed on Wed Aug 10 09:12:38 2005)
    # (Cron version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v 1.17 2001/06/16 03:16:52 peter Exp $)
    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (/tmp/smdm2.vCKd0ulDV6UgplsAB installed on Fri Jul 29 08:36:51 2005)
    # (Cron version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v 1.17 2001/06/16 03:16:52 peter Exp $)
    0 1 * * * /etc/mail/spamassassin/learnjunkmail

    I swear I executed that command before and had no output, even received a no crontab found command.

    So something else created the crontab. cyrusimap? I mean it says cyrusimap "installed" the cron job.

    It's working now and I am getting e-mails about it, so this is a good thing. It would be kind of cool if we could get more from learnjunkmail than just the name of the file it's "learning". I guess you can't have your cake and eat it too.