=================================== INSTALLING MAJORDOMO + POSTFIX =================================== POSTFIX # yum install postfix # vi /etc/postfix/main.cf myhostname=listas.hm.com (our SMTP MailServer) mydomain=hm.com myorigin=$myhostname (uncomment this) mydestination=$myhostname, localhost.$mydomain, mail.hm.com, mail.bastion.hm.com, mail.otherSMTPnode.hm.com, (always put $myhostname & localhost.$mydomain to avoid loops delivering emails) notify_classes =resource, software, policy (comment this) mynetworks_style = host (add this and comment the other mynetworks_style) inet_interfaces = $myhostname, localhost relay_domains = .. (comment) queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/lib/postfix *with yum daemon_directory = /usr/libexec/postfix mail_owner = postfix default_privs = nobody (comment) mail_spool_directory = /var/mail (comment) MAJORDOMO # rpm -q perl <- check if it's installed # rpm -q postfix <- check if it's installed # useradd majordomo # vigr (#vi /etc/group) root:x:0:root ... daemon:x:2:root,bin,daemon,majordomo >>>>Necesitamos asignar los siguientes permisos: >>>>> # chown -Rf majordomo.daemon /usr/local/majordomo/lists >>>>> # chown majordomo.daemon /usr/local/majordomo/Log >>>>> # chown -Rf majordomo.daemon /usr/local/majordomo Para hacer pruebas con otros usuarios >>>>> # chmod 777 /usr/local/majordomo >>>>> # chmod 777 /usr/local/majordomo/lists >>>>> # chmod 777 /usr/local/majordomo/Log # su - usuario <- Test majordomo IS functioning (must be other user than *majordomo* or *majordomo.daemon*) $ cd /usr/local/majordomo $ ./wrapper config-test <- If the TEST is OK, root will receive an email CREATING MAILING-LISTS Lists must be here: /usr/local/majordomo/lists/ Steps: 1) touch /usr/local/majordomo/lists/list-name 2) chown majordomo.daemon:2 /usr/local/majordomo/lists/list-name 3) chmod 644 /usr/local/majordomo/lists/list-name 4) touch /usr/local/majordomo/lists/list-name.passwd <- The PASSWORD goes here 5) touch /usr/local/majordomo/lists/list-name.info <- The INFO goes here (displayed when user emails *info list-name*) 6) touch /usr/local/majordomo/lists/list-name.restrict <- emails allowd to send emails 7) touch /usr/local/majordomo/lists/list-name.config <- The CONFIG goes here 8) Agregar el alias en /etc/aliases 9) # newaliases #######################[ Ejemplo [################################ -------[ /etc/aliases [------------------------------------------------------------------------------------------------------------------------- #Lista: hugomartin-prueba-4feb - Hora de Creacion: -4feb2007-16:15:41 #Descripcion: Prueba 4 feb #Solicitado: HUGO MARTIN - Creado por: HUGO MARTIN hugomartin-prueba-4feb: "|/usr/local/majordomo/wrapper resend -l hugomartin-prueba-4feb -h listas.bastion.edu.pe -s hugomartin-prueba-4feb-Gu3zgJX5 hugomartin-prueba-4feb-Gu3zgJX5: :include:/usr/local/majordomo/lists/hugomartin-prueba-4feb owner-hugomartin-prueba-4feb : root hugomartin-prueba-4feb-owner : root hugomartin-prueba-4feb-request : "|/usr/local/majordomo/wrapper request-answer hugomartin-prueba-4feb" hugomartin-prueba-4feb-approval : hm@hm.com -------] /etc/aliases ]------------------------------------------------------------------------------------------------------------------------- -------[ usr/local/majordomo/lists/hugomartin-prueba-4feb.config [------------------------------------------------------------- admin_passwd = hugomartin-prueba-4feb.admin administrivia = yes advertise << END END announcements = yes approve_passwd = hugomartin-prueba-4feb.pass archive_dir = comments << END END date_info = yes date_intro = yes debug = no description = Lista de correos de hugomartin-prueba-4feb digest_archive = digest_issue = 1 digest_maxdays = digest_maxlines = digest_name = hugomartin-prueba-4feb digest_rm_footer = digest_rm_fronter = digest_volume = 1 digest_work_dir = get_access = list index_access = closed info_access = open intro_access = list maxlength = 1194304 # = 400000000000000 message_footer << END "Un e-mail no podrá ser considerado S.P.A.M. mientras incluya una forma de ser removido" (United States Federal Requeriments or Commercial E-mail Bill, Sección 301, párrafo (a) (2) (C) de S. 1618, Decreto S. 1618 Título 3o). END message_fronter << END END message_headers << END END moderate = moderator = mungedomain = no noadvertise << END END precedence = bulk purge_received = no reply_to = resend_host = restrict_post = hugomartin-prueba-4feb.restrict sender = owner-hugomartin-prueba-4feb strip = yes subject_prefix = [hugomartin-prueba-4feb] subscribe_policy = closed taboo_body << END END taboo_headers << END END unsubscribe_policy = closed+confirm welcome = yes which_access = closed who_access = closed -------] usr/local/majordomo/lists/hugomartin-prueba-4feb.config ]------------------------------------------------------------- -------[ usr/local/majordomo/lists/hugomartin-prueba-4feb.restric [------------------------------------------------------------- ... aqui van las cuentas a las que se les ***permite*** enviar correos a la lista -------] usr/local/majordomo/lists/hugomartin-prueba-4feb.restric ]------------------------------------------------------------- -------[ usr/local/majordomo/lists/hugomartin-prueba-4feb [------------------------------------------------------------- ... aqui van las ***cuentas que forman parte*** de la lista -------] usr/local/majordomo/lists/hugomartin-prueba-4feb ]------------------------------------------------------------- #######################] Ejemplo ]################################ EOF