From owner-freebsd-questions@freebsd.org Thu Jul 9 13:01:58 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 4F03236A79C for ; Thu, 9 Jul 2020 13:01:58 +0000 (UTC) (envelope-from yuripv@yuripv.dev) Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) (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 4B2bsx42n9z41kZ for ; Thu, 9 Jul 2020 13:01:57 +0000 (UTC) (envelope-from yuripv@yuripv.dev) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.nyi.internal (Postfix) with ESMTP id 78779580132; Thu, 9 Jul 2020 09:01:38 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 09 Jul 2020 09:01:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuripv.dev; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=S ikyStVCSAd+Iq4zihpa2JSb2FyzQ/1ky+MltRsO9F0=; b=C3JhHWdg/SHR8XdAd Ojx+Ocbq3djMC9kUaXcpJgyeyamfRhxoy88cSYtho1rU9zgPFJsYQxo0F8zsWK/R S4/+8BBDEW2Jy5ExiWPOPSTr6rrstt5xmSRQg6wmuaX0SFkzcqbJqycT1XuTVoyb QV2yKuiI0r+glkZCsIPNNqY8vgjaqTJ3nc7Bxyi1pugIMBCK73vwL67n/CT7JFJI WSUQvG6PapA8cjbLlI0YXkP9BwaIU8tlJsnv+ki8ztEN1beEkm4XY6CRaDPjGMzH kr4Oh2d8vBLVBpCi5Xxkbdg8ZzE7p6i8tjriae/9jIIEHBt7YBpc/RgG19jk6uCv 09ybw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=SikyStVCSAd+Iq4zihpa2JSb2FyzQ/1ky+MltRsO9 F0=; b=VZlUfVyJLjg3NR30gnmRh5gAm7EYUDEIcZyeqvJfHwJ6G+EyL/Ggorix7 Wp+donmgtXY3eNnXt2sq1nLqadoKpU38eL6bW5VTdYlitRpAnkw6Deij3BcTIURt dtinCxAkCY/mv3UQFI2ZrzBPxc9ZUIwlNvWkqkGf0RmqxS2/Y/poCZ9ctTZs06+9 WpmtLmMWKDNHh64doCD3pCfU0e0OY1BwmeGXcRIPvjOJUS1tWD1CK1Lgh0YPrnt9 fe1V1Fp0bWtszoZQlMuYefxVWMCluglQUaU0lzqI8S7nNK3wqkuli/ukKMF15zS2 k3+eyGmCTAp6MIonNPBonYLYTEufw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudelgdeitdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomhepjghurhhiucfrrghnkhhovhcuoeihuhhrihhpvheshihurhhi phhvrdguvghvqeenucggtffrrghtthgvrhhnpeeikeetfedtfedtkefhffeuleejfeffgf ffffeuhfehgfehjedvgeefheeivedugfenucffohhmrghinhepfhhrvggvsghsugdrohhr ghenucfkphepledurddvgedtrdduvdegrddufeejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhephihurhhiphhvseihuhhrihhpvhdruggvvh X-ME-Proxy: Received: from [192.168.1.6] (unknown [91.240.124.137]) by mail.messagingengine.com (Postfix) with ESMTPA id 996283280067; Thu, 9 Jul 2020 09:01:36 -0400 (EDT) Subject: Re: Sending system mail to remote mail server To: "@lbutlr" , FreeBSD References: <5FD21AAE-BEB7-4FAB-9F01-70403A59AA7D@kreme.com> <7cc8380a-9d6b-ca3e-4611-fa675bf5983c@beepc.ch> <57FCC468-AC34-44DB-8043-8FA87C2BED30@kreme.com> From: Yuri Pankov Message-ID: Date: Thu, 9 Jul 2020 16:01:34 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <57FCC468-AC34-44DB-8043-8FA87C2BED30@kreme.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4B2bsx42n9z41kZ X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yuripv.dev header.s=fm1 header.b=C3JhHWdg; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=VZlUfVyJ; dmarc=none; spf=pass (mx1.freebsd.org: domain of yuripv@yuripv.dev designates 66.111.4.230 as permitted sender) smtp.mailfrom=yuripv@yuripv.dev X-Spamd-Result: default: False [4.19 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(0.00)[yuripv.dev:s=fm1,messagingengine.com:s=fm3]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(0.00)[+ip4:66.111.4.230]; NEURAL_HAM_LONG(-0.50)[-0.496]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[yuripv.dev]; NEURAL_SPAM_SHORT(0.59)[0.586]; URIBL_RED(3.50)[yuripv.dev:dkim]; BAD_REP_POLICIES(0.10)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yuripv.dev:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; HAS_ANON_DOMAIN(0.10)[]; NEURAL_SPAM_MEDIUM(0.60)[0.597]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.230:from] 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: Thu, 09 Jul 2020 13:01:58 -0000 @lbutlr wrote: > On 09 Jul 2020, at 06:47, @lbutlr wrote: >>> https://www.freebsd.org/doc/handbook/outgoing-only.html >> >> Excellent! That was super simple. Thank you! > > Oops. I lied. I don't see how to start the service/enable ssmtp. I have disabled and stopped sendmail but if I send a mail to root on the command=line I get this in maillog: > > Jul 9 06:55:12 ns2 sendmail[50730]: 069CtCrh050730: to=root, ctladdr=lbutlr (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30068, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] > > There's nothing for ssmtp listed in service -e It's not a service, and did you follow the instructions in ssmpt's pkg-message?