I have www server called say mywebsite.com and mail serwer mymail.com. Mail for mywebsite.com is handled by mymail.com (mx record for mywebsite.com is mymail.com). Problem is that I want to send mails from my www server mywebsite.com to adress in domain mywebsite.com.
So I configured sendmail on mywebsite.com to relay all mails via mymail.com.
i change sendmail config on mywebsite.com:
dnl # define('SMART_HOST', 'mymail.com')dnl
Problem is that sendmail complains when im sending to for example email@example.com that user is unkown (but that mailbox exist on mymail.com). All maibloxes are on mymail.com not on mywebsite.com.
this is log from telnet to localhost on mywebsite.com
firstname.lastname@example.org# telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 familie.pl ESMTP Sendmail 8.13.8/8.13.8; Sun, 6 Nov 2011 18:21:04 +0100 helo domain.pl 250 domain.pl Hello localhost.localdomain [127.0.0.1], pleased to meet you mail from: email@example.com 250 2.1.0 firstname.lastname@example.org... Sender ok rcpt to: email@example.com 550 5.1.1 firstname.lastname@example.org ... User unknown data 503 5.0.0 Need RCPT (recipient)
Is there a way to disable checking rcpt for local domain??