[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Sendmail relay configuration - RHEL 3.0



IECISA.Ortega Gonzalez, Carlos wrote:



I've read some information about configuring sendmail, and have tried adding:



define(`SMART_HOST',`mailhost')



in the /etc/mail/sendmail.mc file (mailhost is properly defined in the /etc/hosts file). I've used the m4 macro to generate a new sendmail.cf file, and have restarted sendmail. I keep getting the same error.


Just to make sure that the smart host made it into sendmail.cf do "grep '^DS' /etc/mail/sendmail.cf" -- You should see "DSmailhost" and not "DS".


I don't recall exactly what happens with the smart-host, but sendmail does have a preference for fully-qualify names (eg mailhost.example.com) and also prefers names to be in the DNS rather than in /etc/hosts. You could try making sure that the FQDN for mailhost appears on the line in /etc/hosts before plain "mailhost" and if that doesn't work, make sure mailhost is in the DNS.

You could also try "mailhost.example.com." (not the trailing dot) and the IP address for mailhost if nothing else works.

I don't know what your error is, I'm just going through the list of things I'd try if smart-host forwarding wasn't working.

jch


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]