Hi guys!
I think this problem is kind of common ones, but search showed nothing...
I have a debian box as a web-server. And when php script sends mail to a domain, that hosted on this server (I mean site with that domain name), sendmail tries to receive mail, ending up with "dsn=5.1.1, stat=User unknown" in log.
I've found that one of IPs of my box resolves to that domain, and sendmail -bt showed:
Code:
sendmail -bt
Enter <ruleset> <address>
> $=w
[1.2.3.4] - first IP of my box
[1.2.3.5] - another one
localhost.localdomain
localhost
thatdomain.tld
[localhost.localdomain]
[127.0.0.1]
[thatdomain.tld]
So the question is: I don't need a web-server to receive any mail, that is done on other box. How can I make sendmail to relay everything?
Thnx in advance!