From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78232 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: Re: making sendmail call to msmtp asynchronous? Date: Wed, 30 Mar 2011 08:38:46 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <87k4ft9es7.fsf@ericabrahamsen.net> <8739m5juqt.fsf@ericabrahamsen.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1301470760 6291 80.91.229.12 (30 Mar 2011 07:39:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2011 07:39:20 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M26542@lists.math.uh.edu Wed Mar 30 09:39:17 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4pzo-0000TP-HQ for ding-account@gmane.org; Wed, 30 Mar 2011 09:39:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Q4pzY-0000Vz-JB; Wed, 30 Mar 2011 02:39:00 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Q4pzX-0000Vl-2l for ding@lists.math.uh.edu; Wed, 30 Mar 2011 02:38:59 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Q4pzU-00040S-OW for ding@lists.math.uh.edu; Wed, 30 Mar 2011 02:38:58 -0500 Original-Received: from mail-ww0-f48.google.com ([74.125.82.48]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Q4pzT-0006Y3-Id for ding@gnus.org; Wed, 30 Mar 2011 09:38:55 +0200 Original-Received: by wwi18 with SMTP id 18so791573wwi.5 for ; Wed, 30 Mar 2011 00:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:to:subject:in-reply-to:date:organization :message-id:references:user-agent:mime-version:content-type; bh=1xaemeeBHbUY1ftsGjLh+6lqfqVr5dTUnAFukTj84to=; b=xbf/XvPxAQ+2Z1c/JmP1L2qcDhJpafOPgBkjDlsw5njyL0CYlkIhgKlPY1FLe4CZ8k 8qRZ0FChAImpALZDESfaMTIOp+i0V6VTieeYyeybjSCPzVrjJ4IZrkA75WzmDXo38Qet C7v6ir9h40uZAINeF0yMH0VWT/SddK/ssmXGQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:in-reply-to:date:organization:message-id:references :user-agent:mime-version:content-type; b=pohl8fPM2eKnKa8qMWNpTj62CBwbCzcAM2Y9kuOcNfvFf/AUq2LeXjlmw+VqfAfGYV /In8YZ3/KH6czpemTXRdzRGrwytaneosJv0d9RPyxsoQoyYfOuafrvNSPBzwT1P3PK7Y QoK3IVzrVegNurYdErGIF2C7g1N3DvqVG8JLk= Original-Received: by 10.216.78.198 with SMTP id g48mr282178wee.98.1301470729608; Wed, 30 Mar 2011 00:38:49 -0700 (PDT) Original-Received: from asus1015pem (175.Red-217-126-211.staticIP.rima-tde.net [217.126.211.175]) by mx.google.com with ESMTPS id d54sm2312776wej.10.2011.03.30.00.38.46 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Mar 2011 00:38:48 -0700 (PDT) Original-Received: from shamrock by asus1015pem with local (Exim 4.72) (envelope-from ) id 1Q4p3t-0007au-CG for ding@gnus.org; Wed, 30 Mar 2011 08:39:25 +0200 In-Reply-To: <8739m5juqt.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 30 Mar 2011 08:51:38 +0800") User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/23.2 (gnu/linux) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78232 Archived-At: Eric Abrahamsen writes: > On Wed, Mar 30 2011, Lars Magne Ingebrigtsen wrote: > >> Eric Abrahamsen writes: >> >>> Would it be possible just to dump the mail on msmtp, and have a >>> callback that either pops up a buffer (for errors) or a message in the >>> minibuffer (for success)? How difficult would that be? >> >> It sounds kinda complicated to me, and probably with not a lot of gain >> to be had. Unless you're sending massive amounts of massive emails. :-) > > Fair enough! > I used to use msmtp to talk to gmail - amongst others. The problem was the time it sometimes took - hanging gnus for upto 15 seconds or so. (Linux solution) So I went back to using exim4 : gnus dumps the send off to exim4 and exim does its stuff in the bg. Not without pain. Of course. Exim4 is up there with the worst when it comes to "simple tweaks" and enabling exim4 for multiple smarthosts proved impossible (for me) give or take despite some old configs out there in google land for exim1-3 but not 4. Why not use exim4s smtp send facility? Its a pain if you travel : here I sit on holiday and smtp ports for outgoing are blocked by the ISP and/or the hotel router. Gah! Using now only gmail servers I found a nice solution that might help some others. Yes, use exim4 smarthost. Use one of your gmail smtp servers for outgoing and so configure that in your exim4 smarthost setup. Normally it rewrites your "from" address to that of the owner of the smtp account. You an stop this by granting permission to other gmail accounts to use this account on its behalf. So if on account A I allow account B access then account B's "from address" may be listed in the outgoing email sent by A's SMTP server. This option is in account/additional email users via the gmail web interface. http://www.besttechie.net/2010/03/27/how-to-use-gmail-for-multiple-email-accounts/ This is not without risk if you're being spammy/trolling etc as the header details will still reveal the account name/owner of the SMTP server. I guess the solution in that case if you dont want that is to simply create an "anonymous" gmail account in order just to use that smtp service for that account from your other gmail accounts. Still, its another option and "works for me".