From owner-freebsd-questions@freebsd.org Fri Mar 29 14:15:47 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D46F156A138 for ; Fri, 29 Mar 2019 14:15:47 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2418B941E4 for ; Fri, 29 Mar 2019 14:15:46 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.qeng-ho.org (Postfix) with ESMTP id 6586E1065D; Fri, 29 Mar 2019 14:15:39 +0000 (GMT) Subject: Re: Why is Sendmail still around? To: Polytropon Cc: freebsd-questions@freebsd.org, mayuresh@kathe.in References: <4101a1092141b58e05ef7552278b15ff@kathe.in> <78b9b0ce-b7cd-96f6-aeed-d9756f50ce80@qeng-ho.org> <20190329141453.f2f7326f.freebsd@edvax.de> From: Arthur Chance Message-ID: <4ab0d37d-e18d-f991-2729-1d055b50c7c0@qeng-ho.org> Date: Fri, 29 Mar 2019 14:15:39 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190329141453.f2f7326f.freebsd@edvax.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 2418B941E4 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of freebsd@qeng-ho.org designates 217.155.128.241 as permitted sender) smtp.mailfrom=freebsd@qeng-ho.org X-Spamd-Result: default: False [-4.91 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:217.155.128.240/29]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[qeng-ho.org]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mx1.mythic-beasts.com]; NEURAL_HAM_SHORT(-0.98)[-0.977,0]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:13037, ipnet:217.155.0.0/16, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-2.62)[ip: (-7.97), ipnet: 217.155.0.0/16(-3.98), asn: 13037(-1.05), country: GB(-0.09)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Mar 2019 14:15:47 -0000 On 29/03/2019 13:14, Polytropon wrote: > On Fri, 29 Mar 2019 13:02:00 +0000, Arthur Chance wrote: >> On 29/03/2019 01:59, Mayuresh Kathe wrote: >>> I am led to believe that Sendmail is still around in the install image >>> as well as the base install because some need a way to send out mails >>> without having to install a package/port. Can't the same be achieved >>> with "msmtp" which is lighter and easier to configure for simple tasks >>> than Sendmail. Hope FreeBSD isn't hanging on to Sendmail due to some >>> political issue like being the baby of one of the lead developers / >>> founders! >> >> Note that dma (the DragonFly Mail Agent) appeared in FreeBSD as of 11.2 >> (I think, maybe 11.1). It's basically an SMTP client for sending mail >> off the machine, not receiving incoming. It can do local delivery too, >> if anyone is still using that. When building jails I strip out most >> "system" executables including sendmail and use dma if the jail needs to >> send mail out. I also use it on headless servers, passing everything to >> a smarthost. >> >> "man dma" for details. > > This sounds like a welcome solution. Could you send your > mail locally to sendmail, and then have sendmail use dma > to transfer it to the SMTP "incoming" server of your mail > provider? I. e., what a mail relay / "SmartHost" usually > does (even though with a different mechanism)? dma can be plugged in as a sendmail replacement by creating /usr/local/etc/mail/mailer.conf (the same way as you use postfix or qmail). It doesn't listen for incoming mail, but apart from that it works. See /usr/share/examples/dma/mailer.conf or use my version arthur@arthur[4]> cat /usr/local/etc/mail/mailer.conf sendmail /usr/libexec/dma send-mail /usr/libexec/dma mailq /usr/libexec/dma newaliases /usr/bin/true hoststat /usr/bin/true purgestat /usr/bin/true -- What do we want? A time machine! When do we want it? Errm ...