From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88960 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Vegard Vesterheim Newsgroups: gmane.emacs.gnus.general Subject: Re: How to change from address while in message buffer? Date: Tue, 7 Jan 2020 11:41:41 +0000 Message-ID: <1sk163ebnv.fsf@uninett.no> References: <0100016f7a49e83d-b68757b3-72b5-4410-bfd7-5613a32a174b-000000@email.amazonses.com> <874kx8tg69.fsf@dick> <1szhezem05.fsf@uninett.no> <0100016f7f9b6cfe-e3b6d38a-537d-4217-beaf-a26b98439fdb-000000@email.amazonses.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="93842"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "dick.r.chiang@gmail.com" , "ding@gnus.org" To: Pankaj Jangid Original-X-From: ding-owner+M37164@lists.math.uh.edu Tue Jan 07 18:18:37 2020 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iosV2-000JMi-KS for ding-account@gmane.org; Tue, 07 Jan 2020 18:18:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1iosUv-0005ua-3P; Tue, 07 Jan 2020 11:18:29 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1ionFC-0002Pp-OW for ding@lists.math.uh.edu; Tue, 07 Jan 2020 05:41:54 -0600 Original-Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1ionF9-0003OI-SP for ding@lists.math.uh.edu; Tue, 07 Jan 2020 05:41:54 -0600 Original-Received: from mail-eopbgr50138.outbound.protection.outlook.com ([40.107.5.138] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ionF1-0007IE-LT for ding@gnus.org; Tue, 07 Jan 2020 12:41:46 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UTBMvjELIto+dscrXc4i00zazuv+tzt2GxjKm7Ahg//3EnH4gY28Ds/9Ly2GHpZeI3d+WTW6wRIHKu6976K6AbsR7NcY4XWX4fxM+y81cEixMxqLVpdcSkdTcN3KIWay0+85VLvkVYkt7T763ItxgWM0ofBpsdSD54xso0nwV4jygXXwsFy80A6JipYmwlbgAabJ4tpdvRPuzEtqWIpSlM8vNqoKK3qIf1tzXVj/Li8RcYlJqnwh8wn4jL9c/kqePJF17WM0aOvCvG3qUy1haPprtTUF9WzonVldHVcLepdX9h/ZHSsa1s3dGX3sSAoy3nG6ZGF9giG07vDbCqWdtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+6EJztjO9Ds8R41h8Itlae8Nk3hpOB42BADDS3/cxxI=; b=PXvCB9qCEduoNlqsBvPgHkMen/u+KdsXwYmbBmgPj0lejNfbL1fZbkIgRI50UQ2bYeKI3TIdIpkJvn+7UuQsQ/vUalYijALMPSFlH870ORTIoD2lxE70VUrlrYyI3dQ6tiFlhq0j+DLM3nkNTFJn0AiNIjV78Z4kgRmmUVYcvJNntvr+vUnOeZJYUC7hgAbi6cxUQlnJzPrqlKE0T94f8TmWDg91Ig5EVpZu+MS6Y0nfuFsrgeKV5xrPnpgpZ9zvhktq/87a+DDvUbjK8OYcPfXL7W9tuOz73fCczNcsBYhM+RWHf89NUlQPvzF4O5htuLK+0FPpieTYK6Na8N4NwQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uninett.no; dmarc=pass action=none header.from=uninett.no; dkim=pass header.d=uninett.no; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uninett.no; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+6EJztjO9Ds8R41h8Itlae8Nk3hpOB42BADDS3/cxxI=; b=W3yzAJgadsmWXkS9+efsyUTTjn7Uw5P8c0EVu96qPPQMeVeSh4XCRw5C/B819jHZu6JhYyZLpyGaQvCpc7nqEpha8XxnuSKowU1/69vb7RBDdnzDsJLUPv/lBW0/y5crovfanB5tmuOqUtEFgE95P7wjavJViOhk2/DTNB0kmy4= Original-Received: from AM7PR08MB5368.eurprd08.prod.outlook.com (10.141.171.81) by AM7PR08MB5304.eurprd08.prod.outlook.com (10.141.174.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12; Tue, 7 Jan 2020 11:41:41 +0000 Original-Received: from AM7PR08MB5368.eurprd08.prod.outlook.com ([fe80::cdde:d697:f73e:f848]) by AM7PR08MB5368.eurprd08.prod.outlook.com ([fe80::cdde:d697:f73e:f848%5]) with mapi id 15.20.2602.015; Tue, 7 Jan 2020 11:41:41 +0000 Original-Received: from voll (2001:700:1:0:158:38:62:13) by HE1PR05CA0370.eurprd05.prod.outlook.com (2603:10a6:7:94::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12 via Frontend Transport; Tue, 7 Jan 2020 11:41:41 +0000 Thread-Topic: How to change from address while in message buffer? Thread-Index: AQHVxM2ZDypCzp4n4k2kr9mVxh+q2Q== In-Reply-To: <0100016f7f9b6cfe-e3b6d38a-537d-4217-beaf-a26b98439fdb-000000@email.amazonses.com> (Pankaj Jangid's message of "Tue, 7 Jan 2020 10:44:50 +0000") Accept-Language: en-US Content-Language: en-US x-clientproxiedby: HE1PR05CA0370.eurprd05.prod.outlook.com (2603:10a6:7:94::29) To AM7PR08MB5368.eurprd08.prod.outlook.com (2603:10a6:20b:103::17) x-originating-ip: [2001:700:1:0:158:38:62:13] authentication-results: spf=none (sender IP is ) smtp.mailfrom=vegard.vesterheim@uninett.no; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 07da212e-c6c0-4bf1-a671-08d793669060 x-ms-traffictypediagnostic: AM7PR08MB5304: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 027578BB13 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(136003)(396003)(39840400004)(346002)(366004)(376002)(189003)(199004)(44832011)(2906002)(6486002)(71200400001)(6916009)(86362001)(4326008)(966005)(508600001)(15650500001)(81166006)(5660300002)(81156014)(786003)(8936002)(52116002)(2616005)(16526019)(36756003)(54906003)(66946007)(66476007)(66556008)(66446008)(64756008)(186003)(6496006)(316002)(8676002);DIR:OUT;SFP:1102;SCL:1;SRVR:AM7PR08MB5304;H:AM7PR08MB5368.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: uninett.no does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XD6tB2jN7XKQGl4JV8GOlKALjVK6roGED01Ojsr+xYq2OrxT2Hrt1tAajP/DG3Z8UW6SxvkAGcb14ytz3OHSO3JxUN5q5qQ/2C6GtqnEvZa6RbMauFwPWQoKVPjvOHV/Xfk1sVVxHlfW6pF/qPV1yOMBHqBE01f1CFbDewUx15oyF6UagfvreEymcXBZ+AZ3P1RylrbDhF7jszzBvejuuO4aj4+H8sz6Ytzsgdw7HznLYFXMDdIFK5em3eTIbCTQCfWbs6t1RTDfWm3Zp0+AscBHMURwG9TRwYhioSjjo84LJ84jKM41L6SM8U86Qkc8kcNTTlHISSiIUpdoaWQz7HFnl64nEuj8oIOXVZfbJ3PY8wDYseYG/1La2SaKtqqBcxZWzhhDtpvfQn9eySGWEo3UuVTI3oO1lIh+ytpkMKYUCCM8gJbLMLxZPRMLCGn3aoyUlERoperMMV9rfBLvLMpFXUNKIBUYZ8lRhOpLksM= x-ms-exchange-transport-forked: True X-OriginatorOrg: uninett.no X-MS-Exchange-CrossTenant-Network-Message-Id: 07da212e-c6c0-4bf1-a671-08d793669060 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jan 2020 11:41:41.5689 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 68763e3d-4615-4222-988f-90ba13e351e9 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: CvCVaNzcQma78nOZDslkRJeEAaunaZRDUYHjdi6yGe5gkPr+qdb6flII/hGu2TEtrge6hVaZbDe65IQkcsnh3g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR08MB5304 List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88960 Archived-At: On Tue, 7 Jan 2020 10:44:50 +0000 Pankaj Jangid wrote: > In the group buffer I pressed m to create a new message. It picked my > default user-mail-address. Now when I invoked gnus-alias-select-identity > and selected 'opt' from above list, it shows that the From header is > replaced but MTA is trying to send email via different SMTP server where > the authentication obviously fails. 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 " "Optimizory" nil nil nil) ("gml" nil "Pankaj Jangid " nil nil nil nil) ("j4d" nil "Pankaj Jangid " "J4D Networks" (("X-Message-SMTP-Method" . "smtp mysmtp.host.com 587 username")) nil nil= ))) BTW: I have created a function for "cycling" through the identities (with a keybinding). See https://github.com/vv3/gnus-alias --=20 Vennlig hilsen/Best regards Vegard Vesterheim Senior Software engineer +47 48 11 98 98 vegard.vesterheim@uninett.no