Si queremos cambiar el remitente que aparece cuando enviamos un correo electrónico con exim4 bastará con editar el fichero:
/etc/email-addresses
y añadir una línea del estilo:
usuario: correo@dominio
Un saludo
martes, 8 de marzo de 2011
viernes, 4 de marzo de 2011
Enviar correo electronico desde terminal con exim4
Resumen de configuración para enviar correos desde terminal con exim4
instalamos exim4 :
# aptitude install exim4
En la configuración, insertamos:
Internet site. el correo se envía y recibe utilizando smtp directamente.
en el nombre dejamos el host que nos sale por defecto.
IP: 127.0.0.1 ; ::1
destinaciones, dominios, maquinas de reenvío: en blanco
limitar consultas dns : Si
mecanismo de entrega: mbox /var/mail
dividir la configuración: Si
ahora ya podemos enviar correos des del terminal.
Saludos
instalamos exim4 :
# aptitude install exim4
En la configuración, insertamos:
Internet site. el correo se envía y recibe utilizando smtp directamente.
en el nombre dejamos el host que nos sale por defecto.
IP: 127.0.0.1 ; ::1
destinaciones, dominios, maquinas de reenvío: en blanco
limitar consultas dns : Si
mecanismo de entrega: mbox /var/mail
dividir la configuración: Si
ahora ya podemos enviar correos des del terminal.
Saludos
jueves, 24 de febrero de 2011
Modificar el verbose mode del Apache2
La configuración del verbose mode de Apache2 se encuentra en el fichero /etc/apache2/conf.d/security
Si miramos el contenido del fichero, encontramos:
#
# Disable access to the entire file system except for the directories that
# are explicitly allowed later.
#
# This currently breaks the configurations that come with some web application
# Debian packages.
#
#
# AllowOverride None
# Order Deny,Allow
# Deny from all
#
# Changing the following options will not really affect the security of the
# server, but might make attacks slightly more difficult in some cases.
#
# ServerTokens
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the OS-Type
# and compiled in modules.
# Set to one of: Full | OS | Minimal | Minor | Major | Prod
# where Full conveys the most information, and Prod the least.
#
#ServerTokens Minimal
ServerTokens Prod
#ServerTokens Full
#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of: On | Off | EMail
#
#ServerSignature Off
ServerSignature On
#
# Allow TRACE method
#
# Set to "extended" to also reflect the request body (only for testing and
# diagnostic purposes).
#
# Set to one of: On | Off | extended
#
TraceEnable Off
#TraceEnable On
La parte marcada en negro es lo que nos indica como funciona el verbose, vemos que:
# Set to one of: Full | OS | Minimal | Minor | Major | Prod
Son las diferentes opciones que podemos asignarle, como por ejemplo, des de la menos restrictiva: ServerTokens Full , a la más restrictiva: ServerTokens Prod
Si miramos el contenido del fichero, encontramos:
#
# Disable access to the entire file system except for the directories that
# are explicitly allowed later.
#
# This currently breaks the configurations that come with some web application
# Debian packages.
#
#
# AllowOverride None
# Order Deny,Allow
# Deny from all
#
# Changing the following options will not really affect the security of the
# server, but might make attacks slightly more difficult in some cases.
#
# ServerTokens
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the OS-Type
# and compiled in modules.
# Set to one of: Full | OS | Minimal | Minor | Major | Prod
# where Full conveys the most information, and Prod the least.
#
#ServerTokens Minimal
ServerTokens Prod
#ServerTokens Full
#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of: On | Off | EMail
#
#ServerSignature Off
ServerSignature On
#
# Allow TRACE method
#
# Set to "extended" to also reflect the request body (only for testing and
# diagnostic purposes).
#
# Set to one of: On | Off | extended
#
TraceEnable Off
#TraceEnable On
La parte marcada en negro es lo que nos indica como funciona el verbose, vemos que:
# Set to one of: Full | OS | Minimal | Minor | Major | Prod
Son las diferentes opciones que podemos asignarle, como por ejemplo, des de la menos restrictiva: ServerTokens Full , a la más restrictiva: ServerTokens Prod
martes, 15 de febrero de 2011
Actualizar Debian Lenny 5.0 a Debian Squeeze 6.0
Ya tenemos la 6.0 como estable.
dejamos el sources.list así:
deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.de.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
y, como root:
# aptitude update
# aptitude install aptitude dpkg
# aptitude dist-upgrade
Saludos
dejamos el sources.list así:
deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.de.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
y, como root:
# aptitude update
# aptitude install aptitude dpkg
# aptitude dist-upgrade
Saludos
Suscribirse a:
Entradas (Atom)