On 11/4/24 17:44, David C. Rankin wrote:
On 11/4/24 11:09 AM, Pocket wrote:
I am looking to setup an email server for home use. I want to replace a debian server on a RPI 4 to an archlinux arm on RPI 4. I have dovecot and postifix on the debian rpi presently. It is not working as needed.
It matters not what distro you use, it's all Linux under the hood. Postfix, dovecot, procmail is a good combination. You will need to ensure your ISP doesn't block ports (if you have a fixed IP/business account, you are likely fine)
I have scratch built operating systems for rpi 2,3 and 4, RPM package manager. Debian gives me gas.
Additionally you will want a firewall and tool to monitor failed authentication attempts for both postfix and dovecot. nftables with fail2ban or iptables/ipset with fail2ban are excellent solutions.
Firewalled already by nftables, no incoming allowed, only outbound and replies to outbound connections. Only certain local traffic allowed.
You will require a domain name and both forward and reverse mappings with entries in your domain providers DNS to have your mail accepted by other servers. Many block mail without a valid reverse lookup. (gmail will still block even with DKIM codes set and gmail seems to move the goal-posts frequently to keep you on your toes)
No domain name needed (alarm.home.arpa), I am already providing DNS for local (authoritive for local, recursive for all other local lookups. Hosted on a rpi 4). Don't need an MX record either. Will not use gmail as a smarthost.
You will need valid SSL certificates for your domain (Let's Encrypt is a great service providing free certs, certbot is a great tool for renewing the certificates). You can use the same certificates for https as well as dovecot.
I am my own SSL certificate authority.
There is a small learning curve to put it altogether, and you must make sure your mail-host isn't an open relay, or you will find your host on banlists quickly. The postfix and dovecot and procmail documentation is good, and there are 20 years worth of tutorials available. (make sure you are using current tutorials)
The firewall will not allow open relay. This server will not be a general email server. I don't need procmail. Fetchmail, dovecot and an SMTP server is all that I need.
That said, I've run mail-hosts for about 20 years and they work fine on Arch or any other distro. The benefit of Arch is you are always on the current version with up to date software instead of waiting for bug and security fixes to be backported. That is a big advantage. Good luck.
I just need help setting up multiple accounts (smarthost) to www.twc.com. One of the following, opensmtpd | postfix | exim. I had this working 20 years ago and now want to set it up again on a rpi 4. A lot has changed. And I don't mean that I am a lot older either. -- Hindi madali ang maging ako