MAIB: Mailinabox

Vlastní mailing lze provozovat s http://mailinabox.email/

Find “curl” command in the installation section and run it in command line/terminal/remote console insterface.

Fill in an admin e-mail and desired domain.

Specify a standard SSH port number from 22 to something unpredictable.

vim /etc/ssh/sshd_config
...uncomment the following line and change number to something exotic e.g.
#Port 22
Port 2233

https://www.mail-tester.com/test-ui7rw

Překontrolovat IP a domain names a URLs against blacklists

https://mxtoolbox.com/blacklists.aspx

spamhouse.org (not as good – compared in April 2019)

ESMTP check by MX Toolbox

https://mxtoolbox.com/diagnostic.aspx
…checks SMTP Reverse DNS, TLS etc.

Testing mail from CLI (terminal)

Try to send a testing mail from command line.

php -r ‘$host = gethostname(); $etcIssue = file_get_contents(“/etc/issue”); $ip = gethostbyname($host); $realIp = shell_exec(“ip addr show”); $text = “\nhost: “.$host.”\nTime: “.(new DateTime(“now”))->format(“Y-m-d H:i”).”\nOS version: “.$etcIssue.”\nip: “.$realIp; echo $text.”\n\n”; echo “Mail returned: “.var_export(mail(“[email protected]”, “Test”, $text), true).”\n”;’

php -r “mail(‘[email protected]’, ‘Example nginx container box.ducho.eu PHP ‘, ‘One lorem ipsum dolor sit bacon un amet meat.’);”
php -r “mail(‘[email protected]’, ‘Example box.ducho.eu PHP ‘, ‘One lorem ipsum dolor sit bacon un amet meat.’);”
php -r “mail(‘[email protected]’, ‘PRG aero ‘, ‘One lorem ipsum dolor sit bacon un amet meat.’);”
hp -r “mail(‘[email protected]’, ‘Example nginx container box.ducho.eu PHP ‘, ‘One lorem ipsum dolor sit bacon un amet meat.’, ‘From: [email protected]’);”

php -r “mail(‘[email protected]’, ‘Example nginx container box.ducho.eu PHP ‘, ‘One lorem ipsum dolor sit bacon un amet meat.’, ‘From: [email protected]’);”

After install

https://box.yourdomain.com/admin#tls

Click a button with label “Provision certificate”

Weird behaviour occured… button appeared after installation certbot, certbot for nginx and running certbot from terminal.

apt-get install certbot python-certbot-nginx

certbot –nginx

Which names would you like to activate HTTPS for?


1: box.yourdomain.com
2: www.box.yourdomain.com

Select the appropriate numbers separated by commas and/or spaces, or leave input blank to select all options shown (Enter ‘c’ to cancel): 1 2

Backup settings

https://box.yourdomain.com/admin#system_backup

After a day you will see how big is a snapshot. It will be approx. 10MB therefore dozens can be stored.

When it comes to backups… Better safe than sorry!