info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple sources and accounts with GNUS


From: Joseph Gay
Subject: Re: Multiple sources and accounts with GNUS
Date: Mon, 20 Dec 2010 16:24:19 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]