How to setup a Linux LAN local mail? [closed]
Solution 1:
You should install a mail service such as Postfix (that's the one I use).
Then simply have people use that service using the IP address of that one computer.
If you really want each computer to be able to send mail, then look at installing a sendmail utility and set it up to send mail to the computer with Postfix (or other mail service).
The setup for Postfix needs to accept relaying the emails sent from another service. Since you have a local network (LAN), you can just put that IP as one of the trusted IP addresses in Postfix. Without that, it will reject the mail sent by sendmail.
Maybe something like this:
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.0.0.0/24
The 127. and ::1 are there by default. I added 10.0.0.0/24 as an example. Whatever you use for your network (another often used is 192.168.1.0/24).
Services that support SMTP directly can be given the IP address of your Postfix system instead of using sendmail.