Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   send mail between two local computers (http://www.linux-archive.org/ubuntu-user/556550-send-mail-between-two-local-computers.html)

scar 07-25-2011 02:59 AM

send mail between two local computers
 
i want to be able to send mail between two computers on the same local
network, simply with the 'mail' command, that cron jobs and other
services use also. both systems are ubuntu 10.04.

for example the two computers are home1 and home2.

home1 and home2 both resolve to different 192.168.1.X addresses

so i used `sudo dpkg-reconfigure exim4-config` to config home1 and home2
as "mail sent by smarthost; received via SMTP or fetchmail":

System mail name: home1
IP-addresses to listen on: <blank> (so it would listen on all interfaces)
Other destinations: <blank>
Machines to relay mail for: <blank>
IP address or host name of the outgoing smarthost: home1
Hide local mail name in outgoing mail? <No>
Keep number of DNS-queries minimal (Dial-on-Demand)? <No>
Delivery method for local mail: mbox format in /var/mail/
Split configuration into small files? <No>

likewise i did the same config on home2 except i used "home2" where i
used "home1" above.

now when i try to send mail:

scar@home1:~$ mail scar@home2
Subject: foo
foo
.
Cc:
scar@home1:~$

i get a bounce message from postmaster:

Subject: Message frozen

Message 1QlBIc-0005Jt-G0 has been frozen.
The sender is <scar@home1>.

The following address(es) have yet to be delivered:
scar@home2: remote host address is the local host

even if i try using the command `mail scar@192.168.1.X` i get the same
error.



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


All times are GMT. The time now is 04:24 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.