Skip to content

wesley974/mailserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenBSD Mailserver for production

A full mailserver with an admin GUI and a domain admin GUI. This works on OpenBSD 6.0.

Includes:

  • postfix
  • dovecot
  • spamassasin with automatic updates
  • clamav with automatic updates
  • packet filter
  • roundcube webmail (with sauserprefs plugin)
  • dkimproxy (sign out)
  • rmspams
  • a fully responsive theme for mobile devices (auto switch)

*The admin and account apps forked from the free mailserv project.

You get access to the account app via Roundcube (admin button).

Installation

Type this at question 'Set name(s)?': -g* -x* +xb*

From a fresh OpenBSD install...

Get git

echo installpath=ftp2.fr.openbsd.org > /etc/pkg.conf
pkg_add git

Update the box

cd /usr/local/sbin
ftp https://stable.mtier.org/openup
chmod +x openup
openup && reboot

Fetch the project

cd /var
git clone https://github.com/wesley974/mailserver

Install the GUI

Don't forget to tune your hosts file and verify your hostname!

/var/mailserver/install/install_gui.sh
/var/mailserver/install/build_db.sh

Install the mail system

By defaut, a 1024 domain key will be generated, if you wish to generate a 2048 domain key, use '/var/mailserver/install/install_system.sh -max'

/var/mailserver/install/install_system.sh 
/var/mailserver/install/enable_admin_rc.sh

USAGE

Execute the apps

/var/mailserver/install/run_gui.sh

Set the mailserver administrator

Just browse https://ip_address:4200/getting_started

Then set the email for root messages :

/var/mailserver/install/sysmail.sh

Security, backup config files

/var/mailserver/install/backup_conf.sh

Security, generate checksum (SHA256) for the config files

/var/mailserver/install/checksum_conf.sh

After an update (openup), check for modified config files :

sha256 -c /var/mailserver/install/SHA256

The mailserver app

Just browse https://ip_address:4200

Your webmail

Just browse https://ip_address

Enjoy!

Use mailserver entirely at your own risk. No one will help you. And if you like the project and if you wish updates, support it adding a star (★).