Visualizzazione post con etichetta fetchmail. Mostra tutti i post
Visualizzazione post con etichetta fetchmail. Mostra tutti i post

venerdì 31 gennaio 2014

Scaricare mail con fetchmail e forwardarle tramite procmai

Creare il file /etc/fetchmail_proc_rc:

set no bouncemail
defaults:
  antispam -1
  batchlimit 100
poll SERVER_DI_POSTA with protocol imap
user NOME_UTENTE password PASSWORD is root
ssl
sslproto SSL3
fetchall
keep
no rewrite
no fetchall
mda "/usr/bin/procmail /etc/procmailrc.fetch -f %F -d %T";

Creare il file /etc/procmailrc.fetch:

:0
* .*
{
    :0 c
    $DEFAULT

    :0 
    !INDIRIZZO1@DOMINIO INDIRIZZO2@DOMINIO
}

Testare il tutto lanciando il comando:

fetchmail -f /etc/fetchmail_proc_rc

Inserire il lancio su crontab:

*/5 * * * * /usr/bin/fetchmail -f /etc/fetchmail_proc_rc >/dev/null 2>&1

venerdì 4 dicembre 2009

fetchmailconf: /usr/bin/python: can't open file '/usr/lib/python2.6/site-packages/fetchmailconf.py': [Errno 2] No such file or directory

Lanciando il comando fetchmailconf subito dopo averlo installato con Synaptic si ottiene l'errore del titolo.

Non c'e' nessuna directory con nome 'site-packages' in '/usr/lib/python2.6', ma c'e' un file '/usr/lib/python2.6/dist-packages/fetchmailconf.py'.

Dopo aver aggiornato lo script '/usr/bin/fetchmailconf' per usare il path corretto, fetchmailconf viene eseguito correttamente.

lunedì 12 ottobre 2009

fetchmail: connection to localhost:smtp [::1/25] failed: Connection refused.

Aggiungere queste linee al file /etc/postfix/main.cf
#
inet_interfaces = 127.0.0.1, [::1]
smtp_bind_address = 0.0.0.0
smtp_bind_address6 = ::
inet_protocols = all
#

Se la macchina ha un IP address statico puo' essere aggiunto alla linea inet_interfaces:
inet_interfaces = 192.168.1.6, 127.0.0.1, [::1]