Sendmail Host Name

DazedAndConfuse

Registered
Ever since the last set of updates - I don't know whether it was the OS update or the Sendmail update I've been having problems with sendmail. Whenever I send a mail the from address is always

user@rendezvous-name.local

It never used to be this way, and a lot of mail servers will bounce this address (rightly so in my opinion) as not being valid.

Does anyone know how I can fix this so that messages come from

user@mydomain.com

again?
 
Go to System Preferences -> Sharing

Change "Computer Name" and "Rendezvous Name" to whatever your host needs to be.

You could also edit the following file:

/private/etc/hostconfig

change HOSTNAME=your.domain.com to something relevant

change APPLETALK_HOSTNAME="???" to something relevant

I'm not sure where the Rendezvous name is stored, I'd stick with the GUI to play it safe!


:cool:
 
Unfortunately it is not quite a simple as that. All you are doing there is changing the host machine name. I should have been clearer. What I want is to have mail sent from

user@mydomain.com

The line

define(`confDOMAIN_NAME', `mydomain.com')

in the sendmail configuration should do this. At least it used to. If I were to use the line

define(`confDOMAIN_NAME', `$w.mydomain.com')

the name of the machine (from sharing preferences) would be inserted before mydomain.com. Or at least it used to. Now those lines seem to have no effect whatsoever.
 
Back
Top