RE: [SLUG] Sendmail Woes... *WARNING* LONG POST!

From: Craig Zeigler (craig@penguindevelopment.com)
Date: Thu Sep 19 2002 - 09:16:53 EDT


I'm also having sendmail troubles, and would strongly suggest the bat
book (O`reilly Sendmail book). In fact I'm off to BN to get one now :)

-----Original Message-----
From: Derek Dakan [mailto:derek@intnet.net]
Sent: Thursday, September 19, 2002 3:18 AM
To: slug@nks.net
Subject: [SLUG] Sendmail Woes... *WARNING* LONG POST!

Ouchies! My head hurts from banging my head against my
monitor. I just can't seem to get Sendmail working right
(i.e. send mail). I have tried several "solutions" that
have given me various degrees of functionality (and errors)
but nothing that really works across the boards. I have
read so many troubleshooting suggestions from USENET
archives that I think I'm worse off then when I started. So
please bear with me if I have trouble articulating what I
think is broken.

I had it working before but now that I've switched providers
(going from a static to a dynamic IP) I haven't had any
luck. I've fallen hopelessly in love with mutt so I utterly
refuse to rekindle a relationship with a gui mail client.
Therefore I simply must get sendmail working again.

I suspect that the problem is my HOSTS file and that my mail
is being rejected by smtp servers because it is coming from
derek@nyarlathotep instead of a real address but what do I
know?

Here are the details:

I have DSL with DHCP from IJ.net.

Here is copy of HOSTS. I manually specified my DHCP address
so I'll run into trouble when it changes on me (anyone know
of a better solution?)

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
209.4.47.124 nyarlathotep.ij.net nyarlathotep

Here is a copy of /etc/mail/sendmail.mc

divert(-1)
dnl This is the sendmail macro config file. If you make
changes to this file,
dnl you need the sendmail-cf rpm installed and then have to
generate a
dnl new /etc/sendmail.cf by running the following command:
dnl
dnl m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
VERSIONID(`linux setup for Red Hat Linux')dnl
OSTYPE(`linux')
dnl Uncomment and edit the following line if your mail needs
to be sent out
dnl through an external mail server:
define(`SMART_HOST',`smtp.ij.net')
define(`confDEF_USER_ID',``8:12'')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
define(`confAUTO_REBUILD')dnl
*more* just default stuff

Here's what happens when I do this:

[derek@nyarlathotep derek]$ telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 nyarlathotep.ij.net ESMTP Sendmail 8.11.6/8.11.6; Thu,
19 Sep 2002 02:52:30 GMT

And this command gives me this:

[root@nyarlathotep sbin]# ./sendmail -d0.1 -bt </dev/null
Version 8.11.6
 Compiled with: LDAPMAP MAP_REGEX LOG MATCHGECOS MIME7TO8
MIME8TO7
                NAMED_BIND NETINET NETINET6 NETUNIX NEWDB
NIS QUEUE SASL SCANF
                SMTP TCPWRAPPERS USERDB

============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = nyarlathotep
  (canonical domain name) $j = nyarlathotep.ij.net
         (subdomain name) $m = ij.net
              (node name) $k = nyarlathotep
========================================================

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>

Do you think my HOSTS file is correct? What do you do if
you don't really have a FQDN and a static IP?

I know this long post is eyesore but if you could provide
any educated guesses I would greatly appreciate it.

Also if you've successfully gotten sendmail working could
you please post a copy of your hosts file and your
sendmail.mc file and perhaps I'll be able to figure out
where I'm going wrong.

TIA

derek



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:46:51 EDT