20100628 sendmail smart host config on rhel - plembo/onemoretech GitHub Wiki

title: Sendmail Smart Host Config on RHEL link: https://onemoretech.wordpress.com/2010/06/28/sendmail-smart-host-config-on-rhel/ author: lembobro description: post_id: 149 created: 2010/06/28 15:12:17 created_gmt: 2010/06/28 15:12:17 comment_status: open post_name: sendmail-smart-host-config-on-rhel status: publish post_type: post

Sendmail Smart Host Config on RHEL

Just a reminder for those (like me) who always forget where to do this. On Red Hat Enterprise Linux, in /etc/mail/sendmail.cf (yeah, I know, it really should be done in sendmail.mc and then m4'd):

# "Smart" relay host (may be null)
DS
DSsmtp.example.com.

Then restart sendmail with an "/etc/init.d/sendmail restart".

To test whether it's working create a text file named something like "test.txt" with something in it (like "Test from Big Rock 1") and issue this command:

cat test.txt | mail -s "Test message" [email protected]

Copyright 2004-2019 Phil Lembo