From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: How to set proxy for smtpmail.el ? Date: Mon, 20 Jul 2020 10:57:59 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34006"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-help To: numbchild@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 20 10:58:25 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxRcv-0008kp-3N for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 20 Jul 2020 10:58:25 +0200 Original-Received: from localhost ([::1]:41188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxRcu-0006kN-3z for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 20 Jul 2020 04:58:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxRcc-0006kG-2N for help-gnu-emacs@gnu.org; Mon, 20 Jul 2020 04:58:06 -0400 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:38215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jxRca-0006ia-Nd for help-gnu-emacs@gnu.org; Mon, 20 Jul 2020 04:58:05 -0400 Original-Received: by mail-wr1-x435.google.com with SMTP id a14so2143111wra.5 for ; Mon, 20 Jul 2020 01:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=mhodgq+ZztbhaLpmlwlwdSQ9MjmqaSgGAAFXeWd1Zfw=; b=J3w9OndmSKSox9ZyA3bzcl88ZYIQO5wQfzNiJCSEAu1zIl7P8XuGmuTO9ynPlk+vdg VzrLS6pVS6yM5gdqF6LNidudFXYtTy6NYDIQ/8UMvU9H2SYnngp6/gfTsQuTaw1W94XC LeZS78YLXkHrejUpibC/MqNiQc4hoYjSjvkEmp2JjW1qyJeQgAtb9yGXPUVlVoZEI1f7 Q+kZbGj8Xfs7PSJwhpNP7v+l1OkLWWQdI9bU1DNi4pTFHv6JXUBOKmEA0z4SmoN5tSZN fPNCc80LXSOZUZeQvBmEbAqfUTZQERcmkL1fhJkK0Vj+YGJ3MvfkNpw7OjJE5Ji2NFQu oRAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=mhodgq+ZztbhaLpmlwlwdSQ9MjmqaSgGAAFXeWd1Zfw=; b=tDHJbsJsekBQsmQPVukeftG9vxjjo0cS/qWgUhCu1/YtpV3AYVsEot+MkYEM1MPvVU S6CKsHW2iGbOTnu0n7ybkZ21t1If3rS4qSZQGY8CaHsWuwsSUDCiiIk0D18pK+dl7v38 T32Hv92wfkl+gMTyjJnjCpNk50RnlZEJPe+RPciyLwXM2WPCCDYqokGxP/VBh+N77Ejo Vx06lOP1dbSmT+rUJz/I/JrJRyIj7VSbs9pZYodAYBuIvh1taaxx0LVH6V93m4Q3QHwb FcAiiVGGq28XDlxjE0fl4pSzw2fEOIAiuLO43muOg4E9pWPdiA/8jC01A9kaTgEeS/YB YTuA== X-Gm-Message-State: AOAM530rQxJQQcM0HZeMpMPlwj1xZdAFiXHRSyNLAT1+nZxSsgzhxLtF 2TX4oDbCm5Q3LQPC1JIND4ZzqTs5 X-Google-Smtp-Source: ABdhPJyDcD7IBQaxXmTl4U9atO+i+8NiFyeEYJ4OqIDfVfu7fx5ff+PbntUgwRv4rm3TcAZUQs4j/Q== X-Received: by 2002:adf:b1cf:: with SMTP id r15mr22855610wra.118.1595235482884; Mon, 20 Jul 2020 01:58:02 -0700 (PDT) Original-Received: from rpluim-mac (vav06-1-78-207-202-134.fbx.proxad.net. [78.207.202.134]) by smtp.gmail.com with ESMTPSA id b23sm34048218wmd.37.2020.07.20.01.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 01:58:02 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: (numbchild@gmail.com's message of "Mon, 20 Jul 2020 10:50:39 +0800") Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=rpluim@gmail.com; helo=mail-wr1-x435.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123566 Archived-At: >>>>> On Mon, 20 Jul 2020 10:50:39 +0800, "numbchild@gmail.com" said: stardiviner> I'm unable to send email with smtpmail.el stardiviner> I think it might be because of the internet censorship fir= ewall in China. stardiviner> So I decided to use a proxy for smtpmail. I have not found= the smtpmail stardiviner> options for setting proxy. Then I dive into `smtpmail-send= -it` function stardiviner> source code. Found it uses `open-network-stream` to send e= mail. Then the stardiviner> question is then how to set a proxy for `open-network-stre= am`? I checked stardiviner> this function's arguments. No result. SMTP via a proxy sounds like a bad idea: you give the proxy access to all your email. Having said that, there=CA=BCs a socks.el which contains 'socks-open-network-stream' that might work for you. I=CA=BCve not tried it myself. Robert