DO NOT USE - still working on it.
Ruby on Rails front end for OpenSMTPD.
An ISC Licensed RoR app to manage your OpenSMTPD users.
OpenBSD Instructions.
doas pkg_add ruby
ln -sf /usr/local/bin/ruby40 /usr/local/bin/ruby
ln -sf /usr/local/bin/bundle40 /usr/local/bin/bundle
ln -sf /usr/local/bin/bundler40 /usr/local/bin/bundler
ln -sf /usr/local/bin/erb40 /usr/local/bin/erb
ln -sf /usr/local/bin/gem40 /usr/local/bin/gem
ln -sf /usr/local/bin/irb40 /usr/local/bin/irb
ln -sf /usr/local/bin/minitest40 /usr/local/bin/minitest
ln -sf /usr/local/bin/racc40 /usr/local/bin/racc
ln -sf /usr/local/bin/rake40 /usr/local/bin/rake
ln -sf /usr/local/bin/rbs40 /usr/local/bin/rbs
ln -sf /usr/local/bin/rdbg40 /usr/local/bin/rdbg
ln -sf /usr/local/bin/rdoc40 /usr/local/bin/rdoc
ln -sf /usr/local/bin/ri40 /usr/local/bin/ri
ln -sf /usr/local/bin/syntax_suggest40 /usr/local/bin/syntax_suggest
ln -sf /usr/local/bin/test-unit40 /usr/local/bin/test-unit
ln -sf /usr/local/bin/typeprof40 /usr/local/bin/typeprof
Database schema
Is derived from https://github.com/OpenSMTPD/OpenSMTPD-extras/blob/master/extras/tables/table-mysql/table-mysql.5
Prerequisites
-
Ruby version - 4.0.2
-
Rails 8.1.3
-
System dependencies
-
Configuration
-
Database creation
CREATE USER 'OpenSMTPD'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE OpenSMTPD;
GRANT ALL PRIVILEGES ON OpenSMTPD.* TO 'OpenSMTPD'@'localhost';
FLUSH PRIVILEGES;
- Database initialization
RAILS_ENV=production rails db:migrate
RAILS_ENV=production rails console
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
You will need to create an admin user using the Rails Console:
Licensed
Copyright 2022 - 2026 Jez Caudle
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.