| Despabilando la MonoNeurona::Internet es de todos [Inicio] [Regresar] |
|
Debian \ Mailman con Postfix Este artículo ha sido consultado en 1,042 ocasiones.
Las listas de correo son fundamentales para toda organización que desee aprovechar las grandes ventajas del trabajo distribuido. Mailman es un manejador de listas de correo para el trabajo en grupo que está licenciado bajo la GPL. Con Mailman, sólo es necesario enviar un único email, y todos los miembros de la lista lo recibirán y podrán discutirlo grupalmente. Una de las mejores prestaciones de las listas de Mailman, es que lleva un registro navegable desde el browser de los correos que han sido enviados por los integrantes de la lista, de modo que al mismo tiempo que se trabaja, se va creando una archivo detallado de las labores realizadas. Bueno, primero instalamos los paquetes que necesitamos: # apt-get install apache-perl postfix mailman Creamos la nueva lista "mailman", que es necesaria para que mailman funcione correctamente: # newlist mailman Ahora creamos el archivo /etc/apache-perl/mailman.conf con el siguiente contenido: ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/ <Directory /usr/lib/cgi-bin/mailman/> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory> Alias /images/ /usr/share/images/ Alias /pipermail/ /var/lib/mailman/archives/public/ <Directory /var/lib/mailman/archives/public> Options FollowSymLinks </Directory> Hasta abajo del archivo /etc/apache-perl/http.conf agregamos las líneas: ### Include para Mailman Include /etc/apache-perl/mailman.conf Ahora editamos el archivo /etc/postfix/main.cf, cambie donde dice mononeurona.org por el nombre de su dominio: # See /usr/share/postfix/main.cf.dist for a commented, more complete version smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings # delay_warning_time = 4h #MAILMAN-INICIA default_process_limit = 160 #disable_dns_lookups = yes ## Esto lo quite yo owner_request_special = no virtual_maps = hash:/var/lib/mailman/data/virtual-mailman virtual_mailbox_maps = hash:/var/lib/mailman/data/virtual-mailman alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases #MAILMAN-TERMINA myhostname = mononeurona.org #alias_maps = hash:/etc/aliases #alias_database = hash:/etc/aliases myorigin = $myhostname mydestination = www.mononeurona.org, mononeurona.org, localhost, localhost.localdomain, localhostº relayhost = mynetworks = 127.0.0.0/8 smtpd_recipient_restrictions = permit_mynetworks,reject_non_fqdn_recipient, check_sender_access hash:/etc/postfix/usuarios reject_unauth_destination mailbox_command = mailbox_size_limit = 0 recipient_delimiter = + mailman_destination_recipient_limit = 1 unknown_local_recipient_reject_code = 550 El archivo /etc/mailman/mm_cfg.py: """This is the module which takes your site-specific settings. From a raw distribution it should be copied to mm_cfg.py. If you already have an mm_cfg.py, be careful to add in only the new settings you want. The complete set of distributed defaults, with annotation, are in ./Defaults. In mm_cfg, override only those you want to change, after the from Defaults import * line (see below). Note that these are just default settings - many can be overridden via the admin and user interfaces on a per-list or per-user basis. Note also that some of the settings are resolved against the active list setting by using the value as a format string against the list-instance-object's dictionary - see the distributed value of DEFAULT_MSG_FOOTER for an example.""" ####################################################### # Here's where we get the distributed defaults. # from Defaults import * ############################################################## # Put YOUR site-specific configuration below, in mm_cfg.py . # # See Defaults.py for explanations of the values. # #------------------------------------------------------------- # The name of the list Mailman uses to send password reminders # and similar. Don't change if you want mailman-owner to be # a valid local part. MAILMAN_SITE_LIST = 'mailman' #------------------------------------------------------------- # If you change these, you have to configure your http server # accordingly (Alias and ScriptAlias directives in most httpds) DEFAULT_URL_PATTERN = 'http://%s/cgi-bin/mailman' PRIVATE_ARCHIVE_URL = '/mailman/private' IMAGE_LOGOS = '/images/mailman/' #------------------------------------------------------------- # Default domain for email addresses of newly created MLs DEFAULT_EMAIL_HOST = 'mononeurona.org' DEFAULT_HOST_NAME = 'mononeurona.org' #------------------------------------------------------------- # Default host for web interface of newly created MLs DEFAULT_URL_HOST = 'mononeurona.org' #------------------------------------------------------------- # Required when setting any of its arguments. add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) #------------------------------------------------------------- # The default language for this server. DEFAULT_SERVER_LANGUAGE = 'es' #------------------------------------------------------------- # Iirc this was used in pre 2.1, leave it for now USE_ENVELOPE_SENDER = 0 # Still used? #------------------------------------------------------------- # Unset send_reminders on newly created lists DEFAULT_SEND_REMINDERS = 0 #------------------------------------------------------------- # Uncomment this if you configured your MTA such that it # automatically recognizes newly created lists. # (see /usr/share/doc/mailman/README.{EXIM,...}) # MTA=None # Misnomer, suppresses alias output on newlist #------------------------------------------------------------- # Uncomment if you use Postfix virtual domains, but be sure to # read /usr/share/doc/mailman/README.POSTFIX first. MTA='Postfix' # Note - if you're looking for something that is imported from mm_cfg, but you # didn't find it above, it's probably in /usr/lib/mailman/Mailman/Defaults.py. OWNERS_CAN_DELETE_THEIR_OWN_LISTS = Yes POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mononeurona.org'] Reiniciamos postfix y mailman:
# /etc/init.d/postfix reload Cree una lista de prueba para comprobar que todo funcione correctamente: # newlist listaprueba ¡Y ya está! Si algo no funciona revise los logs. Última actualización: 2007-04-29 10:56:59-05 |
| Este trabajo está licenciado bajo la MonoNeurona Commons License. 2002-2008 © :: Colectivo MonoNeurona.org :: |