From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80926 Path: news.gmane.org!not-for-mail From: Leonidas Tsampros Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus smtp and gmail app specific permissions Date: Sat, 21 Jan 2012 22:34:20 +0200 Message-ID: <87wr8ksskz.fsf@kepler.lan> References: <8ky5t12isd.fsf@news.eternal-september.org> Reply-To: ltsampros@upnet.gr NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327178131 25827 80.91.229.12 (21 Jan 2012 20:35:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Jan 2012 20:35:31 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29208@lists.math.uh.edu Sat Jan 21 21:35:23 2012 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 1Rohel-0004bc-4A for ding-account@gmane.org; Sat, 21 Jan 2012 21:35:23 +0100 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 1RohdG-0000OU-E5; Sat, 21 Jan 2012 14:33:50 -0600 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 1RohdD-0000OI-Ny for ding@lists.math.uh.edu; Sat, 21 Jan 2012 14:33:47 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RohdB-00070R-5T for ding@lists.math.uh.edu; Sat, 21 Jan 2012 14:33:47 -0600 Original-Received: from mail-ee0-f44.google.com ([74.125.83.44]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Rohd9-0003qh-EG for ding@gnus.org; Sat, 21 Jan 2012 21:33:43 +0100 Original-Received: by eekc1 with SMTP id c1so737295eek.17 for ; Sat, 21 Jan 2012 12:33:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:subject:references:reply-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=XQdgC0vdpqWIg+LpLT9BtQZ5aOphgesY+ET1xNiNgag=; b=dblLmvA1f29p/k9N5tBUoJ7XN6BEUlq1UQMyt6A9i05YrL3kWNAeezohyH7Y3kvBTr zXHZNK43pS0JV8MnMYYpriRJBHVE+SOZ63WWGeJnNGeIRGibg0EmPXgliHkYhOWJ3Vem LmM8o/+NeXvqYHnaS2eMlkiiJG403jkRq19MU= Original-Received: by 10.14.11.97 with SMTP id 73mr966784eew.2.1327178017833; Sat, 21 Jan 2012 12:33:37 -0800 (PST) Original-Received: from kepler.lan (178.128.128.141.dsl.dyn.forthnet.gr. [178.128.128.141]) by mx.google.com with ESMTPS id s16sm30269023eef.2.2012.01.21.12.33.35 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 21 Jan 2012 12:33:37 -0800 (PST) In-Reply-To: <8ky5t12isd.fsf@news.eternal-september.org> (Richard Riley's message of "Sat, 21 Jan 2012 15:10:26 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80926 Archived-At: Richard Riley writes: > Richard Riley writes: > >> Richard Riley writes: >> >>> Any of you have a solution that works with smtpmail sending that sets up >>> an app specific password for gmails smtp server? >>> >>> I have a setup using the multismtp selection from here: >>> >>> http://www.emacswiki.org/emacs/MultipleSMTPAccounts >>> >>> with the difference I set up my smtp accounts thus:- >>> >>> ,---- >>> | (setq smtp-accounts '( >>> | (ssl "rileyrg" "smtp.gmail.com" "587" >>> | "(nth 0 (auth-source-user-and-password \"rileysmtp\"))" "(nth 1 (auth-source-user-and-password \"rileysmtp\"))" nil) >>> | (ssl "shamrock" "smtp.gmail.com" "587" >>> | "(nth 0 (auth-source-user-and-password \"shamrock\"))" "(nth 1 (auth-source-user-and-password \"shamrock\"))" nil) >>> | )) >>> `---- >>> >>> and then eval the user and password in the set-smtp-ssl function. But >>> I'm confused because apparently smtpmail-auth-credentials isnt used for >>> ssl, so why is it set in that function? >>> >>> Ideally a simple working sample of setting smtpmails "authentication" >>> variables in elisp would do. >>> >> >> Or possibly just a simple example of elisp programming to set up >> smtpmail to use a third party smtp server line by line with auth details >> from .authinfo? I'm confused with the cross over (if any) >> between smtp credential variables and the use of authinfo. > > I'm currently unable to use gnus to send emails since my move to > appliction specific passwords. Any pointers would be greatly > appreciated. Hey, try this: (setq smtp-accounts '((plain "ltsampros@gmail.com" "smtp.gmail.com" 587 nil nil))) I really don't know/remember why it works and why it gets the password from my .authinfo.gpg (smtpmail magic?) but I'm pretty sure this setup works here. I searched for any special code around but didn't notice anything wrt to authsource. Remove the dashes and spaces from the application specific password you get from the Gmail interface and make sure your username is "username@gmail.com" in your .authinfo(.gpg) file. Example: machine smtp.gmail.com login username@gmail.com port 587 password panagiavoitha Memory banks are failing me right now but the setup I'm posting works for me even when using multiple relay addresses through ONE gmail account. I hope the above helped a bit. Regards, Leonidas Tsampros