I used pop3 ssl and now I can download the messages from my account on gmail.com
But I still have problem with sending messages - SMTP is not working...
Below is the output from my *Messages* buffer:
-------------------------------------------------------------------------------------
Loading 50w3 (source)...done
Loading font-lock...
Loading regexp-opt...done
Loading font-lock...done
Loading icomplete...done
Loading codepage...done
Loading ccl...done
For information about the GNU Project and its goals, type C-h C-p.
Loading gnus...
Loading mule-util...done
Loading easymenu...done
Loading gnus...done
Loading gnus-start...done
Loading smtpmail (source)...done
Loading pop3 (source)...
Loading executable...done
Loading /usr/lib/emacs/21.4/x86_64-linux-gnu/fns-21.4.1-x.el (source)...done
Loading pop3 (source)...done
Loading starttls (source)...done
Loading mailabbrev...done
Loading advice...done
Reading /home/alexandru/.newsrc.eld...
Loading gnus-group...done
Reading active file via nnml...
nnml: Reading incoming mail from pop...
Retrieving message list...
Loading cl-macs...done
Retrieving message list...0 of 0 unread
nnml: Reading incoming mail from file...
nnml: Reading incoming mail (no new mail)...done
Reading active file via nnml...done
Loading gnus-cache...done
No new newsgroups
Checking new news...done
Loading gnus-msg...done
Loading cookie1...done
Loading random sigs...done
Sending...
Loading mail-extr...done
Loading mailalias...done
220 mx.gmail.com ESMTP f16sm22103qba 250-mx.gmail.com at your service
250-SIZE 20971520
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
530 5.7.0 Must issue a STARTTLS command first f16sm22103qba
221 2.0.0 mx.gmail.com closing connection f16sm22103qba
if: Sending failed; SMTP protocol error ------------------------------------------------------------------------------------
;; using GNUS to send mail
(setq message-send-mail-function 'smtpmail-send-it)
(setq send-mail-function 'smtpmail-send-it)
;; use 'one file per mail' back end
(setq gnus-select-method '(nnml ""))
(setq gnus-secondary-select-methods nil)
;; tell Gnus how to fetch mail
(setq mail-sources '((file :path "/var/spool/mail/alexandru")
(pop :server "pop.gmail.com"
:port 995
:user "cardaniuc"
:connection ssl
:password "tighina92"
:leave t))) ; leave the mail on the server