Fetchmail

De gacq wiki
Revisión del 16:59 27 jul 2006 de 192.168.0.105 (discusión)
(dif) ← Revisión anterior | Revisión actual (dif) | Revisión siguiente → (dif)
Saltar a: navegación, buscar

Configuración

apt-get install fetchmail
            Install a system-wide fetchmail service?
                  YES Run system-wide fetchmail as root?
                  NO Cambiar intervalo de recoleccion en /etc/default/fetchmail
            OPTIONS="--daemon 300"
                  to OPTIONS="--daemon <Your poll time in sec> --syslog" 

Esta configuración la guarda en /etc/default/fetchmail. Sacar "--syslog" sino te llena de mensajes en el syslog

Crear: /etc/fetchmailrc (OJO: permisos 600)

set postmaster "root"
set no bouncemail
set no spambounce
set no syslog
# Bajar borrando los mails
poll gacq.com with proto POP3
       user 'cuenta1' there with password 'mipasswd' is 'cuenta1' here
       user 'cuenta2' there with password 'mipasswd' is 'cuenta2' here

# Bajar sin borrar los mails del servidor 
poll gacq.com with proto POP3 uidl
       user 'cuenta3' there with password 'mipasswd' is 'cuenta3' here keep


Crear archivo registro de mails bajados (No se crea automaticamente - Bug? - PARECE QUE YA ESTA ARREGLADO)

touch /var/mail/.fetchmail-UIDL-cache
chown fetchmail:nogroup /var/mail/.fetchmail-UIDL-cache 
chmod 0710 /var/mail/.fetchmail-UIDL-cache

/etc/init.d/fetchmail restart

Errores

Un mail con dominio inexistente nunca se borra

/var/log/mail.log

Jan 29 10:51:26 geacequ fetchmail[9670]: SMTP error: 450 <Barton@hiperhijitus>: Sender address rejected: Domain not found
Jan 29 10:56:26 geacequ fetchmail[9670]: SMTP error: 450 <Barton@hiperhijitus>: Sender address rejected: Domain not found
Jan 29 11:01:27 geacequ fetchmail[9670]: SMTP error: 450 <Barton@hiperhijitus>: Sender address rejected: Domain not found

El problema es que el fetchmail intenta enviar el mensaje y el SMTP no lo acepta. Para arreglarlo hay que usar la opcion "antispam" en el archivo /etc/fetchmailrc

password "password" is "user" here options antispam 450;