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

Questions about applications and software
Forum rules
Before you post please read this

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

Postby bananabob on Sat Feb 02, 2013 10:08 pm

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
bananabob
Level 1
Level 1
 
Posts: 37
Joined: Tue Feb 07, 2012 11:05 pm

Linux Mint is funded by ads and donations.
 

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

Postby cwsnyder on Sun Feb 03, 2013 4:39 pm

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.
LMDE Mate 64-bit, LM16 Mate 64-bit
Debian Xfce 64-bit, Xubuntu 13.10 64-bit, Xubuntu Trusty Tahr 64-bit, Antergos Xfce 64-bit, PCLinuxOS LXDE 64-bit
cwsnyder
Level 6
Level 6
 
Posts: 1039
Joined: Wed Oct 20, 2010 6:49 am
Location: Nappanee, IN, USA

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

Postby bananabob on Sun Feb 03, 2013 4:58 pm

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.
bananabob
Level 1
Level 1
 
Posts: 37
Joined: Tue Feb 07, 2012 11:05 pm

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

Postby Lanser on Sun Feb 03, 2013 6:49 pm

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
Earth :{"Mostly Harmless"} revised to {"Mostly Useless"} since the Smart Phones became the dominant sentient life form.
Lanser
Level 3
Level 3
 
Posts: 187
Joined: Mon Mar 08, 2010 5:12 am
Location: Perth Australia


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 18 guests