--On 09/24/00 08:04:16 PM -0500 Jonathan Wilson <[EMAIL PROTECTED]> 
wrote:

> Ok, what am I doing wrong. My boss thinks that maybe procmail isn't
> working.

Procmail has nothing to do with the problem below.

> I don't know anything about setting up mail in Linux - hope
> someone who does can help out here.

I'll try

> On this box is a shell account with the username admin. so I should
> be able to send mail to admin@[this box's hostname] right?
>
>
> Here's a sample of a test mail I send:


What's below looks sort of like a bounce -- I say sort of because it 
doesn't originate from MAILER-DAEMON and doesn't have the normally 
generated SMTP error codes.  Is the mail transport agent (MTA) on 
csc001.claborn.net not sendmail?  I know there are others about, but 
I'm not familiar with them.

Anyway, that's an aside.  From the message below, I would assume that 
csc001.claborn.net is a separate box from servicemail123.com.  Mail 
destined for servicemail123.com routed through it (interesting that I 
can lookup the IP address of clayborn.net, but not csc001.claborn.net, 
also clayborn.net and servicemail123.com share a common mailforwarder).
If clayborn.net is running sendmail, anything from about 8.9.1, or 
there abouts, denies relaying by default.  You must specifically enable 
it, which means you have to get into the sendmail configuration file.

> __________________________________________________________
> To: [EMAIL PROTECTED]
> From: Mail Administrator<[EMAIL PROTECTED]>
> Reply-To: Mail Administrator<[EMAIL PROTECTED]>
> Subject: Mail System Error - Returned Mail
> Date: Sun, 24 Sep 2000 19:49:16 -0500
> Message-ID: <[EMAIL PROTECTED]>
> MIME-Version: 1.0
> Content-Type: multipart/mixed;
>                 Boundary="===========================_ _=
>                 2637023(714)"
> Content-Transfer-Encoding: 7BIT
>
> This Message was undeliverable due to the following reason:
>
> Each of the following recipients was rejected by a remote mail server.
> The reasons given by the server are included to help you determine why
> each recipient was rejected.
>
>     Recipient: <[EMAIL PROTECTED]>
>     Reason:    <[EMAIL PROTECTED]>... Relaying denied
> _________________________________________________________
> csc001.claborn.net is our NT pop3 server. I know it works, we use it
> every day. apparently, however, the Linux box will not accept mail
> from it. (servicemail123.com is the new domain we bought for the
> Linux box. The MX record points to mail.servicemail123.com , and
> mail.servicemail123.com is what I put in /etc/sendmail.cw - does that
> sound right?
>

Did you install sendmail from source, and if not why not?  First, I 
notice that you're running a fairly old version of sendmail with some 
known security issues.  Go to www.sendmail.org and download either the 
8.10.1 or 8.11.0 tarball.  You probably don't need to do any 
customization to the compile process, so simply untar it, cd into the 
root directory (of the distribution) and type ./Build.  This will 
compile but not install sendmail and all the associated support 
programs.  The whole process should just take only a few minutes.  If 
the compile fails you probably have one or more required libraries in 
non-standard places, but we can set up some custom pointers to resolve 
that.  Also, before going any further, back up your existing sendmail 
binary (/usr/sbin/sendmail).  I usually simply make a copy of it with 
the date attached to the name.  For example, I writing this on 9/24 and 
so I would cd to /usr/sbin and type "cp sendmail sendmail-2000.09.24". 
Whether you do it that way or not, the important thinmg is to make a 
copy.  Do the same with the entite contents of /etc/mail which is 
probably easiest done by tarring a copy.

>From the sendmail source program root (the same place you were in when 
you ran the Build script), cd to "cf", and print a copy of the README 
file.  It's the m4 macro documentation which is what we will use to 
build a working sendmail.cf file, and it's quite long.  Also, if you 
have a copy of the O'Reilley Sendmail book, 2nd edition, grab it as 
well.  In the O'reilley book, look through the explanation of the m4 
macros in chapter 19.  Once we build an initial sendmail.mc macro file 
you'll be able to modify it as needs require and build the cf file from 
it just using make which is such an improvement over the old days.

Once you've got sendmail built and have looked at the macro docs, email 
me back and I'll walk you through the rest of the process.  Also, I 
suggest you email me privately so we don't clutter up the list with 
sendmail specific stuff.

> What thing is responsible for receiving incoming mail and putting it
> in local user's mailboxes - sendmail or procmail or what?

Sendmail invokes the local delivery agent after it has successfully 
received the message.  If procmail is setup in the sendmail.cf file as 
your local delivery agent then procmail delivers it.  We will need to 
address all that when we create the sendmail.mc file.

-- Rob



       _ _ _ _           _    _ _ _ _ _
      /\_\_\_\_\        /\_\ /\_\_\_\_\_\
     /\/_/_/_/_/       /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
    /\/_/__\/_/ __    /\/_/    /\/_/          PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_/    /\/_/
  /\/_/ \/_/  /\/_/_/\/_/    /\/_/         (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/     \/_/              appears profound)

  Rob Tanner
  McMinnville, Oregon
  [EMAIL PROTECTED]



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to