Subject: sendmail -- All my network files here
To: None <netbsd-help@netbsd.org>
From: Gan Starling <MisteraSturno@worldnet.att.net>
List: netbsd-help
Date: 09/21/2001 20:57:48
Okay, here below are what I believe to be pretty much everything
about my network. Anyway, all the stuff that folks asked for.

I have also emailed AT&T to ask them about MTU values. And I have
placed queries on news groups which seem to apply.

Recall that this is about being able to send, via SMTP, short emails of
less than 2K but not being able to send emails of longer than 2K. I will
port this over to floppy and send it via Win98 since it is sure to be
more than 2K chars. At present, I am trying to do by SENDMAIL instead
of KDE's SMTP. Even worse luck with sendmail in that NO emails seem
to get out at all.

I have two systems. When first I noticed this problem, they both
did the same thing with respect to long emails. The two machines
are:

 1.  A tower unit with an Intel D815EEA2 motherboard
     and USRobotics external modem.
 2. An IBM ThinkPad 380Z and Linksys 56K modem.

 Both are running NetBSD 1.5.1 and KDE2. The laptop had formerly
 had NetBSD 1.5 and KDE 1.1.2. I recall from memory that email on
 KDE 1.1.2 had given me similar problems with complaints of
 <body> and refusing to ever email again. It was a mystery at
 the time. I did not then know that deleting the long message from
 the que would solve the problem.

 I had originally noticed the problem using the KMail SMTP option.
 On several recommendations, I have tried to switch to sendmail.
 But no emails go out. I have not been successful to get SENDMAIL
 to connect to the AT&T gateway. It will time out on each of half
 a dozen gateways in succession.

Anything else anybody wants to know, I will go in search of it.
Thanks,

Gan Starling
Kalamazoo MI USA

######### BEGIN ALL NETWORK FILES AND INFO ########

# /etc/hosts
#	$NetBSD: hosts,v 1.5.4.1 2000/08/15 14:37:19 itojun Exp $
::1			localhost
127.0.0.1		localhost
#
# Per NetBSD Guide 9.3 - Creating a small home network
#
192.168.1.6 CompaqRPC BENT1 
192.168.1.7 thinkpad.starling.ws ThinkPad STURNO1
192.168.1.9 solo.starling.ws Solo STURNO2
192.168.1.10 sas.starling.ws Win2K STURNO3 
192.168.1.11 gus.starling.ws NetBSD STURNO4
# End of /etc/hosts


# /etc/resolv.conf
#
nameserver 204.127.160.2
nameserver 204.127.129.2
# looiup file bind
# End of /etc/resolv.conf


# /etc/ifconfig.fxp0
# Per NetBSD Guide Chap 9
#
inet 192.168.1.11 netmask 0xffffff00
# End of /etc/ifconfig.fxp0

...Below is exploration of result from above...

gus# ifconfig fxp0
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:03:47:a0:49:27
        media: Ethernet autoselect (none)
        status: no carrier
        inet 192.168.1.11 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::203:47ff:fea0:4927%fxp0 prefixlen 64 scopeid 0x1
gus#

...Below file originally did not exist, as I was running straight out to
USRobotics modem at tty00. I figured it was for clients sharing a
gateway (some other machine on the LAN?). But, just in case, I
created this anyway. It didn't seem to make a difference. I am
thinking maybe I should remove it now?...

# /etc/mygate
#
192.168.1.10
# End of /etc/mygate


# /etc/nsswitch.conf
group:		compat
group_compat:	nis
hosts:		files dns
netgroup:	files [notfound=return] nis
networks:	files
passwd:		compat
passwd_compat:	nis
shells:		files
# End of /etc/nsswitch.conf


# /etc/ipnat.conf
# Per the NetBSD Guide, Chap. 9.4.1, Configuring the gateway/firewall
#
map ppp0 192.168.1.1/24 -> 0/32 proxy port ftp ftp/tcp
map ppp0 192.168.1.1/24 -> 0/32 portmap tcp/udp 40000:60000
map ppp0 192.168.1.1/24 -> 0/32
#
# End of /etc/ipnat.conf


#!/bin/sh
# /etc/ppp/ip-up
# Per NetBSD Guide 9.4.1
# IPNAT - Configuring the gateway/firewall
/usr/sbin/ipnat -F
/usr/sbin/ipnat -C
/sbin/ipf -E
/usr/sbin/ipnat -f /etc/ipnat.conf
# End of /etc/ppp/ip-up


...Now I get info for ppp, as asked. Below is result after
typing /etc/ppp/ppp-up on NetBSD ttyE0...

gus# ifconfig ppp0
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1514
        inet 12.87.99.99 -> 199.69.200.57 netmask 0xff000000
        inet6 fe80::203:47ff:fea0:4927%ppp0 -> :: prefixlen 64 scopeid
0x3
gus#

...then I type /etc/ppp/ppp-down on NetBSD ttyE0, reboot and
then restart ppp by clicking on 'Internet, Internet Dialer' in KDE
(kppp)
below is result...

gus# ifconfig ppp0
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1514
        inet 12.87.99.132 -> 199.69.200.57 netmask 0xff000000
        inet6 fe80::203:47ff:fea0:4927%ppp0 -> :: prefixlen 64 scopeid
0x3
gus#

...And Jeremy C. Reed suggested that I try this...

gus# jot -s '' 1000 | mail -s "2894 characters" oinkfreebiker@att.net
gus# (echo "Subject: 2001 characters" ; echo ; jot -s '' -b 'x' +2000 )
| \
/usr/sbin/sendmail oinkfreebiker@att.net
gus#
gus# fetchmail
fetchmail: No mail for oinkfreebiker at postoffice.worldnet.att.net
gus#


...And Thomas Michael Wanka asked me to try this...


gus# telnet gateway4.att.net:25
gateway4.att.net:25: No address associated with hostname
gus#

...which looks like a problem! So, just as a check, I do...

gus# ping netbsd.org
PING netbsd.org (204.152.186.171): 56 data bytes
64 bytes from 204.152.186.171: icmp_seq=0 ttl=243 time=192.949 ms
64 bytes from 204.152.186.171: icmp_seq=1 ttl=243 time=186.379 ms
^Z
Suspended
gus#

...and then for tripple check I do...

gus# ping gateway4.att.net
PING gateway4.att.net (204.127.134.23): 56 data bytes
64 bytes from 204.127.134.23: icmp_seq=0 ttl=52 time=158.786 ms
64 bytes from 204.127.134.23: icmp_seq=1 ttl=52 time=155.189 ms
^Z
Suspended
gus#

...and now I am very stumped! I know that for KMail's SMTP I had to put
in this address...

mailhost.worldnet.att.net   on port  25

...which makes me wonder what is the deal with gateway4.att.net. I know
that that is the address I put in for SMART_HOST.  Anyway, here are my
config inputs for sendmail...

########## BEGIN MYCF.MC #############

# /usr/share/sendmail/m4/mycf.mc
# From the NetBSD Guide, Chap. 11.1.1, Configuration with genericstable

divert(-1)
include(`../m4/cf.m4')dnl
VERSIONID(`mycf.mc (data) created by gus.starling.ws')dnl
OSTYPE(bsd4.4)dnl

GENERICS_DOMAIN(gus.starling.ws)dnl
FEATURE(genericstable)dnl
FEATURE(masquerade_envelope)dnl

define(`SMART_HOST', `mailhost.worldnet.att.net')dnl

FEATURE(redirect)dnl
FEATURE(nocanonify)dnl

define(`SMTP_MAILER_FLAGS', `e9')dnl
define(`confCON_EXPENSIVE', `True')dnl

# `for Esperanto speakers'
define(`confDEF_CHAR_SET', `ISO-8859-3')dnl

MAILER(local)dnl
MAILER(smtp)dnl

############ END MYCF.MC #############


# /etc/genericstable
# From the NetBSD Guide, Chap 11.1.1, Configuration with genericstable
(for sendmail)
#
gus:    oinkfreebiker@att.net
root:    oinkfreebiker@att.net
news:   oinkfreebiker@att.net
# End of /etc/genericstable

######### END ALL NETWORK FILES AND INFO ########

Thanks,

Gan

------------

Mysterious Starling -- Rarest Extinct Bird
     _         
   <(+)__        Gan Uesli Starling 
     ((__/)=-    Kalamazoo, MI, USA
      `||`      
       ++        http://starling.ws 

Newbie-2-Newbie NetBSD Unix How-To Pages at... 
http://om-ah-hum.com/share/gus_netbsd_index.html