I found it easiest to configure our Zenoss system to use the local sendmail MTA 
and configure sendmail to relay email to our corporate server. The corporate 
server was configured to allow messages from the Zenoss server based on IP 
address and does not use authentication.

These instructions are for RHEL 5.0 and assumes you are logged in as root:

Install sendmail configuration tools

Code:
yum -y install sendmail-cf


Make a copy of the sendmail configuration file

Code:
cd /etc/mail
cp sendmail.mc sendmail.mc.bak


Configure sendmail to use your.domain.name as a relay server. First, edit the 
configuration file.

Code:
nano sendmail.mc


Press Ctrl-w to open a search. Search for the word ‘smart’. 
You will be taken to the line:

Code:
dnl define(`SMART_HOST’, `smtp.your.provider’)dnl


Remove the opening ‘dnl’ and change smtp.your.provider to your.domain.name 
(leave the quotes). The line should look like this when you’re done:

Code:
define(`SMART_HOST’, `your.domain.name’)dnl


Save the file, then recompile the sendmail configuration:

Code:
make -C /etc/mail


Verify that the changes have been recorded

Code:
cat /etc/mail/sendmail.cf | grep your.domain.name


You should see output like this:

Code:
DSyour.domain.name


If you don’t, check the sendmail.mc file again.
Restart the sendmail service

Code:
/etc/init.d/sendmail restart


Verify that you can send mail:

Code:
sendmail [email protected] (press enter)
This is a test message (press enter)


Type (Ctrl-D)
Verify that the message went through

Code:
tail /var/log/maillog


The last entry should confirm that the message was sent.




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=35362#35362

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to