Forum Moderators: bakedjake
Instead of posting tons of info about my sendmail config on RedHat 9.0 I though it would be less painful for everyone to just ask if anyone has a working mail server running RedHat Linux 9 and sendmail. If so could you please post here what version of sendmail you have (out of box, which rpm, or which tarball?); and also your sendmail.mc and whatever tricks you had to use to get it working? It would help a lot! I've tried everything from RPMs to installing the newest sendmail myself and nothing seems to work (yes, even commenting out the DAEMON_OPTIONS line as recommended by the sendmail folks + have added sendmail : ALL : ALLOW to hosts.allow).
Best,
physics
#grep -v ^dnl /etc/mail/sendmail.mc
divert(-1)
include(`/usr/share/sendmail-cf/m4/cf.m4')
VERSIONID(`linux setup for Red Hat Linux')dnl
OSTYPE(`linux')
define(`confDEF_USER_ID',``8:12'')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
Cwlocalhost.localdomain
define(`confCACERT_PATH', `/etc/mail/certs/')
define(`confCACERT', `/etc/mail/certs/CA.cert.pem')
define(`confSERVER_CERT', `/etc/mail/certs/my.cert.pem')
define(`confSERVER_KEY', `/etc/mail/certs/my.key.pem')
[begin attempt to help future hapless WebmasterWorld members]
So anyone reading this with really weird sendmail problems just try
dig mx yourdomain.com Also, I found that it was necessary to add:
DOMAIN(`myserver.com')
DAEMON_OPTIONS(`Port=smtp,Addr=XXX.XXX.XXX.XXX, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
To sendmai.mc in order to get sendmail to listen on both the loopback address and my ip. You can check this with
netstat -pant ¦ grep :25 By the way, I installed the sendmail 8.12.10-1.1.1.i386 Fedora RPM on my RH 9 system and it is working fine (after adjustments to files in /etc/mail of course). Note: this also requires db4-4.1.25-14.i386 RPM which can be found on rpmfind.net I think.