Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5206

Networking and servers • SMTP webmail for internal use only

$
0
0
Hello,

I would like to configure an extremely simple SMTP server which only needs to deliver email within my own home lab, no need for external delivery at this point.

I have been using this guide:
https://raspberrytips.com/mail-server-raspberry-pi/

It's great, but I believe it includes many things I don't need or want, such as external SMTP relays for external delivery, the ability to receive emails from the WWW, etc.

I have installed the following:
1. Postfix (Selected Internet option while configuring.... was this necessary for my purposes?)
2. dovecot

I have created my skeleton mail structure with the following commands:
sudo maildirmake.dovecot /etc/skel/Maildir
sudo maildirmake.dovecot /etc/skel/Maildir/.Drafts
sudo maildirmake.dovecot /etc/skel/Maildir/.Sent
sudo maildirmake.dovecot /etc/skel/Maildir/.Spam
sudo maildirmake.dovecot /etc/skel/Maildir/.Trash
sudo maildirmake.dovecot /etc/skel/Maildir/.Templates

I have created the structure for the pi user using this:
sudo cp -r /etc/skel/Maildir /home/$USER/
sudo chown -R $USER:$USER /home/$USER/Maildir
sudo chmod -R 700 /home/$USER/Maildir

I have installed Mailutils and telnet and tested sending an email internally using this command:
echo 'Test' | mail -s "Test sending a email locally" pi@mydomain.com

It's working. All that remains is that I would like to be able to connect to the pi@mydomain.com account internally at my home lab. What is the minimum I need to perform in order to do this?

It looks like the guide is suggesting I can configure Dovecot to allow POP and IMAP connections via SASL authentication, but this looks like a lot more than I really need.

My ultimate goal is to be able to receive emails when I am connected to my home lab using Outlook. I don't need to do this remotely or on my phone. What's the minimum required to accomplish this?

Thanks.

Statistics: Posted by dbutch1976 — Sat May 04, 2024 12:18 pm — Replies 0 — Views 21



Viewing all articles
Browse latest Browse all 5206

Trending Articles