Defcon-1-Logo

           [Home]    [FBSD Articles]    [Scripts Corner]    [Contribute]    [Search]    [FBSD Links]    [Files]

About Us

FreeBSD Articles
  *Hardware
  *Networking
  *Security
  *Software
  *X Windows


Files / Scripts
Newbies Corner
Tech. Talk
Tips and Tricks


FreeBSD Links

Articles in other
Languages :
  *French Articles
  *Spanish Articles

Want to Help ?
 
   Click Here

Email Users5

Search:
 

 


FreeBSD Search:


 

 

Powered-By-Apache-Logo

 This guide is intended to help people create a simple

mailing list with majordomo.

Majordomo configuration can be quite complicated at first, and can put some people off.


This guide is intended to ease the process.

Ready?

1) First of all, download majordomo from http://www.greatcircle.com/majordomo.

  The latest version at the time of writing was 1.94.5, which will be used in all examples. Remember to substitute it for your version number.

2) Unpack the distribution, and change to the directory by issuing the commands:

  tar zxvf - majordomo-1.94.5

  cd majordomo-1.94.5

3) Add the user majordomo to the password file, using adduser(8).

  I choose UID 800 for this, and shell /bin/false. majordomo should

  be a member of the group daemon.

 

4) Pick an installation directory for majordomo. I *strongly* recommend you use /usr/local/majordomo-1.94.5, as some defaults are set to this.

  It may save a few headaches later :)

 

5) Edit the Makefile with vi or similar. Variables that need to be changed are self explanatory, with lots of comments.

 

  Be sure to check the location of perl is correct at the very top of the file.

  (the #! bit before the path needs to stay there). If you are unsure of where perl is installed, issue the command "whereis perl"

6) Edit majordomo.cf. Again, most variable names are self explanatory with good comments.

  One tip, where it ask you what machine majordomo is installed on, enter

  the following:

  domain.com - If you want the majordomo email address to be majordomo@domain.com

  host.domain.com - If you want the majordomo email address to be majordomo@host.domain.com

 

7) SU to root.

 

8) Issue the command "make wrapper". Watch for any obvious errors.

 

9) Issue the "make install" command. Watch for any obvious errors.

 

10) Issue the "make install-wrapper" command. Once again, watch for any obvious errors.

 

11) Add the following line to /etc/mail/sendmail.cf, just below the line that

  reads "OA/etc/mail/aliases":

  OA/etc/mail/majordomo.aliases

  This creates and "extra" aliases file for you to use.

 

12) Restart sendmail with the command:

  kill -HUP `head -1 /var/run/sendmail.pid`

 

13) Add the following information to /etc/mail/majordomo.aliases. Note, this does not do any advanced or fancy list features, just a plain mailing list :)

# Majordomo aliases files

 

majordomo: "/usr/local/majordomo-1.94.5/wrapper majordomo"

owner-majordomo: postmaster

majordomo-owner: postmaster

 

# Listname

 

listname: "|/usr/local/majordomo-1.94.5/wrapper resend -l listname listname-list"

listname-list: :include:/usr/local/majordomo-1.94.5/lists/listname

owner-listname: postmaster

listname-owner: postmaster

listname-request: "|/usr/local/majordomo-1.94.5/wrapper majordomo -l listname"

listname-approval:  postmaster

 

14) Run the command "newaliases" to update the aliases database.

 

15) Change to a normal, unprivleged user (NOT root or majordomo), and check the configuration of majordomo with the following. Fix any obvious errors

  that spring up:

  cd /usr/local/majordomo-1.94.5

  ./wrapper config-test

 

16) Change to the lists directory, and create a new mailing list (need

  to be back as root now):

 

  cd /usr/local/majordomo-1.94.5/lists

  touch listname

 

17) In the same directory, create a file called listname.info, and fill it with a brief description of the mailing list, rules etc.

 

18) Issue the following commands in the lists directory, to make sure that file permissions are ok.

 

  chown majordomo:daemon *

  chmod 0664 *

 

19) Now, configure the list with the following command:

 

  echo "config listname listname.admin" | mail majordomo

 

 

20) The Final Step - Honest! :)

 

  echo 'lists' | mail majordomo

 

 

Hopefully, this will give you a response from majordomo, containing the name of your list. If it doesn't, or your response is from mailer-Daemon, then something has gone wrong!

 

A useful place to start looking for errors might be /usr/local/majordomo-1.94.5/Log.

 

 

Extended features and options can be edited in the file /usr/local/majordomo-1.94.5/lists/listname.config.

 

Catch me in #freebsdhelp on EFnet, or by mailing jamie@jamiesdomain.org.uk if you have any queries, problems, or random abuse :)

 

Thanks

 

--Sparc

 

(Jamie Heckford - jamie@jamiesdomain.org.uk )

Email Us

ghostrdr@defcon1.org

This site cannot be duplicated without permission

© 1998 - 2010 Defcon1, www.defcon1.org. Copyrights for all materials on this web site are held by the individual authors, artists, photographers or creators. Materials may not be reproduced or otherwise distributed without permission of www.defcon1.org and the content's original author.