header image
Home arrow LUG How Tos arrow How To POSTFIX / MLMMJ Mail List
How To POSTFIX / MLMMJ Mail List Print
Jul 22, 2008 at 09:08 PM

HOW-TO POSTFIX / MLMMJ Mail List Server for Ubuntu Desktop 8.4

IMPORTANT LOG FILES
/etc/postfix/main.cf – config file for POSTFIX
/var/mail – email spool files for POSTFIX
/var/log/mail.err – error log file, good for checking if the email was sent

IMPORTANT COMMANDS
sudo /etc/init.d/postfix restart – restart POSTFIX
sudo gedit filename – to edit the files

INSTALL POSTFIX SERVER
Click System → Administration → Synaptic Package Manager
Click Edit → Mark Packages by Task...
Select Mail Server
Click OK
Mark Additional Required Changes → Click Mark
Click Apply

INSTALL MLMMJ
Go to http://mlmmj.mmj.dk
Click the Files link
Download mlmmj-1.2.15.tar.gz
Click Applications → Accessories → Terminal
At a Terminal:
tar xzf ./mlmmj-1.2.15.tar.gz
cd mlmmj-1.2.15
sudo ./configure
sudo make
sudo make install
    sudo gedit /etc/postfix/main.cf
    (Verify: recipient_delimiter = +)

CREATING A MAILINGLIST
At a Terminal:
    sudo /usr/local/bin/mlmmj-make-ml.sh
    you will be asked the following information:
    What should the name of the Mailinglist be?:
    type the name of the desired mailinglist ex. eclug
    The Domain for the List?:
    type the name of the Internet domain ex. eclug.homelinux.org
    The emailaddress of the list owner?:
    type the emailaddress of the list owner ex.
    The path to texts for the list?:
    type en for english

EDIT THE ALIASES FILE -  to add an alias for the mailinglist
(the line that needs to be added is provided by the program)
    at a Terminal:
    sudo gedit /etc/aliases
    Add the line
    eclug:  "|/usr/local/bin/mlmmj-recieve -L /var/spool/mlmmj/eclug/"
    Save and Exit
    at a Terminal:
    newaliases

CHANGE THE OWNER ON THE MAILINGLIST DIRECTORIES
(this allows POSTFIX to use these directories)
    at a Terminal:
    cd /var/spool/mlmmj
    sudo chown -R nobody:nogroup eclug

START THE MAILINGLIST SERVER
    at a Terminal:
    sudo /usr/local/bin/mlmmj-maintd -L /var/spool/mlmmj/eclug/

If you're not starting mlmmj-maintd in daemon mode,
don't forget to add this to your crontab:
0 */2 * * * "/usr/local/bin/mlmmj-maintd -F -L /var/spool/mlmmj/eclug/"

SUBSCRIBE USERS
    at a Terminal:
    sudo  /usr/local/bin/mlmmj-sub -L /var/spool/mlmmj/eclug/ -a    

See the official website for more information

EC_LUG -Eau Claire Linux users group is an informal group of Linux and open source software enthusiasts.

We meet each Thursday at 7 p.m. at Dooley's Pub, 442 Water Street, Eau Claire, Wisconsin

Linux 101:
What's All The Fuss? video...

Mac vs. PC: How Would Linux Fit?
video1...

video2...
video3...

Linux User GroupsLug Link Logo