[Linuxtrent] problemi con sendmail

  • From: "Federico Flego" <flego.federico@xxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Wed, 6 Dec 2006 15:40:13 +0100

Ciao a tutti!

sto cercando di usare fetchmail per leggere la mail da un IMAP e
inoltrarla al mio indirizzo gmail.

Ho trovato su google il seguente comando:

fetchmail -k -a -p IMAP \
   -S localhost \
   --smtpname flego.federico@xxxxxxxxx \
   -u flego \
   --auth password \
   -v imap.nomedominio

eseguendolo ottengo:

fetchmail: 6.3.4 querying imap.nomedominio (protocol IMAP) at Wed 06
Dec 2006 03:29:57 PM CET: poll started
fetchmail: IMAP< * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
STARTTLS XMAGICTRASH] Courier-IMAP ready. Copyright 1998-2005 Double
Precision, Inc.  See COPYING for distribution information.
fetchmail: IMAP> A0001 CAPABILITY
fetchmail: IMAP< * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
STARTTLS XMAGICTRASH
fetchmail: IMAP< A0001 OK CAPABILITY completed
fetchmail: IMAP> A0002 STARTTLS
fetchmail: IMAP< A0002 OK Begin SSL/TLS negotiation now.
fetchmail: Issuer Organization: nomeorganizzazione
fetchmail: Issuer CommonName: nome
fetchmail: Server CommonName: imap.nomedominio
fetchmail: imap.nomedominio key fingerprint: mia_fingerprint
fetchmail: Server certificate verification error: unable to get local
issuer certificate
fetchmail: Server certificate verification error: certificate not trusted
fetchmail: Server certificate verification error: unable to verify the
first certificate
fetchmail: IMAP> A0003 CAPABILITY
fetchmail: IMAP< * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL
ACL2=UNION XMAGICTRASH
fetchmail: IMAP< A0003 OK CAPABILITY completed
fetchmail: IMAP> A0004 LOGIN "flego" *
fetchmail: IMAP< A0004 OK LOGIN Ok.
fetchmail: IMAP> A0005 SELECT "INBOX"
fetchmail: IMAP< * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
fetchmail: IMAP< * OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged
\Deleted \Seen)] Limited
fetchmail: IMAP< * 1 EXISTS
fetchmail: IMAP< * 0 RECENT
fetchmail: IMAP< * OK [UIDVALIDITY 1147694513] Ok
fetchmail: IMAP< * OK [MYRIGHTS "acdilrsw"] ACL
fetchmail: IMAP< A0005 OK [READ-WRITE] Ok
1 message for flego at imap.nomedominio.
fetchmail: IMAP> A0006 FETCH 1 RFC822.SIZE
fetchmail: IMAP< * 1 FETCH (RFC822.SIZE 3194)
fetchmail: IMAP< A0006 OK FETCH completed.
fetchmail: IMAP> A0007 FETCH 1 RFC822.HEADER
fetchmail: IMAP< * 1 FETCH (RFC822.HEADER {2103}
reading message flego@xxxxxxxxxxxxxxxx:1 of 1 (2103 header octets)
fetchmail: SMTP< 220 localhost.localdomain ESMTP Sendmail
8.13.6/8.13.6; Wed, 6 Dec 2006 15:29:57 +0100
fetchmail: SMTP> EHLO localhost.localdomain
fetchmail: SMTP< 250-localhost.localdomain Hello localhost.localdomain
[127.0.0.1], pleased to meet you
fetchmail: SMTP< 250-ENHANCEDSTATUSCODES
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-8BITMIME
fetchmail: SMTP< 250-SIZE
fetchmail: SMTP< 250-DSN
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-DELIVERBY
fetchmail: SMTP< 250 HELP
fetchmail: SMTP> MAIL FROM:<flego@xxxxxxxxxxxxxx> SIZE=3194
fetchmail: SMTP< 250 2.1.0 <flego@xxxxxxxxxxxxxx>... Sender ok
fetchmail: SMTP> RCPT TO:<flego.federico@xxxxxxxxx>
fetchmail: SMTP< 250 2.1.5 <flego.federico@xxxxxxxxx>... Recipient ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
#
fetchmail: IMAP< )
fetchmail: IMAP< A0007 OK FETCH completed.
fetchmail: IMAP> A0008 FETCH 1 BODY.PEEK[TEXT]
fetchmail: IMAP< * 1 FETCH (BODY[TEXT] {1091}
(1091 body octets) ***************************.******
fetchmail: IMAP< )
fetchmail: IMAP< A0008 OK FETCH completed.
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 kB6ETvPJ007903 Message accepted for delivery
not flushed
fetchmail: IMAP> A0009 STORE 1 +FLAGS (\Seen)
fetchmail: IMAP< * 1 FETCH (FLAGS (\Seen \Deleted))
fetchmail: IMAP< A0009 OK STORE completed.
fetchmail: IMAP> A0010 LOGOUT
fetchmail: IMAP< * BYE Courier-IMAP server shutting down
fetchmail: IMAP< A0010 OK LOGOUT completed
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0 localhost.localdomain closing connection
fetchmail: 6.3.4 querying imap.radiotrevisan.com (protocol IMAP) at
Wed 06 Dec 2006 03:29:57 PM CET: poll completed
fetchmail: normal termination, status 0

fin qui, sembra tutto bene. Ma la mail a flego.federico@xxxxxxxxx non
arriva mai.

[root@gardel ~]# tail /var/log/maillog
Dec  6 15:29:57 localhost sendmail[7903]: kB6ETvPJ007903:
from=<flego@xxxxxxxxxxxxxx>, size=3278, class=0, nrcpts=1,
msgid=<Pine.LNX.4.60.0612051525570.10777@xxxxxxxxxxx>, proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Dec  6 15:29:57 localhost sendmail[7905]: kB6ETvPJ007903:
to=<flego.federico@xxxxxxxxx>, delay=00:00:00, xdelay=00:00:00,
mailer=esmtp, pri=123278, relay=gsmtp183.google.com. [64.233.183.27],
dsn=4.0.0, stat=Deferred: Connection refused by gsmtp183.google.com.

Ho cercato per due ore su google come risolvere il problema ma, seppur
trovando molte pagine dove riportano problemi simili, non ho capito
come risolvere il problema...

Questo l'output di

[root@gardel ~]# dig MX gmail.com

; <<>> DiG 9.3.2 <<>> MX gmail.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61924
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 2

;; QUESTION SECTION:
;gmail.com.                     IN      MX

;; ANSWER SECTION:
gmail.com.              919     IN      MX      5 gmail-smtp-in.l.google.com.
gmail.com.              919     IN      MX      10
alt1.gmail-smtp-in.l.google.com.
gmail.com.              919     IN      MX      10
alt2.gmail-smtp-in.l.google.com.
gmail.com.              919     IN      MX      50 gsmtp163.google.com.
gmail.com.              919     IN      MX      50 gsmtp183.google.com.

;; AUTHORITY SECTION:
gmail.com.              345087  IN      NS      ns3.google.com.
gmail.com.              345087  IN      NS      ns4.google.com.
gmail.com.              345087  IN      NS      ns1.google.com.
gmail.com.              345087  IN      NS      ns2.google.com.

;; ADDITIONAL SECTION:
gsmtp163.google.com.    781     IN      A       64.233.163.27
gsmtp183.google.com.    104     IN      A       64.233.183.27

;; Query time: 2 msec
;; SERVER: 192.168.10.1#53(192.168.10.1)
;; WHEN: Wed Dec  6 15:38:24 2006
;; MSG SIZE  rcvd: 262

ma a me non dice molto! :(

Qualcuno mi puo' dare una mano a capire?

Grazie mille e buona serata a tutti!

Federico.

Linux gardel 2.6.16-1.2122_FC5smp #1 SMP Sun May 21 15:18:32 EDT 2006
i686 i686 i386 GNU/Linux
--
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: