Okay I haven't yet figured out the ping thing. But on debian, I edited /etc/hosts which was:
I changed it to:
127.0.1.1 debian.javed.local debian
After that I tried sending an email from saad@beast(192.168.0.104) to saad@debian(192.168.0.106)
#127.0.1.1 debian.javed.local debian
192.168.0.106 debian.javed.local debian
saad@beast:~$ telnet debian 25
Connected to debian.javed.local.
Escape character is '^]'.
220 debian.javed.local ESMTP Postfix (Debian/GNU)
mail from: saad@beast
250 2.1.0 Ok
rcpt to: saad@debian
550 5.1.1 <saad@debian>: Recipient address rejected: debian
rcpt to: email@example.com
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>
This is a test
250 2.0.0 Ok: queued as DEA444AF71
221 2.0.0 Bye
Connection closed by foreign host.
Here is the postfix conf I used:
I also commented out all the TLS parameters in the postfix conf.
myhostname = debian.javed.local
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = debian.javed.local, localhost.javed.local, localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128, 192.168.0.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
default_transport = error
relay_transport = error
Now how do I send an email from saad@debian(192.168.0.106) to saad@beast(192.168.0.104)??