Configurar smtp, pop e imap en Hotmail, Gmail y Yahoo

Mucha gente prefiere usar un cliente de correo local para leer el correo que el navegador, si tienes una cuenta tipo Hotmail, Gmail o Yahoo tendrás que configurar los servicios SMTP y POP o IMAP para poder usarlos desde el cliente de correo local.

En las propias páginas web de estos clientes de correo web podemos encontrar la información necesaria, en la mayoría de clientes encontrareis en el menú superior con un botón que suele ser algo tipo Herramientas -> Añadir Cuenta, se os abrirá una ventana donde tendréis que ir completando los datos que os pongo a continuación.

En los datos que os encontrareis debajo tenéis la opción de configurar vía IMAP y vía POP, si soléis estar siempre conectados a Internet os recomiendo IMAP ahora si os conectáis esporadicamente para descargar el correo nuevo, la mejor opción es POP.

Configurar cuenta de Gmail

• Servidor IMAP: imap.gmail.com
Usar SSL: Sí
Puerto: 993
•Servidor POP: pop.gmail.com
Usar SSL: Sí
Puerto: 995
•Servidor SMTP: smtp.gmail.com
Usar autenticación: Sí
Usar SSL: Sí
Puerto: 465 o 587
•Nombre de cuenta: usuario@gmail.com
Dirección de correo electrónico: usuario@gmail.com
Contraseña: Su contraseña

Configurar cuenta de Hotmail

•Servidor IMAP: No tiene
•Servidor POP: pop3.live.com
Usar SSL: Sí
Puerto: 995
•Servidor SMTP: smtp.live.com
Usar autenticación: Sí
Usar SSL: Sí
Puerto: 25
•Nombre de cuenta: usuario@hotmail.com
Dirección de correo electrónico: usuario@hotmail.com
Contraseña: Su contraseña

Para configurar cuenta de Yahoo

Lo primero que vas tener que hacer es registrarte aquí: https://buildersoft.com.mx/ , una vez hecho esto los datos serian los siguientes:

•Servidor IMAP: imap.mail.yahoo.com
Usar SSL: Sí
Puerto: 993
•Servidor POP: pop.mail.yahoo.com
Usar SSL: No
Puerto: 110
•Servidor SMTP: smtp.mail.yahoo.com
Usar autenticación: Sí
Usar SSL: Sí
Puerto: 465
•Nombre de cuenta: usuario@yahoo.com
Dirección de correo electrónico: usuario@yahoo.com
Contraseña: Su contraseña

Postfix – Comandos básicos

Para aquellos que se estén iniciando en el mundo del MTA Postfix, ahí van unos comandos útiles para el manejo de la cola de correo:

postsuper -d numero (eliminar el mensaje)
postsuper -d ALL (eliminar todos los mensajes)
postsuper -r Number (Encolar de nuevo el mensaje)
postsuper -r ALL (Encolar de nuevo todos los mensajes)
postqueue -p (Mostrar la cola de correo por pantalla)
postqueue -f (Hacer un flush de la cola de correo, intentar enviar todos los correos)

How to Install EPEL Repository on CentOS

1. Installing  EPEL Repository

Install EPEL Repository On 32-bit CentOS Linux 5.5:
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Install EPEL Repository On 64-bit CentOS Linux 5.5:
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

Sample Output:
[root@gembul ~]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Preparing…             ########################################### [100%]
1:epel-release           ########################################### [100%]

2. Check and updating your repository list, make sure the epel.repo has been installed
# yum update
# yum repolist

Sample Output:

Loading “skip-broken” plugin
Loading “fastestmirror” plugin
repo id           repo name                                                                status
addons           CentOS-5 – Addons                                                 enabled
base                CentOS-5 – Base                                                      enabled
epel                Extra Packages for Enterprise Linux 5 -             enabled
extras             CentOS-5 – Extras                                                   enabled
updates          CentOS-5 – Updates                                                enabled

3. Edit your epel.repo file configuration and the priority of yum repository configuration
# vi /etc/yum.repos.d/epel.repo

Sample Output :
[epel]
name=Extra Packages for Enterprise Linux 5 – $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 5 – $basearch – Debug #baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 5 – $basearch – Source #baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL gpgcheck=1

Done :)

Instalar mcrypt en PHP 5.3.3 on CentOS

Para verificar si se encuentra disponible el paquete en los repositorios:

yum list php* | grep mcry

De estar disponible se procede a la instalacion del paquete mediante:

yum install php53-mcrypt

yum install php-mcrypt

Con la siguiente linea se puede agregar el repositorio para poder realizar la instalación

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm yum install php53-mcrypt

Linux Change Hostname

How do I change hostname under Linux operating system?

You need to use the hostname command. It is used to either set or display the current host or domain name of the system. The hostname is used by many of the networking programs (such as sendmail, Apache servers) to identify the machine.

Display Hostname

Type the following command:

hostname

Sample ouputs:

server.nixcraft.net.in

Step # 1: Change Hostname

You need to update two files:

  1. Linux Distribution specific file. Edit appropriate file as per your distribution as follows.
  2. /etc/hosts

Redhat / CentOS / Fedora: Change Hostname

Edit /etc/sysconfig/network, enter:

vi /etc/sysconfig/network

Set HOSTNAME=newhost.example.com, enter:

HOSTNAME=server2.nixcraft.com

Save and close the file. Type the following command:

hostname server2.nixcraft.com
hostname

Now, proceed to step # 2.

Debian / Ubuntu: Change Hostname

Edit, /etc/hostname file, enter:

vi /etc/hostname

Delete old name and add new name:

server2.nixcraft.com

Save and close the file. Type the following command:

hostname server2.nixcraft.com
hostname

Now, proceed to step # 2.

Slackware: Change Hostname

Edit /etc/HOSTNAME, enter:

vi /etc/HOSTNAME

Delete old name and add new one:

server2.nixcraft.com

Save and close the file. Type the following command:

hostname server2.nixcraft.com
hostname

Now, proceed to step # 2.

Suse / OpenSuse: Change Hostname

Edit /etc/HOSTNAME, enter:
Delete old name and add new one:

server2.nixcraft.com

Save and close the file. Type the following command:

hostname server2.nixcraft.com
hostname

Now, proceed to step # 2.

Step #2: Update /etc/hosts

Now, you need to edit /etc/hosts file, enteR:

vi /etc/hosts

Change all old hostname with newer one.