How to fix GNU MailMan 'gate_news' Cron Error

Issue

Every 5 minutes you get an Email from mailman-owner@your-domain.com explaining that gate_news has done one of the following:

  • Timedout
  • Permission Denied
  • IOError

Example of Error

/usr/local/bin/python2.6 -S /usr/local/mailman/cron/gate_news
Traceback (most recent call last):
File "/usr/local/mailman/cron/gate_news", line 293, in <module>
main()
File "/usr/local/mailman/cron/gate_news", line 268, in main lock.lock(timeout=0.5)
File "/usr/local/mailman/Mailman/LockFile.py", line 243, in lock
self.__write()
File "/usr/local/mailman/Mailman/LockFile.py", line 422, in __write
fp = open(self.__tmpfname, 'w')
IOError: [Errno 13] Permission denied: '/usr/local/mailman/locks/gate_news.lock

Step 1: Do you need gate_news?

Mailman has a sophisticated mail-to-news gateway feature. It can independently gate messages from news to mail and vice versa, and can even be used to manage moderated newsgroups. http://gnu.j1b.org/software/mailman/mailman-admin/node27.html

If you are using MailMan as a simple mailing list server then this feature could be turned off. If you are using this feature then this tutorial does not apply to you.

Step 2: Edit the Crontab

As root run the following command: http://mail.python.org/pipermail/mailman-users/2008-February/060246.html

crontab -u mailman -e

It should open up MailMan's cron config file in VI

Look for the line that read:

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/python2.6 -S /usr/local/mailman/cron/gate_news

You can then comment it out with a # or delete the line all together.

Step 3: Save and Restart Cron

Assuming VI is your default text editor, hit esc then shift + : then type wq

Once you "Write and Quit" VI go ahead and restart the Cron Deamon:

/etc/rc.d/cron restart

How to fix GNU MailMan 'gate_news' Cron Error Answers

  • Search for Questions

    Preview

References

Learn something new with our FREE educational apps!

Private lessons in the comfort of your own home. Get back in shape or finally pick up a guitar with our great experts guiding you the whole way!
Learn Guitar
Learn Hip Hop
Learn Pilates

Upload a picture from your computer

You can upload a JPG, GIF or PNG file. Do not upload pictures containing celebrities, nudity, artwork, or copyrighted images).

Specify an image URL

Image URL

Search

Type the image URL in the text field above and click 'Search'. Large images may take awhile to process.

Please remember that using others' images on the web without their permission is not very nice.

Crop this picture

Just click and drag on the image below to start cropping! Use the handles on the crop box to resize it.

Preview

Upload a picture from your computer

You can upload a JPG, GIF or PNG file. Do not upload pictures containing celebrities, nudity, artwork, or copyrighted images).

Specify an image URL

Image URL

Search

Type the image URL in the text field above and click 'Search'. Large images may take awhile to process.

Please remember that using others' images on the web without their permission is not very nice.

Crop this picture

Just click and drag on the image below to start cropping! Use the handles on the crop box to resize it.

Small Medium Large Full

Preview

Hotkeys