Date: Tue, 6 Apr 2021 20:56:11 GMT From: Muhammad Moinur Rahman <bofh@FreeBSD.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Subject: git: 2c1a6b3977 - main - Add OpenSMTPD example for sending mail through FreeBSD mxs Message-ID: <202104062056.136KuBpn031281@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org> AuthorDate: 2021-04-06 20:54:18 +0000 Commit: Muhammad Moinur Rahman <bofh@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@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 <secrets> +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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104062056.136KuBpn031281>