Skip to content

Instantly share code, notes, and snippets.

@kylerichardson
Last active July 15, 2017 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylerichardson/9dcf72082feccf77a7bee4be5c390400 to your computer and use it in GitHub Desktop.
Save kylerichardson/9dcf72082feccf77a7bee4be5c390400 to your computer and use it in GitHub Desktop.
Initial setup of mailman3 on CentOS 7

Setup mailman3 for testing on CentOS 7

Install Python3 using IUS repos

  1. Download and install IUS release rpm
    curl -L -O https://centos7.iuscommunity.org/ius-release.rpm
    yum install ./ius-release.rpm
    
  2. Install python 3.6 and pip
    yum install python36u python36u-pip
    
  3. Add convenience links
    ln -s /usr/bin/python3.6 /usr/bin/python3
    ln -s /usr/bin/pip3.6 /usr/bin/pip3
    
  4. Install virtualenv
    pip3 install virtualenv
    

Setup dedicated user and environment for mailman

  1. Create mailman user
    useradd -r -m -d /opt/mailman mailman
    su - mailman
    
  2. Create python virtualenv and install
    virtualenv env
    source env/bin/activate
    pip install mailman
    
  3. Execute mailman
    mailman info
    
@titanve
Copy link

titanve commented Jul 15, 2017

Kyle,

When I do 'mailman info' I get: PermissionError: [Errno 13] Permission denied: '/var/lock/mailman'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment