Hi all,
I have done quite a bit of research on this but struggling to resolve my issue.
I have a network at home with a server (server1.mydomain.com) which can hook upto a mail server to send alerts out and an email server (server-mail.mydomain.com). I started to try and build an email server using postfix to send an email to my gmail account (adam@gmail.com) from server1
I installed postfix and added a few config changes:
Code:
mydestination = server-mail.mydomain.com, localhost.mydomain.com, localhost, mydomain.com, gmail.com
mynetworks = 127.0.0.0/8, 192.168.1.0/24
I then just tried to send an email:
Code:
telnet localhost 25
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 server-mail.mydomain.com ESMTP Sendmail 8.14.4/8.14.4/Debian-2ubuntu2; Wed, 18 Sep 2013 18:59:16 +0400; (No UCE/UBE) logging access from: server-mail.mydomain.com(OK)-server-mail.mydomain.com [127.0.0.1]
ehlo server1.mydomain.com
250-server-mail.mydomain.com Hello server-mail.mydomain.com [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
mail from: server1@mydomain.com
250 2.1.0 server1@mydomain.com... Sender ok
rcpt to: adam@gmail.com
553 5.1.8 adam@gmail.com... Domain of sender address server1@mydomain.com does not exist
I'm trying to emulate my server1 sending a mail (I think) by using ehlo server1.mydomain.com
I dont know if I'm way off here but any help would be appreciated
Bookmarks