Luke Smith c4d7244fb6 | vor 4 Jahren | |
---|---|---|
README.md | vor 4 Jahren | |
emailwiz.sh | vor 5 Jahren | |
mailrm.sh | vor 5 Jahren |
I wrote this script during the grueling process of installing an setting up a web server. It perfectly reproduces my successful steps to ensure the same setup time and time again. Deviate from one command and everything might fall apart unless you know better!
I’ve linked this file on Github to a shorter more memorable address on my LARBS.xyz domain, so you can get it on your machine with this short command:
curl -LO lukesmith.xyz/emailwiz.sh
When promped by a dialog menu at the beginning, select “Internet Site”, then give your full domain without any subdomain, i.e. lukesmith.xyz
.
Read this readme and peruse the script’s comments before running it. Expect it to fail.
~/Mail
apt purge
all your previous (failed) attempts to install and configure a mailserver. Get rid of all your system settings for Postfix, Dovecot, OpenDKIM and everything else. This script builds off of a fresh install.My intention is to have this script working for me on my Debian web server which I have with Vultr. Different VPS hosts or distros might have a startup config that’s a little different and I’m sure as heck not going to make sure everything works on every possible machine out there, please do not even ask. If a lot of people try this script and see that it werks as expected everywhere, then I might try to label it as such and try to make it universal, but think of this script as a script that works on my exact setup than has some educational comments for the uninitiated and only might work as intended.
Configuring an email server is a living nightmare and that’s why I made this script so I wouldn’t have to do it again. Don’t ask me to configure your email server unless you are paying me big bucks to do it. With this script and the comments in it, I’ve given you way more than I owe you.
If you decide to start a VPS, specifically Vultr since I made this script and have tempered it most on their default setup, use this referal link of mine because you get a free $100 credit for a month, and if you stay on the site, eventually I get a smaller kickback too. If that link expires, you can also click this link which will just give me $10 if you stay on as a paying customer. I honestly have no really strong preference of Vultr over other VPS providers, but they’re about as cheap and reliable as it gets and if we can get free money, lol whatever click the link 👏👏.
~/Mail
. Want a new email address? Create a new user and just add them to the mail group. Now they can send and receive mail. Look up using aliases too if you want for more cool stuff. Dovecot should autocreate the directories as needed./etc/dovecot/dovecot.conf
instead of a dozen little config files. You can read those in /etc/dovecot/conf.d/
for more info, but they are not called by default after running this script and the needed settings are edited into the main config.mail.yourdomain.tld
and your ports will be the typical ones: 993 for IMAP and 587 for SMTP.luke@lukesmith.xyz
address, luke
is my login.If this script or documentation has saved you some frustration, you can donate to support me at lukesmith.xyz/donate. No refunds if the process of having a mail server causes you another kind of frustration! 😉