git: 2c1a6b3977 - main - Add OpenSMTPD example for sending mail through FreeBSD mxs

Muhammad Moinur Rahman <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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 <[email protected]>
AuthorDate: 2021-04-06 20:54:18 +0000
Commit:     Muhammad Moinur Rahman <[email protected]>
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 @@ [email protected] 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 `[email protected]` should be forwarded to the FreeBSD.org servers, add this to your [.filename]#smtpd.conf#:
+
+[.programlisting]
+....
+action "freebsd" relay host smtp+tls://[email protected]:587 auth <secrets>
+match from any auth yourlocalusername mail-from "[email protected]" 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
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.