DeadmanDAO Mail Server: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(66 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:OpenDevOps]] | [[Category:OpenDevOps]] | ||
= Host Machine = | |||
== Create Instance == | |||
=== Interserver Web Interface === | |||
# go to interserver | |||
# create an instance | |||
## Single Slice ($6/mo at this time) | |||
## Debian 9 (Deb 9 has Mailman 2, Deb 10 has Mailman 3) | |||
## KVM | |||
# set reverse DNS to diffie.deadmandao.com | |||
# Note the IP address | |||
=== Update to Latest === | |||
Log in root@ip.address using password you provided | |||
<pre> | |||
apt-get update | |||
apt-get -y upgrade | |||
apt-get -y dist-upgrade # if needed | |||
reboot | |||
</pre> | |||
= | === Add User Account === | ||
Log in root@ip.address | |||
<pre> | <pre> | ||
apt-get | apt-get -y install sudo | ||
adduser bob | |||
usermod -G sudo bob | |||
exit | |||
</pre> | </pre> | ||
= Host MX Settings = | |||
Log in to bob@ip.address | |||
== Set SPF == | == Set SPF == | ||
<pre> | <pre> | ||
apt-get install net-tools | sudo apt-get install net-tools | ||
ifconfig | sudo ifconfig | ||
</pre> | </pre> | ||
Line 51: | Line 63: | ||
<pre> | <pre> | ||
apt-get install emacs-nox | sudo apt-get install emacs-nox | ||
emacs -nw /etc/hostname | sudo emacs -nw /etc/hostname | ||
diffie | > diffie | ||
emacs -nw /etc/hosts | sudo emacs -nw /etc/hosts | ||
66.23.226.216 diffie.deadmandao.com diffie | > 66.23.226.216 diffie.deadmandao.com diffie | ||
reboot | sudo reboot | ||
</pre> | </pre> | ||
Log in to bob@diffie.deadmandao.com | |||
<pre> | <pre> | ||
hostname | |||
hostname --all-fqdn | |||
dnsdomainname | |||
</pre> | </pre> | ||
= Postfix = | |||
== | == SMTP Server == | ||
<pre> | <pre> | ||
sudo apt install | sudo apt-get install postfix | ||
</pre> | </pre> | ||
* Internet Site | |||
* deadmandao.com is the host domain | |||
* send a test email | |||
<pre> | <pre> | ||
echo "Subject: sendmail test" | /usr/sbin/sendmail -v emailaddress | |||
</pre> | </pre> | ||
Had trouble with IPv6 in Debian 9 ("Network is unreachable"). Used the following in main.cf to switch to IPv4 only. | |||
<pre> | <pre> | ||
# inet_protocols = all | |||
inet_protocols = ipv4 | |||
</pre> | </pre> | ||
= | = Mailman Install = | ||
[[DeadmanDAO_Mailman_Attempt]] | |||
= Client-Side = | |||
== | == GMail == | ||
* https://www.digitalocean.com/community/questions/using-gmail-with-postfix-smtp-server | |||
== | == FairEmail (Android App) == | ||
https:// | * https://email.faircode.eu/ | ||
Latest revision as of 20:50, 12 June 2022
Host Machine
Create Instance
Interserver Web Interface
- go to interserver
- create an instance
- Single Slice ($6/mo at this time)
- Debian 9 (Deb 9 has Mailman 2, Deb 10 has Mailman 3)
- KVM
- set reverse DNS to diffie.deadmandao.com
- Note the IP address
Update to Latest
Log in root@ip.address using password you provided
apt-get update apt-get -y upgrade apt-get -y dist-upgrade # if needed reboot
Add User Account
Log in root@ip.address
apt-get -y install sudo adduser bob usermod -G sudo bob exit
Host MX Settings
Log in to bob@ip.address
Set SPF
sudo apt-get install net-tools sudo ifconfig
That'll give you the ip4 and ip6 addresses, which go into the DNS text record:
- v=spf1 ip4:66.23.226.216 ip6:fe80::216:3eff:fe24:10e1 -all
Set Other DNS
- A Record, diffie, 66.23.226.216
- A Record, @, 66.23.226.216
- CNAME Record, www, diffie.deadmandao.com
- CNAME Record, mail, diffie.deadmandao.com
- TXT Record, diffe, v=spf1 ip4:66.23.226.216 ip6:fe80::216:3eff:fe24:10e1 -all
- MX Record, deadmandao.com, mail.deadmandao.com, 10
Set Hostname
sudo apt-get install emacs-nox sudo emacs -nw /etc/hostname > diffie sudo emacs -nw /etc/hosts > 66.23.226.216 diffie.deadmandao.com diffie sudo reboot
Log in to bob@diffie.deadmandao.com
hostname hostname --all-fqdn dnsdomainname
Postfix
SMTP Server
sudo apt-get install postfix
- Internet Site
- deadmandao.com is the host domain
- send a test email
echo "Subject: sendmail test" | /usr/sbin/sendmail -v emailaddress
Had trouble with IPv6 in Debian 9 ("Network is unreachable"). Used the following in main.cf to switch to IPv4 only.
# inet_protocols = all inet_protocols = ipv4