meta data de esta página
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
aplicaciones:iredmail:instalacion [2010/11/22 10:04] – lc | aplicaciones:iredmail:instalacion [2023/01/18 14:36] (actual) – editor externo 127.0.0.1 | ||
---|---|---|---|
Línea 1: | Línea 1: | ||
+ | {{tag> Iredmail instalación }} | ||
+ | ===== Instalación Iredmail ===== | ||
==== Hostname ==== | ==== Hostname ==== | ||
Línea 35: | Línea 37: | ||
==== Configuracion de iRedMail ==== | ==== Configuracion de iRedMail ==== | ||
- | Seguimos los pasos y nos pediran | + | Seguimos los pasos y nos pedirán |
< | < | ||
Línea 41: | Línea 43: | ||
</ | </ | ||
- | En la parte de seleccion de protocolos seleccione IMAP e IMAPS, no instale | + | En la parte de seleccion de protocolos seleccione IMAP e IMAPS, no instale |
<note important> | <note important> | ||
Línea 55: | Línea 57: | ||
</ | </ | ||
+ | ===== Creacion de usuarios ===== | ||
+ | |||
+ | Podemos crear lo usuarios desde phpldapadmin o con un script llamado | ||
+ | |||
+ | cd / | ||
+ | sh create_mail_user_OpenLDAP.sh < | ||
+ | |||
+ | ==== Configuracion del script ==== | ||
+ | |||
+ | Pero antes de usarlo debemos modificarlo para que sea capaz de crear usuarios en nuestro dominio. Para esto lo editamos y dejamos las opciones como muestro a continuacion. Claro que esto cambia con cada instalacion, | ||
+ | |||
+ | <code bash> | ||
+ | # ---------------------------------------------- | ||
+ | # ------------ Global Setting ------------------ | ||
+ | # ---------------------------------------------- | ||
+ | |||
+ | # Mailbox format: mbox, Maildir. | ||
+ | HOME_MAILBOX=' | ||
+ | |||
+ | # Maildir format. | ||
+ | # YES: domain.ltd/ | ||
+ | # No: | ||
+ | MAILDIR_IN_MAILBOX=' | ||
+ | MAILDIR_STRING=' | ||
+ | |||
+ | # All mails will be stored under user vmail' | ||
+ | # Files and directories will be ownned as ' | ||
+ | VMAIL_USER_NAME=" | ||
+ | VMAIL_GROUP_NAME=' | ||
+ | |||
+ | # HOME directory for LDAP user. | ||
+ | # mailbox of LDAP user will be: | ||
+ | # ${VMAIL_USER_HOME_DIR}/ | ||
+ | # Such as: | ||
+ | # / | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | VMAIL_USER_HOME_DIR="/ | ||
+ | |||
+ | # ------------------------------------------------------------------ | ||
+ | # -------------------------- LDAP Setting -------------------------- | ||
+ | # ------------------------------------------------------------------ | ||
+ | LDAP_SUFFIX=" | ||
+ | |||
+ | # Setting ' | ||
+ | BASE_DN=" | ||
+ | |||
+ | # Setting ' | ||
+ | # * DOMAIN will be used in mail address: ${USERNAME}@${DOMAIN} | ||
+ | # * DOMAIN_DN will be used in LDAP dn. | ||
+ | DOMAIN_NAME=" | ||
+ | DOMAIN_DN=" | ||
+ | OU_USER_DN=" | ||
+ | OU_GROUP_DN=" | ||
+ | |||
+ | # ---------- rootdn of LDAP Server ---------- | ||
+ | # Setting rootdn of LDAP. | ||
+ | BINDDN=" | ||
+ | |||
+ | # Setting rootpw of LDAP. | ||
+ | BINDPW=" | ||
+ | |||
+ | # ---------- Virtual Domains & Users -------------- | ||
+ | # Set default quota for LDAP users: 104857600 = 100M | ||
+ | QUOTA=' | ||
+ | |||
+ | # Default MTA Transport (Defined in postfix master.cf). | ||
+ | TRANSPORT=' | ||
+ | |||
+ | # Create maildir in file system after user created. | ||
+ | # NOTE: We do *NOT* need this step, because dovecot will create user | ||
+ | # mailbox automatic when user login via IMAP/POP3 successfully. | ||
+ | CREATE_MAILDIR=' | ||
+ | |||
+ | # ------------------------------------------------------------------ | ||
+ | # ------------------------- Welcome Msg ---------------------------- | ||
+ | # ------------------------------------------------------------------ | ||
+ | # Send a welcome mail after user created. | ||
+ | SEND_WELCOME_MSG=' | ||
+ | |||
+ | # Set welcome mail info. | ||
+ | WELCOME_MSG_TITLE=" | ||
+ | WELCOME_MSG_BODY=" | ||
+ | WebMails: http:// | ||
+ | |||
+ | Configuracion de clientes: | ||
+ | - protocolo correo entrante: IMAPS | ||
+ | - protocolo correo saliente: SMTP-AUTH | ||
+ | - nombre servidor: empresa.net | ||
+ | |||
+ | Cambio de password: | ||
+ | - Roundcube: configuracion -> contrasenya." | ||
+ | # ------------------------------------------- | ||
+ | # ----------- End Global Setting ------------ | ||
+ | # ------------------------------------------- | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== WebMails y gestores ===== | ||
+ | |||
+ | ^Component ^URL ^HTTP ^HTTPS ^ | ||
+ | |Roundcube webmail |http:// | ||
+ | |Squirrel webmail |http:// | ||
+ | |PostfixAdmin |https:// | ||
+ | |phpMyAdmin |https:// | ||
+ | |phpLDAPAdmin |https:// | ||
+ | |Awstats |https:// | ||
+ | |||
+ | ==== Comprobacion ==== | ||
+ | Para probar que estén bien instalados y ejecutándose podemos enviarnos un email a nosotros mismos y ver la cabecera: | ||
+ | |||
+ | < | ||
+ | Return-Path: | ||
+ | Delivered-To: | ||
+ | Received: from localhost (empresa.net [127.0.0.1]) | ||
+ | by empresa.net (iRedMail) with ESMTP id 5C4CB155987 | ||
+ | for < | ||
+ | X-Quarantine-ID: | ||
+ | X-Virus-Scanned: | ||
+ | X-Spam-Flag: | ||
+ | X-Spam-Score: | ||
+ | X-Spam-Level: | ||
+ | X-Spam-Status: | ||
+ | tests=[ALL_TRUSTED=-10, | ||
+ | TVD_RCVD_IP4=3.344] autolearn=no | ||
+ | Received: from empresa.net ([127.0.0.1]) | ||
+ | by localhost (empresa.net [127.0.0.1]) (amavisd-new, | ||
+ | with ESMTP id xEJMeXkZWa53 for < | ||
+ | Fri, 22 May 2009 11:30:53 +0100 (WEST) | ||
+ | Received: from 192.168.1.1.168 (empresa.net [127.0.0.1]) | ||
+ | by empresa.net (iRedMail) with ESMTPSA id E581B155846 | ||
+ | for < | ||
+ | MIME-Version: | ||
+ | Date: Fri, 22 May 2009 12:30:53 +0200 | ||
+ | From: Nuevo email < | ||
+ | To: nuevo < | ||
+ | Subject: [SPAM] (sin asunto) | ||
+ | Organization: | ||
+ | Message-ID: < | ||
+ | X-Sender: nuevo@empresa.net | ||
+ | User-Agent: RoundCube WebMail | ||
+ | Content-Transfer-Encoding: | ||
+ | Content-Type: | ||
+ | </ | ||
+ | |||
+ | Si aparece **X-Virus-Scanned** y **X-Spam** | ||
+ | |||
+ | ===== Listas Negras ===== | ||
+ | http:// | ||
+ | |||
+ | |||
+ | Añadimos estas lineas para consultar las bases de datos de listas negras. | ||
+ | |||
+ | <code bash> | ||
+ | vim / | ||
+ | |||
+ | smtpd_recipient_restrictions = reject_unknown_sender_domain, | ||
+ | |||
+ | </ | ||
+ | |||
+ | Y tambien añadimos tiempo de espera entre errores. | ||
+ | <code bash> | ||
+ | smtpd_error_sleep_time = 1s | ||
+ | smtpd_soft_error_limit = 10 | ||
+ | smtpd_hard_error_limit = 20 | ||
+ | </ | ||