From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/8127 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.gnus.user Subject: Re: More mail questions Date: Fri, 27 Oct 2006 16:38:28 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87slha2rh7.fsf@lion.rapttech.com.au> References: <87vem6u3ug.fsf@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161931228 24483 80.91.229.2 (27 Oct 2006 06:40:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Oct 2006 06:40:28 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Oct 27 08:40:27 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GdLO8-0007hO-0Q for gegu-info-gnus-english@m.gmane.org; Fri, 27 Oct 2006 08:40:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GdLO7-0006Z6-Gn for gegu-info-gnus-english@m.gmane.org; Fri, 27 Oct 2006 02:40:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!sn-xt-sjc-05!sn-xt-sjc-10!sn-xt-sjc-01!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:yx1bS6bQXO19iJFDoKWwBaE+k5g= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 66 Original-Xref: shelby.stanford.edu gnu.emacs.gnus:78312 Original-To: info-gnus-english@gnu.org X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:8127 Archived-At: Hadron Quark writes: > I am using smtpmail package through a gmail smtp server to send email. > > But if I use gnus to send a mail to "root@localhost" why isnt procmail > picking it up and diverting it to my local root mmaildir? Procmail does > its job just fine when I use the Linux commandline "mail" command. > > I'm unsure where postfix and smptmail.el fit together. > > Any pointers appreciated. > > -- When using smtpmail, emacs connects directly to the remote smtp server and totally bypasses your local smtp server (postfix). Your procmail is probably the default delivery agent for your local smtp server (this is the standard config these days). This means that your message addressed to user@localhost is being sent to the remote gmail smtp server, which if correctly configured, should probably reject the message (i.e. doesn't accept @localhost addresses unless they come from that machine) or possibly it will attempt to find a user with that name on that server (but I think this would be an incorrect configuration). In your example, it would be delivered to wherever root mail messages are delivered for the remote smtp server - probably one of the sys admins. Mail sent via other programs than emacs/gnus don't know about smtpmail and is using your local smtp server (postfix) and as the mail is originating locally, accepts the message and passes it to procmail, which delivers it to the mailbox. I recently started using smtpmail because my ISP has placed all their dynamic IP addresses into various blacklists and messages I sent via my local smtp server (which was setup as a smarthost that relayed all non-local mail to my ISP smtp server, would often get rejected by destination hosts that were using a very strict mail policy which refuses to accept mail from blacklisted IPs. Many ISPs are doing this these days to protect themselves from being blacklisted by a customer who runs a local smtp server which is either misconfigured and gets abused by a spammer or to send spam themselves. I've been running this configuration for a couple of weeks now and it works quite well. The only downside is that sometimes there can be a slight delay between sending the mail and getting emacs responding again - probably due to high loads on the remote smtp server. I have also configured fetchmail to retrieve my mail from remote imap/pop mailboxes and hand it directly to procmail. This means I no longer need to run a mail server at all - which is great as I'm way past finding maintaining a mail server "fun" and the less I have to maintain the better. I was running exim as my local mail server as it is easy to setup. Postfix is probably overkill for a local machine, unless you have many users and lots of mail traffic. From memory, I also seem to remember it is a bit difficult to run postfix and NOT have it run as a daemon listening on prot 25. Many people don't realise that you only need an smtp server listening on a port if you are accepting mail from a remote host. Likewise, many people forget that the mail server (postfix, sendmail, exim etc) don't actually deliver mail, but instead use a delivery program, such as procmail. HTH Tim -- tcross (at) rapttech dot com dot au