Postfix: How can I send mail between two PCs on my own LAN

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
bananabob
Level 3
Level 3
Posts: 142
Joined: Tue Feb 07, 2012 11:05 pm

Postfix: How can I send mail between two PCs on my own LAN

Post by bananabob »

I have two PCS and they are both connected to my own local network.

I would like to be able to send mail from a user on one machine to a user on the other machine.

My postfix config for one machne is:

Code: Select all

myhostname = thorium
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = thorium, localhost.localdomain, localhost
relayhost = 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
default_transport = error
relay_transport = error
and for the other machine is

Code: Select all

myhostname = oxygen.atom
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = oxygen.atom, localhost.atom, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
default_transport = error
relay_transport = error 
Could some please explain the changes I need to make to get this working.

Thanks
James
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
cwsnyder

Re: Postfix: How can I send mail between two PCs on my own L

Post by cwsnyder »

I don't know your level of Linux sophistication, and the actual step-by-step instructions would be beyond me at this time, but I know the basics:

You first need to set up a mail server someplace on your network capable of POP3 and SMTP, such as squirrelmail, xmail, courier, etc. It may be simpler to set up separate email accounts on one of the free webmail services such as gmail.com, yahoo.com or outlook.com and let them administer the services unless you really need the security of not sending the documents over the web.

You may want to look into a simple file-sharing server, FTP file sharing or even SSH login to the other computer.
bananabob
Level 3
Level 3
Posts: 142
Joined: Tue Feb 07, 2012 11:05 pm

Re: Postfix: How can I send mail between two PCs on my own L

Post by bananabob »

Thank you for your reply.

So even though each PC can send mail to users on that PC unless I get to be more expert in maters of Linux I should just send over the Internet if I want to send to another PC on my local network.
Lanser

Re: Postfix: How can I send mail between two PCs on my own L

Post by Lanser »

bananabob . Email works the same way that traditional mail does.
Your email needs to be sent to an SMTP server, (think post office) to be forwarded to a mail server for collection. (think post office box)

For companies these servers can be internal with the mail server knowing the address of an external mail gateway.
For home users most people will use their ISP's SMTP server and collect the mail from their ISP's mail server (and others).

You can set up a local mail system, but there will be work to install then ongoing mail admin to run it. If you are interested you might do some research on XMAIL.
There is also a QNAP XMail Server Plug in for use on QNAP linux based Network Attached Storage (NAS) devices.

regards

Lanser
Locked

Return to “Software & Applications”