From owner-freebsd-questions@FreeBSD.ORG Fri Feb 27 13:02:02 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ECE6FE3D for ; Fri, 27 Feb 2015 13:02:01 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9FC868DD for ; Fri, 27 Feb 2015 13:02:01 +0000 (UTC) Received: from [89.204.154.46] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1YRKYA-0000OI-FT; Fri, 27 Feb 2015 14:01:50 +0100 Received: from localhost.my.domain (c720-r276659 [127.0.0.1]) by localhost.unixarea.de (8.14.9/8.14.9) with ESMTP id t1RD1lXv003685 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 27 Feb 2015 14:01:47 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.9/8.14.9/Submit) id t1RD1jQG003684; Fri, 27 Feb 2015 14:01:45 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Fri, 27 Feb 2015 14:01:45 +0100 From: Matthias Apitz To: Perry Hutchison Subject: Re: sendmail && dhcp Message-ID: <20150227130145.GA3591@c720-r276659> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , Perry Hutchison , freebsd-questions-local@be-well.ilk.org, freebsd-questions@freebsd.org References: <20150226144245.GA1346@c720-r276659> <44bnkgsmcl.fsf@lowell-desk.lan> <20150226194012.GA2695@c720-r276659> <4461aoe96j.fsf@lowell-desk.lan> <20150226203154.GA2853@c720-r276659> <44k2z4ci8y.fsf@lowell-desk.lan> <54efe697.xdtSCVZsiZDqV7lP%perryh@pluto.rain.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <54efe697.xdtSCVZsiZDqV7lP%perryh@pluto.rain.com> X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.154.46 Cc: freebsd-questions-local@be-well.ilk.org, freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2015 13:02:02 -0000 El día Thursday, February 26, 2015 a las 07:37:59PM -0800, Perry Hutchison escribió: > Lowell Gilbert wrote: > > Matthias Apitz writes: > > > I fetch my mails from my ISP with fetchmail and pipe them > > > through sendmail and procmail (for filtering); and I send > > > upstream with SMPT && SSL to my ISP using sendmail ... it is > > > so nice to connect a few seconds(!) to fetch all your mails, > > > shutdown the link, read and answer the mails offline, queue > > > answers with sendmail, and re-open the link for a few seconds > > > to send the mails out. > > > > You don't need a sendmail daemon for that. > > There's no need to involve sendmail at all (on the receive side) > for that. Depending on the MUA the OP might need one for sending -- > some MUAs only support sending via SMTP, not by fork/exec sendmail. > > > Tell fetchmail to invoke sendmail itself instead of delivering > > to a local TCP port > > AFAIK there is no need for one MTA (fetchmail) to invoke another > MTA (sendmail) just to get to a third mail agent[*] (procmail). > Have fetchmail invoke procmail directly. > > [*] I don't remember offhand whether procmail is considered an MTA > or an LDA, and for this analysis it doesn't matter. To read and write I'm using mutt as MUA. mutt can fetch with IMAP(S) and send with SMTP+SSL; but this (sending directly) is not what I want, I want to queue up the outbound mails and send them at once (see above for the reason); so, sendmail is the natural option; for the PPP link, I already use a devd(8) hook to restart sendmail when the interface comes up; for the wlan(4) link I will use the hook /etc/dhclient-exit-hooks looking for the $reason BOUND; I was hoping for a solution which combines all interfaces in one place, but it seems that this does not exist. Thanks matthias -- Matthias Apitz, guru@unixarea.de, http://www.unixarea.de/ +49-170-4527211 La referencia de la Duma a la anexión de la RDA, en este caso al contrario con la Crimlía sin referéndum, no solamente tiene gracia sino da en el blanco.- Marinos Yannikos @MarinosYannikos en un blog de RTdeutsch.