Forum Moderators: bakedjake

Message Too Old, No Replies

Redhat Linux 9.0 + Sendmail

Cannot get these to work together :(

         

physics

8:02 pm on Feb 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

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

SeanW

2:42 am on Feb 22, 2004 (gmt 0)

10+ Year Member



Yes, I've been using redhat and sendmail for ages... What's the specific problem? I usually stick to the Red Hat RPM, FWIW


#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')

physics

7:34 am on Feb 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi SeanW, thanks for posting that, it helped a bit.
The *real* problem, however, is that the tools at my colo host put the wrong mx entry for my domain! So instead of putting mail.myserver.com they put mail.oneoftheirotherclientsservers.com! I even emailed them about this before but they pretty much didn't understand what was going on (neither did I really, which is why I didn't press the issue).
Anyway, so no *wonder* I couldn't recieve email!

[begin attempt to help future hapless WebmasterWorld members]
So anyone reading this with really weird sendmail problems just try

dig mx yourdomain.com

And check the mail server entry to make sure it's yours! Also, in the future if someone adds a DNS entry for you ask them to send you the output of this command as a confirmation.

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

Where XXX.XXX.XXX.XXX = the IP of myserver.com

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.