Okay I haven't yet figured out the ping thing. But on debian, I edited /etc/hosts which was:
Code:
127.0.0.1 localhost
127.0.1.1 debian.javed.local debian
192.168.0.106 debian.javed.local
I changed it to:
Code:
127.0.0.1 localhost
#127.0.1.1 debian.javed.local debian
192.168.0.106 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)
Code:
saad@beast:~$ telnet debian 25
Trying 192.168.0.106...
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: saad@debian.javed.local
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
Subject: Test
Hi,
This is a test
.
250 2.0.0 Ok: queued as DEA444AF71
quit
221 2.0.0 Bye
Connection closed by foreign host.
It WORKED
Here is the postfix conf I used:
Code:
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
relayhost =
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
I also commented out all the TLS parameters in the postfix conf.
Now how do I send an email from saad@debian(192.168.0.106) to saad@beast(192.168.0.104)??
Bookmarks