Gnus development mailing list
 help / color / mirror / Atom feed
From: Pankaj Jangid <p4j@j4d.net>
To: Vegard Vesterheim <vegard.vesterheim@uninett.no>
Cc: "dick.r.chiang@gmail.com" <dick.r.chiang@gmail.com>,
	 "ding@gnus.org" <ding@gnus.org>
Subject: Re: How to change from address while in message buffer?
Date: Tue, 7 Jan 2020 16:19:05 +0000	[thread overview]
Message-ID: <0100016f80cd6e93-44a3f3b9-60fa-45d0-8623-249422032687-000000@email.amazonses.com> (raw)
In-Reply-To: <1sk163ebnv.fsf@uninett.no> (Vegard Vesterheim's message of "Tue, 7 Jan 2020 11:41:41 +0000")

Vegard Vesterheim <vegard.vesterheim@uninett.no> writes:
> If you want to use different SMTP methods for different identities, you
> can insert the header "X-Message-SMTP-Method" like this:
>
> (setq gnus-alias-identity-alist
>       '(("opt"
>          nil
>          "Pankaj Jangid <pankaj.jangid@optimizory.com>"
>          "Optimizory"
>          nil nil nil)
> 	("gml"
>          nil
>          "Pankaj Jangid <pankaj.jangid@gmail.com>"
>          nil nil nil nil)
> 	("j4d"
>          nil
>          "Pankaj Jangid <p4j@j4d.net>"
>          "J4D Networks"
> 	 (("X-Message-SMTP-Method" . "smtp mysmtp.host.com 587 username")) nil nil)))

This isn't working for me. Let me explain my MTA configuration as
well. May be that give some more clue.

I have configured 'postfix' to send email via couple of SMTP servers:
- smtp.gmail.com 587
- smtp.office365.com 587
- smtp.zoho.com

I have a mapping to specify which mail-server to use for which
email-id. And corresponding credentials are saved in postfix
configuration.

Now in Gnus, when I press m to launch message buffer for a new message,
It starts with

From: p4j@j4d.net

This is my default user-mail-address in Gnus/Emacs configuration. Now
when I call gnus-alias-select-identity <RET> opt <RET> to select
pankaj.jangid@optimizory.com as "from" address, it fills the headers
correctly. But when I send email (C-c C-c), it uses the SMTP server
associated with p4j@j4d.net, which was the original "from" address.

X-Message-SMTP-Method works. But this asks me for the username password
etc. I want to use "sendmail" method. How to ask "sendmail" to use
correct mail-server?

When I launch message buffer from the respective group (pressing m key),
it works fine. It picks the right SMTP server.

Regards,
-- 
Pankaj Jangid



  reply	other threads:[~2020-01-07 16:19 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-06  9:57 Pankaj Jangid
2020-01-06 21:42 ` dick.r.chiang
2020-01-06 22:33   ` Eric Abrahamsen
2020-01-06 23:39     ` dick.r.chiang
2020-01-07  4:12       ` Eric Abrahamsen
2020-01-07  6:29         ` Pankaj Jangid
2020-01-07 17:32           ` If you read this instead of my name it worked for me
2020-01-07 17:43           ` Eric Abrahamsen
2020-01-07  6:28   ` Vincent Bernat
2020-01-09  1:55     ` 황병희
2020-01-10  5:59       ` Bob Newell
2020-01-18  1:59         ` 황병희
2020-01-07  7:58   ` Vegard Vesterheim
2020-01-07 10:44     ` Pankaj Jangid
2020-01-07 11:41       ` Vegard Vesterheim
2020-01-07 16:19         ` Pankaj Jangid [this message]
2020-01-06 22:08 ` Malcolm Purvis
2020-01-07  6:38   ` Pankaj Jangid
2020-02-07 13:42     ` Helmut Waitzmann
2020-02-07 22:09     ` Helmut Waitzmann

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=0100016f80cd6e93-44a3f3b9-60fa-45d0-8623-249422032687-000000@email.amazonses.com \
    --to=p4j@j4d.net \
    --cc=dick.r.chiang@gmail.com \
    --cc=ding@gnus.org \
    --cc=vegard.vesterheim@uninett.no \
    /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).