From: Joseph Gay <gilleylen@gmail.com>
To: info-gnus-english@gnu.org
Subject: Re: Multiple sources and accounts with GNUS
Date: Mon, 20 Dec 2010 16:24:19 -0600 [thread overview]
Message-ID: <87zks0ytf0.fsf@geneva.hpsy.me> (raw)
In-Reply-To: <87r5dco6vm.fsf@savara.sat.thregr.org>
Yuri D'Elia <wavexx@users.sf.net> writes:
> Hi everyone. After a long period with mutt (which indeed sucks less but
> doesn't do news) and sylpheed/claws (which just sucks), I'm back to
> GNUS. I'm a sadist underneath - I know.
>
> So far I was able to setup all the receiving accounts successfully (a
> couple of nnimap accounts, gmane via nntp, nnmaildir for local spools,
> etc), but I'm having trouble to send outgoing e-mails to different
> accounts depending on the current group.
>
> I'm fine with the default of using sendmail, but for a couple of IMAP
> groups I need to use a specific SMTP server with credentials.
>
> Could I use 'gnus-parameters' for that, and change
> 'message-send-mail-function' depending on the group? Any pointer or
> small example in how to do this?
>
> Thanks.
Yuri,
I recently set up multiple SMTP accounts and got it working to my
satisfaction. I thought I'd share a couple of links that I found useful.
Here's one that describes usage of msmtp as mentioned in other
followups:
http://cataclysmicmutation.com/blog
/2010/11/19/multiple-gmail-accounts-in-gnus.html
I didn't end up going that route, but I am pretty sure it would work
nicely.
Here's approximately what I ended up doing:
http://www.mostlymaths.net
/2010/12/emacs-30-day-challenge-using-gnus-to.html
This is a configuration found on emacswiki whereby the SMTP credentials
are set based on the from address.
The problem I ran into was that auth-source picks credentials solely
based on machine name and protocol, and since both my SMTP accounts are
on the same machine, it always picked the first set of credentials.
I did something rather ugly, which was to use the full domain name for
one auth entry, and the aliased domain name for the other, in which case
auth-source treats them as two separate machines. This also necessitated
using the --insecure option for gnutls as the certificate check fails
for the full domain because it was registered using the aliased domain.
So, after all that, I probably should have used msmtp, but now it works
a charm.
One other tip: if you use auth-source, don't set nnimap-authinfo-file
or point the smtp credentials at an authinfo file; gnus should use
auth-source to handle all of that, with the end result being that you
won't have to type your authinfo symmetric phrase in a million times.
I hope some of that will be useful from a fellow masochist.
next prev parent reply other threads:[~2010-12-20 22:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-20 14:29 Yuri D'Elia
2010-12-20 20:44 ` Tassilo Horn
2010-12-20 22:24 ` Joseph Gay [this message]
[not found] ` <mailman.0.1292877887.26867.info-gnus-english@gnu.org>
2010-12-21 14:20 ` Stephen Leake
2010-12-21 16:22 ` Tassilo Horn
[not found] <mailman.7.1292862320.13743.info-gnus-english@gnu.org>
2010-12-20 16:42 ` Richard Riley
2010-12-21 19:14 ` Yuri D'Elia
2010-12-21 19:49 ` Tassilo Horn
2010-12-22 11:25 ` Yuri D'Elia
2010-12-22 12:21 ` Tassilo Horn
2010-12-22 17:39 ` Yuri D'Elia
2010-12-23 8:22 ` Alberto Luaces
2010-12-23 8:35 ` Tassilo Horn
[not found] ` <mailman.3.1293039604.895.info-gnus-english@gnu.org>
2011-01-02 7:50 ` Lars Magne Ingebrigtsen
[not found] ` <mailman.7.1292958880.30697.info-gnus-english@gnu.org>
2010-12-22 13:58 ` Richard Riley
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=87zks0ytf0.fsf@geneva.hpsy.me \
--to=gilleylen@gmail.com \
--cc=info-gnus-english@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.
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).