The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MailMan - Email <> NNTP Gate

Discussion in 'E-mail Discussions' started by abcc, Oct 29, 2003.

  1. abcc

    abcc Member

    Joined:
    Sep 27, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Mailman has a nntp <> email gate feature that I am eager to use, but it is reliant on a cron script running

    /usr/local/cpanel/3rdparty/mailman/cron/gate_news

    But I am unable to setup a cron tab under each user to run this script..

    What am I doing wrong ? :)

    It also appears to 'mailpasswds' script is not being called monthly either ..
     
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    16
    Dear abcc,

    I don\'t think that mailman cron scripts will run under each users crontab entry,because users may not have the permission to access that script.

    For failure in mailpasswds cronjob please check your crontab file in /var/spool/cron/ for correct field entries.

    Regards,
     
  3. abcc

    abcc Member

    Joined:
    Sep 27, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    mickeymouse, thanks for the reply.

    I see there is a mailman user on the system - I assume this is the user who should be running the cron scripts?

    I have tried (to see what is in the crontab now):

    root@abcc01 [/etc]# crontab -lu mailman
    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (/dev/null installed on Fri Oct 31 13:29:28 2003)
    # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
    root@abcc01 [/etc]#

    Now, this doesnt look right to me, as surely the mailpasswds line should be there ...

    Looking back over old cron logs, it shows commands running under mailman, so I think my mailman cron file is fubared. Any way to replace it?
     
  4. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    My crontab for mailman doesn't have anything in it, either. Don't worry. The crons for mailman must be in cron.daily or somewhere else.
     
  5. abcc

    abcc Member

    Joined:
    Sep 27, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Thats good to know - only problem is, the cron log shows the last ran mailman related event on the 25th - nothing since ... So I have managed to break something ;)
     
  6. abcc

    abcc Member

    Joined:
    Sep 27, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Re-installed mailman (using the script in /scripts) and the mailman crontab now reads:

    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (/usr/local/cpanel/src/3rdparty/gpl/mailman-2.1.3/cron/crontab.in installed on Sun Nov 2 19:53:18 2003)
    # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
    MAILTO=postmaster
    # At 8AM every day, mail reminders to admins as to pending requests.
    # They are less likely to ignore these reminders if they're mailed
    # early in the morning, but of course, this is local time... ;)
    0 8 * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/checkdbs
    #
    # At 9AM, send notifications to disabled members that are due to be
    # reminded to re-enable their accounts.
    0 9 * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/disabled
    #
    # Noon, mail digests for lists that do periodic as well as threshhold delivery.
    0 12 * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/senddigests
    #
    # 5 AM on the first of each month, mail out password reminders.
    0 5 1 * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/mailpasswds
    #
    # Every 5 mins, try to gate news to mail. You can comment this one out
    # if you don't want to allow gating, or don't have any going on right now,
    # or want to exclusively use a callback strategy instead of polling.
    #0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/gate_news
    #
    # At 3:27am every night, regenerate the gzip'd archive file. Only
    # turn this on if the internal archiver is used and
    # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py
    27 3 * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/nightly_gzip

    So, fingers crossed ....
     
  7. Karateka

    Karateka Active Member

    Joined:
    Apr 14, 2003
    Messages:
    32
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Austin, Texas
    cPanel Access Level:
    Root Administrator
    Twitter:
    Did anyone get this to work?

    abcc: The only thing I can see is that this line:

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

    should say

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

    Nevertheless, we can't get it to work. Mailman > nntp for postings works fine, but Mailman doesn't seem to be interested in picking up anything from the nntp server.

    Running this manually didn't help either:
    /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/gate_news

    We entered a ticket with cpanel, but the answer was that they don't support Mailman in combination with nntp.

    cPanel.net Support Ticket Number: 36874
     
Loading...

Share This Page