From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81025 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus smtp and gmail app specific permissions Date: Mon, 30 Jan 2012 12:24:12 +0000 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <8ky5t12isd.fsf@news.eternal-september.org> <87wr8ksskz.fsf@kepler.lan> Reply-To: ding@gnus.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327926331 13069 80.91.229.3 (30 Jan 2012 12:25:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Jan 2012 12:25:31 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29306@lists.math.uh.edu Mon Jan 30 13:25:31 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RrqIc-00018Y-67 for ding-account@gmane.org; Mon, 30 Jan 2012 13:25:30 +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 1RrqHi-0004Qp-1a; Mon, 30 Jan 2012 06:24:34 -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 1RrqHg-0004Qh-KC for ding@lists.math.uh.edu; Mon, 30 Jan 2012 06:24:32 -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 1RrqHe-0002dF-Rz for ding@lists.math.uh.edu; Mon, 30 Jan 2012 06:24:32 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RrqHc-0001Eo-1u for ding@gnus.org; Mon, 30 Jan 2012 13:24:28 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RrqHZ-0000eT-MS for ding@gnus.org; Mon, 30 Jan 2012 13:24:25 +0100 Original-Received: from client-86-29-243-184.pete.adsl.virginmedia.com ([86.29.243.184]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Jan 2012 13:24:25 +0100 Original-Received: from rileyrg by client-86-29-243-184.pete.adsl.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Jan 2012 13:24:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 77 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: client-86-29-243-184.pete.adsl.virginmedia.com Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux) Cancel-Lock: sha1:7n6Kv1njMv8heF0ohxIdqjKCVZ4= X-Spam-Score: -1.0 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81025 Archived-At: Leonidas Tsampros writes: > 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 > Thanks but its still not working for me. gnus rteally needs built in multi smtp support as it is I'm not willing to forgo 2 step verification and app specific passwords and will have to stop using gus for email ;( Ive been hacking around the multi smtp solution from the wiki but simply cant get it working with the app specific requirements.