Take a look at this thread: https://community.emc.com/thread/178790?start=0&tstart=0
cd /etc/mail
make (generates hostname.mc and hostname.submit.mc - in my case node 1 calls itself Isilon-1 so I get Isilon-1.submit.mc)
Edit [hostname].submit.mc and add everything from ADDED LINES to END ADDED LINES below (the masquerade and SMART_HOST lines), then "make all install restart". It should be good to go (assuming your relay host is set up to accept mail from your cluster).
divert(-1) # # Copyright (c) 2001-2003 Sendmail, Inc. and its suppliers. # All rights reserved. # # By using this file, you agree to the terms and conditions set # forth in the LICENSE file which can be found at the top level of # the sendmail distribution. # # # # This is the FreeBSD configuration for a set-group-ID sm-msp sendmail # that acts as a initial mail submission program. # divert(0)dnl VERSIONID(`$FreeBSD$') define(`confCF_VERSION', `Submit')dnl define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet define(`confTIME_ZONE', `USE_TZ')dnl define(`confDONT_INIT_GROUPS', `True')dnl define(`confBIND_OPTS', `WorkAroundBrokenAAAA')dnl dnl dnl ADDED LINES define(`SMART_HOST',`mail.yourdomain.com') dnl MASQUERADE_AS(yourdomain.com)dnl FEATURE(masquerade_envelope)dnl FEATURE(masquerade_entire_domain)dnl MASQUERADE_DOMAIN(yourdomain.com)dnl dnl END ADDED LINES dnl dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1] FEATURE(`msp', `[127.0.0.1]')dnl
I try to run mail and mailx and nothing.