[CentOS] dumb sendmail question -- how to get outbound messages to use "example.com" instead of hostname?

Mon Jul 2 20:53:59 UTC 2007
Chris Boyd <cboyd at gizmopartners.com>

On Jul 2, 2007, at 12:43 PM, Jeff Potter wrote:

> The problem is the hostnames of these machines don't exist in real  
> DNS anywhere, so when they try to send mail to the outside world,  
> other mail servers are seeing an invalid domain in the from address  
> and summarily rejecting the messages (which makes sense).
> I need to figure out how to tell sendmail, when sending outbound  
> messages, to use the domain name "example.com", instead of  
> "subdomain.example.com". It would seem simple in /etc/mail/ 
> sendmail.mc:

You can set the host name other people see with something like
define(`confDOMAIN_NAME', `your.server_name.com')

--  Chris