From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76695 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Re: Multiple SMTP servers with Gnus? Date: Mon, 14 Feb 2011 10:42:19 +0100 Message-ID: References: <87k4h99d3l.fsf@gmail.com> <878vxjic8e.fsf@gnus.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297676579 8835 80.91.229.12 (14 Feb 2011 09:42:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Feb 2011 09:42:59 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25038@lists.math.uh.edu Mon Feb 14 10:42:55 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 1PouxL-0006Pt-AJ for ding-account@gmane.org; Mon, 14 Feb 2011 10:42:55 +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 1Pouwy-000884-DU; Mon, 14 Feb 2011 03:42:32 -0600 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 1Pouww-00087i-CO for ding@lists.math.uh.edu; Mon, 14 Feb 2011 03:42:30 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Pouwu-0005HD-Ik for ding@lists.math.uh.edu; Mon, 14 Feb 2011 03:42:30 -0600 Original-Received: from v3-1008.vxen.de ([79.140.41.8]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Pouws-0006lc-GG for ding@gnus.org; Mon, 14 Feb 2011 10:42:26 +0100 Original-Received: from [134.76.4.230] (helo=imac.local) by v3-1008.vxen.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1Pouwr-00073s-Hc for ding@gnus.org; Mon, 14 Feb 2011 10:42:25 +0100 In-Reply-To: <878vxjic8e.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 13 Feb 2011 18:25:21 -0800") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (darwin) Mail-Copies-To: never Mail-Followup-To: ding@gnus.org X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76695 Archived-At: Lars Ingebrigtsen writes: > Bruno Tavernier writes: > >> I wrote this simple piece of elisp code to automatically choose the smtp >> parameters depending on the content (regexp) in the From header. > > [...] > >> ((string-match "gmail" (message-field-value "From")) >> ; SMTP address and port >> (setq smtpmail-smtp-server "smtp.gmail.com") > > This seems nice... but why would one use different outgoing SMTP > servers? Thanks to SPF [1], not using the correct SMTP server for your address can easily result in your mails getting rejected or scored up by spamassassin. To be on topic: my solution is here http://www.randomsample.de/dru5/node/63 -David [1] http://en.wikipedia.org/wiki/Sender_Policy_Framework