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
