git: 2c1a6b3977 - main - Add OpenSMTPD example for sending mail through FreeBSD mxs
Muhammad Moinur Rahman
bofh at FreeBSD.org
Tue Apr 6 20:56:11 UTC 2021
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 <bofh at FreeBSD.org>
AuthorDate: 2021-04-06 20:54:18 +0000
Commit: Muhammad Moinur Rahman <bofh at FreeBSD.org>
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 at 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_ at 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 <secrets>
+match from any auth yourlocalusername mail-from "_yourusername_ at 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
More information about the dev-commits-doc-all
mailing list