all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: <cptvlaze@tutamail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Help setting up POP3 email (rmail)
Date: Wed, 24 Feb 2016 20:28:31 +0000	[thread overview]
Message-ID: <87si0h97kg.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <KBIhvg4--3-0@tutamail.com> (cptvlaze@tutamail.com)

<cptvlaze@tutamail.com> writes:

> Thanks for the quick response. Is wondering if it was strictly necessary to 
> enter my password inside my code, wouldn't it be a major security
> issue?

It can be a security issue, though most graphical mail clients store it
in a config file somewhere, which is just as bad.

As I said, if it's a problem then don't mention passwords anywhere.  If
I remember correctly, if you don't have an authinfo file then
Message-mode will ask you the password the first time you send an email.
You can also make an authinfo.gpg file which is the encrypted version of
authinfo, you can read about that on the web.

For rmail just don't include the password:
(setq rmail-primary-inbox-list
      (cons (concat "pop3://"
		    "your_username"
		    "@your_pop3_server.com") nil))

Rmail will prompt you for the password when you receive mail.

BR,
Robert Thorpe

> I also have a problem with my init file, as emacs can't detect it. I have 
> created one at ~/.emacs.d/init.el, but this folder is protected (only 
> accessible via su), which forces me to use emacs under sudo. Is there
> any way to solve these problems?   Thanks again.
>
> 24. Feb 2016 01:41 por rt@robertthorpeconsulting.com:
>
>
>> <> cptvlaze@tutamail.com> > writes:
>>
>>> Good afternoon. I've started using emacs today, so I'm a total newbie
>>> at this time.  I want to read my GMX email from emacs, using POP3 and
>>> rmail, but I just don't know where to start. I've read lots of wikis
>>> and manuals and I'm completely lost. Could somebody throw a bit of
>>> light over this?  Thank you.
>>
>> There are two parts to this.  Firstly, there's setting up outgoing
>> mail.  That uses the part of Emacs called "Message" (which is the same
>> for GNUs and Rmail).  The second step is to setup Rmail for receiving
>> mail.
>>
>> You need to find the names of the servers to communicate with.  You need
>> the SMTP server for outgoing mail and the POP3 server for incoming
>> mail.  If you're already using a mail program you can find that info in
>> it's settings.
>>
>> Your init file maybe init.el or .emacs.  Either way, put the following
>> into it:
>>
>> ;; Firstly setup SMTP.
>> (setq send-mail-function 'smtpmail-send-it)
>>       smtpmail-smtp-server "your_smtp_server.com"
>>       smtpmail-smtp-service 587
>>       user-mail-address "> your_email_address@domain.com> ")
>> ;; The line below puts sent items into an mbox file.
>> (setq mail-default-headers "FCC: ~/Mail/Sent")
>> ;; This puts my name correctly in email To/From lines.
>> (setq user-full-name "Your Name")
>>
>> ;; Setup Rmail
>> (setq rmail-primary-inbox-list
>>       (cons (concat "pop3://"
>> 		    "your_username"
>> 		    "your_password"
>> 		    "@your_pop3_server.com") nil))
>>
>> I only use the "concat" above so I can separate out the various
>> elements.  If you omit the password then Emacs will ask you the first
>> time you recieve mail.
>>
>> Finally, you can setup an ".authinfo" file.  This is for sending mail
>> with Message-mode.  It avoids entering the password.
>>
>> Create a file called .authinfo in your ~/ directory.  It only needs to
>> contain one line:
>> "machine your_smtp_server.com login your_username port 587 password
>> your_password"
>>
>> Many ISP prefer you to use port 587 for outgoing emails rather than port
>> 25, which was the traditional port.  That's why I used "587" above in
>> .authinfo and smtpmail-smtp-service.  If your ISP is a traditionalist
>> and prefers 25 then replace those numbers with 25.
>>
>> You can also setup encryption, see the manuals to Message and Rmail.
>> Evaluate the lines below with C-x C-e.
>> (info "(message) Top")
>> (info "(emacs) Rmail").
>>
>> If you have a username with a "@" symbol in it that will activate a bug
>> in Rmail.  I have a solution for that if it's a problem.
>>
>> BR,
>> Robert Thorpe



  parent reply	other threads:[~2016-02-24 20:28 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-23 19:21 Help setting up POP3 email (rmail) cptvlaze
2016-02-23 22:41 ` Emanuel Berg
2016-02-24  0:41 ` Robert Thorpe
2016-02-24  2:50   ` Nick Dokos
2016-02-24  3:11     ` Emanuel Berg
2016-02-24 16:41       ` Nick Dokos
2016-02-24 14:38   ` cptvlaze
2016-02-24 14:46     ` tomas
2016-02-24 15:34       ` cptvlaze
2016-02-24 20:16         ` Robert Thorpe
2016-02-24 20:28     ` Robert Thorpe [this message]
2016-02-24 23:56       ` Emanuel Berg
2016-02-24 23:47     ` Emanuel Berg
2016-02-26 18:46       ` cptvlaze
2016-02-26 19:57         ` Emanuel Berg
2016-02-26 23:56           ` cptvlaze
2016-02-27  0:06             ` John Mastro
2016-02-27  4:05               ` Emanuel Berg
2016-02-27  8:28                 ` tomas
2016-02-27  9:55                   ` Eli Zaretskii
2016-02-28  2:11                   ` Emanuel Berg
2016-02-28 17:52                     ` Robert Thorpe
2016-02-29  0:20                       ` Gnus (was: Re: Help setting up POP3 email (rmail)) Emanuel Berg
2016-02-29  2:31                         ` Robert Thorpe
2016-03-02  2:28                           ` Emanuel Berg
2016-02-29  0:55                       ` Help setting up POP3 email (rmail) Emanuel Berg
2016-02-29  8:47                         ` tomas
2016-02-27  0:44             ` Emanuel Berg
  -- strict thread matches above, loose matches on Subject: below --
2016-02-27 10:24 Joe Westlaw

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87si0h97kg.fsf@robertthorpeconsulting.com \
    --to=rt@robertthorpeconsulting.com \
    --cc=cptvlaze@tutamail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.