From owner-freebsd-questions@freebsd.org Fri Jul 10 02:32:19 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2339635C3EA for ; Fri, 10 Jul 2020 02:32:19 +0000 (UTC) (envelope-from johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gal.iecc.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B2xrx642vz3yR1 for ; Fri, 10 Jul 2020 02:32:17 +0000 (UTC) (envelope-from johnl@iecc.com) Received: (qmail 54458 invoked from network); 10 Jul 2020 02:32:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding; s=d4b7.5f07d32a.k2007; bh=TU7ZZJV3CkqBXWzpneFMIQtiqtx9A4ePCZPh9iG0PFc=; b=kZ4KeBPjHMf/yQdo4h1CqFW14/45LqAsHBbTS4NmF9MNfR0BmVRb0Sef3OSzvGQ9UiWymLZhvZqFPlx76h3XvCNhH5DEjL4wKk+LCW76A/6Mmfo7+cmHwiPvSNV8RPntsAoDEz+Wlmz7twN0Hdc5obb9nnmSsVfFB1aGae5MNT+Us/+HXzjMX926tE9SZyC297FKuU9h7mKOufTi0rUvVpfEuGUCuI8oAze176gNqUpvauQKHms1hqscOAnPTld5 Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTP via TCP6; 10 Jul 2020 02:32:10 -0000 Received: by ary.qy (Postfix, from userid 501) id C4B581C78C9B; Thu, 9 Jul 2020 22:32:16 -0400 (EDT) Date: 9 Jul 2020 22:32:16 -0400 Message-Id: <20200710023216.C4B581C78C9B@ary.qy> From: "John Levine" To: freebsd-questions@freebsd.org Cc: contact@evilham.com Subject: Re: Sending system mail to remote mail server using dma In-Reply-To: Organization: Taughannock Networks X-Headerized: yes Mime-Version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8bit X-Rspamd-Queue-Id: 4B2xrx642vz3yR1 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iecc.com header.s=d4b7.5f07d32a.k2007 header.b=kZ4KeBPj; dmarc=pass (policy=none) header.from=iecc.com; spf=pass (mx1.freebsd.org: domain of johnl@iecc.com designates 2001:470:1f07:1126:0:43:6f73:7461 as permitted sender) smtp.mailfrom=johnl@iecc.com X-Spamd-Result: default: False [-4.83 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.001]; R_DKIM_ALLOW(-0.20)[iecc.com:s=d4b7.5f07d32a.k2007]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[iecc.com:dkim]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:1f07:1126::/64]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.994]; HAS_ORG_HEADER(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[iecc.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[iecc.com,none]; NEURAL_HAM_SHORT(-0.34)[-0.338]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jul 2020 02:32:19 -0000 In article you write: >>> I'd like to setup my machines to send the local system mail to >>> the mail server (things like the weekly repots to root, cron >>> output, etc), which means setting up submission on these >>> machines. I don't even know where to start on this. >I'd use dma, it's simple to automate and configure and is in base >(unlike ssmtp). Definitely. I've sent it up on all of my FreeBSD VPS to redirect the mail to my submision server. Works great, takes only a few minutes to set up. >man 8 dma should get you started and there is also >/usr/share/examples/dma/mailer.conf which tells you how to setup >mailer.conf (see man 5 mailer.conf). Right. You edit /etc/dma/dma.conf to uncomment and edit these lines: SMARTHOST mail.example.com PORT 465 SECURETRANSFER or PORT 587 STARTTLS NULLCLIENT AUTHPATH /etc/dma/auth.conf and in auth.conf put something like this: remote}mail.example.com:swordfish that logs in as "remote" with password "swordfish" -- Regards, John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly