From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81988 Path: news.gmane.org!not-for-mail From: mihkel Newsgroups: gmane.emacs.gnus.general Subject: Re: Can't send message through smtp with gmail Date: Thu, 28 Jun 2012 23:45:33 +0300 Message-ID: <87395f88sy.fsf@gigabyte.lan> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1340916434 22579 80.91.229.3 (28 Jun 2012 20:47:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Jun 2012 20:47:14 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30258@lists.math.uh.edu Thu Jun 28 22:47:14 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 1SkLcJ-0007io-CF for ding-account@gmane.org; Thu, 28 Jun 2012 22:47:07 +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 1SkLb4-0005wC-Lr; Thu, 28 Jun 2012 15:45:50 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1SkLb3-0005w0-Ah for ding@lists.math.uh.edu; Thu, 28 Jun 2012 15:45:49 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SkLb1-0003EK-S4 for ding@lists.math.uh.edu; Thu, 28 Jun 2012 15:45:48 -0500 Original-Received: from mail-we0-f172.google.com ([74.125.82.172]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1SkLb0-0007YX-Bx for ding@gnus.org; Thu, 28 Jun 2012 22:45:46 +0200 Original-Received: by werc1 with SMTP id c1so942258wer.17 for ; Thu, 28 Jun 2012 13:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; bh=03EyLU87eHgjlWk5YsOMxny8FzYOJbby5pR0u+krK3s=; b=T/vv2cPG1jjaPOBAlMlngbcB5y696k4h/oFsXRRyIll7/l7UBbDdfv7UP1F4vCz3+s yuPVYuTOVjBa7f1tY7RpsZKbmJKrpVaXpvmIQwqRMH85Y/n3dAslFoZv+DLSGFLA2+oH 1E6IunL6w6r9684vHBw4+PJqO5rsib21mgPUEghOiMlwnaGS8EbXToWlm9KnSDApf7Gf N3+245MAEKF2Ms/0gw7jP414SKRJGyfKlJCNKaOV1CInvr5WsTmiR2Fmg425PDyoRecw EEVKyxEonvf4IRHLX2CRo7WAIZs0fX7h7pWL4t42o2yTmeErtOwwfsXBv03hDOVpijT8 7skg== Original-Received: by 10.180.109.129 with SMTP id hs1mr2970333wib.0.1340916340724; Thu, 28 Jun 2012 13:45:40 -0700 (PDT) Original-Received: from gigabyte.lan (7.201.190.90.dyn.estpak.ee. [90.190.201.7]) by mx.google.com with ESMTPS id gb9sm2220591wib.8.2012.06.28.13.45.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jun 2012 13:45:40 -0700 (PDT) In-Reply-To: (Richard Riley's message of "Thu, 28 Jun 2012 19:40:28 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.0.97 (gnu/linux) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81988 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Richard Riley writes: > > my advice would be to use nognus and the built in multi smtp support. > > in your .authinfo: > > something like: > > machine smtp.gmail.com login accid1 port 587 password password1 > machine smtp.gmail.com login accid2 port 587 password password2 > > In your gnus posting styles for the group in question:- > > (X-Message-SMTP-Method "smtp smtp.gmail.com 587 acc1") > > Its there somewhere in the gnus manual. But googling for > x-message-smtp-method will show a previous thread on this. > > regards > > r. Hi. I took your advice and it works great. Thanks! Now my gnus init file look alot cleaner. I was able to discard=20 (defvar smtp-accounts ...) (defadvice smtpmail-via-smtp ... ) (defun change-smtp () ... ) Just for those who tackle with the same problem. My updated gnus-posting-style looks like this: ;; Let Gnus change the "From:" line by looking at current group we are ;; in. (setq gnus-posting-styles '(("account1" (address "account1@gmail.com") (name "myname") (X-Message-SMTP-Method "smtp smtp.gmail.com 587 account1@gmail.com")) ("account2" (address "account2@gmail.com") (name "myname") (X-Message-SMTP-Method "smtp smtp.gmail.com 587 account2@gmail.com"))=20 ("account3" (address "account3@gmail.com") (name "myname") (X-Message-SMTP-Method "smtp smtp.gmail.com 587 account3@gmail.com")) ("account4" (address "account4@gmail.com") (name "myname") (X-Message-SMTP-Method "smtp smtp.gmail.com 587 chino.toru@gmail.com")) ("account5" (address "account5@hot.ee") (name "myname") (X-Message-SMTP-Method "smtp mail.hot.ee 25 account5")) )) mihkel --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAk/swm4ACgkQ2jT3PWjFNx40iQCfTmZSY5LFL3zXn6TbNSy7WY/v EPgAn1mjBi8+DbiQWgMsAAacl24F3Rhe =OsT5 -----END PGP SIGNATURE----- --=-=-=--