From owner-dev-commits-doc-all@freebsd.org Tue Apr 6 20:56:11 2021 Return-Path: Delivered-To: dev-commits-doc-all@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 7C4555BDD68 for ; Tue, 6 Apr 2021 20:56:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FFKZ336Ypz4vSk; Tue, 6 Apr 2021 20:56:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5892612DCE; Tue, 6 Apr 2021 20:56:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 136KuBjj031282; Tue, 6 Apr 2021 20:56:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 136KuBpn031281; Tue, 6 Apr 2021 20:56:11 GMT (envelope-from git) Date: Tue, 6 Apr 2021 20:56:11 GMT Message-Id: <202104062056.136KuBpn031281@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 2c1a6b3977 - main - Add OpenSMTPD example for sending mail through FreeBSD mxs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2c1a6b3977da8446ba2232eb0d86fe713cbba65a Auto-Submitted: auto-generated X-BeenThere: dev-commits-doc-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the doc repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2021 20:56:11 -0000 The branch main has been updated by bofh (ports committer): URL: https://cgit.FreeBSD.org/doc/commit/?id=2c1a6b3977da8446ba2232eb0d86fe713cbba65a commit 2c1a6b3977da8446ba2232eb0d86fe713cbba65a Author: Muhammad Moinur Rahman AuthorDate: 2021-04-06 20:54:18 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2021-04-06 20:54:18 +0000 Add OpenSMTPD example for sending mail through FreeBSD mxs Adds an example on howto configure OpenSMPTD to forward locally sent mails to FreeBSD.org mail servers. Approved by: crees, imp Differential Revision: https://reviews.freebsd.org/D29574 --- .../en/articles/committers-guide/_index.adoc | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/documentation/content/en/articles/committers-guide/_index.adoc b/documentation/content/en/articles/committers-guide/_index.adoc index 091e3b5d14..fa65ede180 100644 --- a/documentation/content/en/articles/committers-guide/_index.adoc +++ b/documentation/content/en/articles/committers-guide/_index.adoc @@ -2210,6 +2210,30 @@ yourusername@FreeBSD.org yourlocalusername Where _yourlocalusername_ is the SASL username used to connect to the local instance of Postfix. ==== +[[smtp-setup-local-opensmtpd]] +.Using OpenSMTPD +[example] +==== + +To tell a local OpenSMTPD instance that anything from `_yourusername_@FreeBSD.org` should be forwarded to the FreeBSD.org servers, add this to your [.filename]#smtpd.conf#: + +[.programlisting] +.... +action "freebsd" relay host smtp+tls://freebsd@smtp.freebsd.org:587 auth +match from any auth yourlocalusername mail-from "_yourusername_@freebsd.org" for any action "freebsd" +.... + +Where _yourlocalusername_ is the SASL username used to connect to the local instance of OpenSMTPD. + +Create [.filename]#/usr/local/etc/mail/secrets# with the following content: + +[.programlisting] +.... +freebsd yourusername:yourpassword +.... + +==== + [[mentors]] === Mentors