Gnus development mailing list
 help / color / mirror / Atom feed
From: Sivaram Neelakantan <nsivaram.net@gmail.com>
To: ding@gnus.org
Subject: Re: Multiple gmail accounts and SMTP (again)
Date: Mon, 25 Jul 2011 23:28:37 +0530	[thread overview]
Message-ID: <82livmutrm.fsf@gmail.com> (raw)
In-Reply-To: <87r55fqtyv.fsf@DeuxExMachina.config>

On Mon, Jul 25 2011,Johnny  wrote:


[snipped 28 lines]

> (For SMTP, I am using the emacs-wiki setup, as described here:
> http://www.emacswiki.org/emacs/MultipleSMTPAccounts)
>
> I then attempted to use virtual server names for SMTP as well, i.e.:
> In .gnus.el:
> (setq smtp-accounts '(
>                       (ssl "gmail1" "smtp.gmail.com" "587"
>                             "gmail1@gmail.com" nil)
>                       (ssl "gmail2" "smtp.gmail.com" "587"
>                             "gmail2@gmail.com" nil)))
>
> And in authinfo:
>  machine gmail1 login gmail1@gmail.com password gmail1pass port 587
>  machine gmail2 login gmail2@gmail.com password gmail2pass port 587
>
> This breaks the sendmail/authinfo functionality such that I have to
> enter credentials every time sending mail from either account.
>
> If I instead replace the 2 lines above in authinfo with:
>  machine smtp.gmail.com login gmail1@gmail.com password gmail1pass port 587
>
> This makes mailing from both addresses work. I /think/ the setup makes
> gmail2 use gmail1's SMTP credentials to send the mail (note that I
> didn't have to do any changes in .gnus.el on the gmail2 credentials),
> and indeed, when it is received, the posting-styles for gmail2 is used,
> but the senders mail address has been changed to gmail1, which I do not
> fancy at all.
>
> Any ideas on how to enable using either gmail as sender?
>
> Cheers

Can you post your customised sendmail parts that you took from 
 http://www.emacswiki.org/emacs/MultipleSMTPAccounts

It's possible that smtp-mail-address is not getting correctly picked up?

 sivaram
 -- 




  reply	other threads:[~2011-07-25 17:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-24 20:55 Johnny
2011-07-25 17:58 ` Sivaram Neelakantan [this message]
2011-07-25 20:23   ` Johnny
2011-08-21  4:14 ` Lars Magne Ingebrigtsen

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=82livmutrm.fsf@gmail.com \
    --to=nsivaram.net@gmail.com \
    --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).