Ir al contenido principal

Entradas

Mostrando entradas de febrero, 2014

Reenvío de correo mediante postfix en Ubuntu

Primero instalar o configurar postfix como servidor de correo en Internet: sudo dpkg-reconfigure postfix Parametros a indicar: General type of mail configuration: Internet Site System mail name: example.com Root and postmaster mail recipient: <admin_user_name> Other destinations for mail: server1.example.com, example.com , localhost.example.com, localhost Force synchronous updates on mail queue?: No Local networks: 127.0.0.0/8 Yes doesn't appear to be requested in current config Mialbox size limit (bytes): 0 Local address extension character: + Internet protocols to use: all Configuración del reenvío: sudo postconf -e 'relayhost = smtp. example.com ' sudo  postconf -e 'smtp_sasl_auth_enable = yes' sudo  postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd' sudo  postconf -e 'smtp_sasl_security_options =' Crear el fichero /etc/postfix/sasl_passwd con el siguiente contenido: smtp.example.

Instalar Nagios en Ubuntu 12.04

Instalación de Nagios apt-get install nagios3 postfix nagios-nrpe-plugin   Establecer el correo electrónico: sudo vi /etc/nagios3/conf.d/contacts_nagios2.cfg define contact{         contact_name                    root         alias                           Root         service_notification_period     24x7         host_notification_period        24x7         service_notification_options    w,u,c,r         host_notification_options       d,r         service_notification_commands   notify-service-by-email         host_notification_commands      notify-host-by-email         email                           micorreo@midominio.es         } Configurando postfix para el envío de correos mediante gmail: Instalar postfix como "Sitio de Internet" : aptitude install postfix Editar el fichero /etc/postfix/main.cf y añadir las siguientes líneas al final del archivo: relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/pos