From: Rasmus <rasmus@gmx.us>
To: ding@gnus.org
Subject: Re: separate smtps for my accounts
Date: Wed, 17 Sep 2014 14:32:13 +0200 [thread overview]
Message-ID: <87fvfqfmwi.fsf@gmx.us> (raw)
In-Reply-To: <874mw7s894.fsf@skimble.plus.com>
Hi Sharon,
Sharon Kimble <boudiccas@skimble.plus.com> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>> Here's what I've got for mail sending setup, what is your value of
>> message-send-mail-function?
>>
>> (setq message-send-mail-function 'message-send-mail-with-sendmail)
>> (setq sendmail-program "msmtp")
>>
> Thanks Eric, here’s what I have -
>
> (setq smtpmail-smtp-server "relay.plus.net")
> (setq send-mail-function 'smtpmail-send-it)
> (setq message-send-mail-function 'smtpmail-send-it)
> (require 'smtpmail)
You may be making your life more complicated than necessary.
Must you use a separate program? Gnus communicates via smtp out of
the box. I suggest you look into X-Message-SMTP-Method and posting
styles.
Here's my posting style for inspiration. I have no other mention of
smtp in my init.el.
(setq gnus-posting-styles
'(((lambda ()
(rasmus/gnus-posting-style-identify ".*" `("To". ,(regexp-quote "mydom.com")) nil))
(GCC "nnimap+mail:mydomain/sent")
(X-Message-SMTP-Method "smtp ssl.mydomain.com 465 rasmus")
(signature (cookie
(expand-file-name "signatures" user-emacs-directory) "" ""))
(Face (gnus-random-face))
(eval (setq smtpmail-stream-type 'ssl)))
((lambda ()
(rasmus/gnus-posting-style-identify
"school" `("To" . ,(regexp-quote "rasmus@school.com"))
(lambda () (rasmus/message-mailto-test (regexp-quote "school.com")))))
(address "rasmus@school.com")
(Face (gnus-convert-png-to-face
(expand-file-name "school.png" gnus-face-directory)))
(Organization "school")
(GCC "nnimap+mail:school/sent")
(X-Message-SMTP-Method "smtp outlook.com 587 rasmus@school.com")
(signature "school")
(eval (setq smtpmail-stream-type nil)))
((lambda ()
(rasmus/gnus-posting-style-identify
(regexp-opt '("gmx" "gmane" "sunsite" "emacs"))
`("To" . ,(regexp-quote "rasmus@gmx.us")) 'message-news-p))
(name "Rasmus")
(address "rasmus@gmx.us")
(Organization nil)
(GCC "nnimap+mail:gmx/sent")
(X-Message-SMTP-Method "smtp mail.gmx.com 587 rasmus@gmx.us")
(eval (setq smtpmail-stream-type nil)))))
> (setq smtpmail-auth-credentials "~/.authinfo")
BTW: Emacs can handle .authinfo.gpg out of the box.
Hope it helps,
Rasmus
next prev parent reply other threads:[~2014-09-17 12:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-12 0:58 Sharon Kimble
2014-09-12 2:08 ` Eric Abrahamsen
2014-09-12 15:05 ` Jorge A. Alfaro-Murillo
2014-09-13 22:03 ` Sharon Kimble
2014-09-14 2:01 ` Eric Abrahamsen
2014-09-16 18:57 ` Sharon Kimble
2014-09-17 2:17 ` Eric Abrahamsen
2014-09-24 15:24 ` Ted Zlatanov
2014-09-17 12:32 ` Rasmus [this message]
2014-09-17 8:37 ` Eric S Fraga
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=87fvfqfmwi.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=ding@gnus.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).