First of all, in the new sendmail more secure scheme of operation , you have a process mqueue which picks up the mail messages from the host and then passed them on to sendmail for SMTP delivery.
So in you need in /etc/mail/submit.mc
divert(-1)
divert(0)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
VERSIONID(`linux setup for Red Hat Linux')dnl
define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
define(`confPID_FILE', `/var/run/sm-client.pid')dnl
dnl #
FEATURE(`use_ct_file')dnl
dnl #
FEATURE(`msp', `[your_host.your_domain.COM]')dnl
Change your_host to real name of your host, and your_domain.COM to real_name of your domain.
In your sendmail.mc you need
sendmail.mc
AEMON_OPTIONS(`Port=smtp,Addr=your_host.your_domain.COM,Name=MTA')dnl
and do not forget that in /etc/xinetd.d/smtp you need
#*****************************************************************************#
#
# file : /etc/xinetd.d/smtp
#
#*---------------------------------------------------------------------------*#
#
# description : The smtp server provides mail service.
#
service smtp
{
bind = <IP Number of your_host.your_domain.COM>
disable = no
log_on_failure += USERID
server = /usr/sbin/sendmail
server_args = -Am -bs
socket_type = stream
user = root
wait = no
}
#
#*****************************************************************************#
Once you have edited submit.mc and sendmai.mc you have to regenerate your *.cf files, so do
# cd /etc/mail
# make clean
# make
and you need to restart xinetd with
# /etc/init.d/xinetd restart