[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Net Config problems and sendmail
- From: Jay Crews <jpc jaycrews com>
- To: redhat-install-list redhat com
- Subject: Net Config problems and sendmail
- Date: Tue, 31 Dec 2002 07:49:29 -0500 (EST)
I'm having a problem with what I thought was sendmail configuration,
but am now thinking more towards network configurations during the
install.
Here's the scoop:
I installed RedHat 8.0 on my machine.
I use adelphia.net as an ISP
I have registered the domain jaycrews.com and registered the DNS.
(Technically it's a dynamic IP address that I get from my ISP, but
it hardly EVER changes. If I have to change it twicw a year, so be it.)
I used static IP's locally, on the LAN side (192.168.0 200)
Hostname "scooby" (ie scooby.jaycrews.com)
I run all this through a D-Link router and have ports 22, 25, 995,
and 8080 open. (All the traffic seems to work through there.)
OKAY...now that the specs are aside.........
I started configuring everything, starting with sendmail.
Everything seemed to be fine. I can
* receive mail (both locally on the host and FROM the internet)
* send mail ONLY locally on the host
I cannot send mail from my machine to an internet address.
I have set mail up about a half dozen times before on RH 6.2, 7.1,
and 8.0 and never have been stumped like this.
Basically, I have
1) Added my IP address to the /etc/hosts
2) Commented out the line in /etc/mail/sendmail.mc (below) and
rerun the m4 program
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
3) Added my hostname to /etc/mail/local-host-names
4) Restarted sendmail
This is all I have ever had to do before, but now I have this
strange problem. And from what I can tell, I get a "550 5.7.1" error
for "unknown user" when trying to send mail out over the internet.
I tried the following test to try to trace what was happening with sendmail
using a valid email address (jpc beer com)
$ echo Test | sendmail -v jpc beer com
Below is the results, followed by the offending lines in /var/log/maillog
I can do the same test locally (jpc is a valid user on my machine)
$ echo Test | sendmail -v jpc
and it works fine, but it takes sendmail 20-30 seconds to go through.
(I tried using sendmail like that on a properly working machine, and
it ALWAYS comes back in a couple of seconds.)
Guess I'm a little confused about the "unknown user" error. I KNOW
jpc beer com is valid. (PLUS, I tried a dozen or so other addresses. ALL
fail.)
Is it trying to verify that "jpc" is valid on my machine? It does
it fine when sending locally.
Is it trying to verify that "jpc" is a valid user on adelphia.net?
jpc might not be, so I tried creating a username for my roommate on my
machine. She DOES have a mail login on adelphia.net. STILL No luck.
Thought maybe adelphia.net (our ISP) might be filtering out packets going
out on port 25, but before I installed, I had RH 7.1 running fine on it.
Below are some error messages and entries from some config files. If
I can provide anything else, let me know.
ANY help would be GREATLY appreciated!!!!
--Jay Crews
jpc jaycrews com
=-=-=-=-=-= Results from: # echo Test | sendmail -v jpc beer com -=-=-=-
==> jpc beer com Connecting to localhost.jaycrews.com. via relay...
==> 220 scooby.jaycrews.com ESMTP Sendmail 8.12.5/8.12.5; Tue, 31 Dec 2002 01:57:29 -0800
==> >>> EHLO scooby.jaycrews.com
==> 250-scooby.jaycrews.com Hello ca-stmnca-cuda2-blade9b-64.stmnca.adelphia.net [68.65.228.64], pleased to meet you
==> 250-ENHANCEDSTATUSCODES
==> 250-PIPELINING
==> 250-8BITMIME
==> 250-SIZE
==> 250-DSN
==> 250-ETRN
==> 250-DELIVERBY
==> 250 HELP
==> >>> MAIL From:<jpc scooby jaycrews com> SIZE=5
==> 250 2.1.0 <jpc scooby jaycrews com>... Sender ok
==> >>> RCPT To:<jpc beer com>
==> >>> DATA
==> 550 5.7.1 <jpc beer com>... Relaying denied
==> 503 5.0.0 Need RCPT (recipient)
==> >>> RSET
==> 250 2.0.0 Reset state
==> /home/jpc/dead.letter... Saved message in /home/jpc/dead.letter
==> Closing connection to localhost.jaycrews.com.
==> >>> QUIT
==> 221 2.0.0 scooby.jaycrews.com closing connection
=-=-=-=-=-= Corrosponding Error lines from /var/log/maillog -=-=-=-=-=-=-=-=
Dec 31 01:57:09 scooby sendmail[14537]: gBV9v30Q014537: from=jpc, size=5, class=0, nrcpts=1, msgid=<200212310957 gBV9v30Q014537 scooby jaycrews com>, relay=jpc localhost
Dec 31 01:57:44 scooby sendmail[14539]: gBV9vTd6014539: ruleset=check_rcpt, arg1=<jpc beer com>, relay=ca-stmnca-cuda2-blade9b-64.stmnca.adelphia.net [68.65.228.64], reject=550 5.7.1 <jpc beer com>... Relaying denied
Dec 31 01:57:44 scooby sendmail[14537]: gBV9v30Q014537: to=jpc beer com, ctladdr=jpc (500/500), delay=00:00:41, xdelay=00:00:35, mailer=relay, pri=30005, relay=localhost.jaycrews.com. [68.65.228.64], dsn=5.7.1, stat=User unknown
Dec 31 01:57:44 scooby sendmail[14539]: gBV9vTd6014539: from=<jpc scooby jaycrews com>, size=5, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=ca-stmnca-cuda2-blade9b-64.stmnca.adelphia.net [68.65.228.64]
=-=-=-=-=-=-=-=-=- /etc/hosts =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.1 router.jaycrews.com router
192.168.0.200 scooby.jaycrews.com scooby
192.168.0.210 kris.jaycrews.com kris
192.168.0.211 jeff.jaycrews.com jeff
=-=-=-=-=-=-=-=-=- /etc/mail/local-host-names =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# local-host-names - include all aliases for your machine here.
# NOTE: I have tried ALL combinations of these.
scooby.jaycrews.com
jaycrews.com
scooby
=-=-=-=-=-=-=-=-=- /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/mail/sendmail.cf by running the following command:
dnl
dnl m4 /etc/mail/sendmail.mc > /etc/mail/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:
dnl define(`SMART_HOST',`smtp.your.provider')
define(`confDEF_USER_ID',``8:12'')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
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
dnl define(`STATUS_FILE', `/etc/mail/statistics')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
dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confCACERT_PATH',`/usr/share/ssl/certs')
dnl define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt')
dnl define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem')
dnl define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem')
dnl define(`confTO_QUEUEWARN', `4h')dnl
dnl define(`confTO_QUEUERETURN', `5d')dnl
dnl define(`confQUEUE_LA', `12')dnl
dnl define(`confREFUSE_LA', `18')dnl
define(`confTO_IDENT', `0')dnl
dnl FEATURE(delay_checks)dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')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
dnl The '-t' option will retry delivery if e.g. the user runs over his quota.
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
dnl This changes sendmail to only listen on the loopback device 127.0.0.1
dnl and not on any other network devices. Comment this out if you want
dnl to accept email over the network.
dnl Commented out 12/26/02 by --Jay Crews jpc jaycrews com
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
dnl NOTE: binding both IPv4 and IPv6 daemon to the same port requires
dnl a kernel patch
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')
dnl We strongly recommend to comment this one out if you want to protect
dnl yourself from spam. However, the laptop and users on computers that do
dnl not have 24x7 DNS do need this.
dnl Commented out 12/29/02 by --Jay Crews jpc jaycrews com
FEATURE(`accept_unresolvable_domains')dnl
dnl FEATURE(`relay_based_on_MX')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
Cwlocalhost.localdomain
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]