The output looks similar to this: $2b$10$_EXAMPLE_PASSWORD1_3JbO4Ns2jJNZQfTS45MAnKi.IPrkKITyTa6 Smtpctl encrypt example_password3 > /etc/mail/credentials Smtpctl encrypt example_password2 > /etc/mail/credentials Smtpctl encrypt example_password1 > /etc/mail/credentials ![]() Generate the passwords and concatenate them to the /etc/mail/credentials file. This tutorial creates three example users. The two special fields define the virtual home directory and the mail location. This database resembles the system password file in format, with two extra fields for Dovecot. OpenSMTPD and Dovecot can share an authentication database. Match auth from any for any action "outbound" Match from local for any action "outbound" Match from local for local action "local_mail" # match from any for domain "" action "domain_mail" # Uncomment the following to accept external mail for domain "" Listen on egress port submission tls-require pki "mail" hostname "" auth Īction "domain_mail" maildir "/var/vmail//%" virtual # listen on all tls pki "mail" hostname "" # To accept external mail, replace with: listen on all Table credentials passwd:/etc/mail/credentialsįilter "rspamd" proc-exec "/usr/local/libexec/smtpd/filter-rspamd" Pki "mail" key "/etc/ssl/private/mail.key" This initial configuration does not activate the rspamd filter while testing OpenSMTP. cd /etc/mailĬreate a new nf as shown below. It should be configured to use virtual users instead of system users for security.īackup the default nf file and create a new one from scratch. It must be explicitly configured to listen on external interfaces. doas pkg_add opensmtpd-extras opensmtpd-filter-rspamd dovecot dovecot-pigeonhole rspamd redisīy default, OpenSMTPD only listens on localhost. Set up the package repository for OpenBSD. su -Įcho "permit nopass keepenv :wheel" > /etc/nf Set up your user account to perform tasks as root. Verify the server's outbound port status. Choose a Vultr Compute Cloud instance with plenty of storage for the expected number of users. ![]() OpenSMTPD is the default mail server for OpenBSD. This tutorial demonstrates a full-featured email server running on OpenBSD using OpenSMTPD, Dovecot, Rspamd, and RainLoop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |