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.

Command line usage of mailman

Discussion in 'E-mail Discussions' started by spiritguardian, May 28, 2004.

  1. spiritguardian

    spiritguardian Active Member

    Joined:
    Apr 30, 2004
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    It seems that I am only able to execute mailman's command as the root user. Is this normal?

    The reason it matters to me is that I wish to have a web-based interface written in PHP that executes mailman commands.

    Anyone tried this?
     
  2. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    16
    If your PHP script runs as root via cron, then you shouldn't have any problems. If the script will run via apache, then you'll have to have phpsuexec and add the user the script runs as to the mailman group, but without phpsuexec, you won't be able to do it safely.
     
Loading...

Share This Page