Chris,
You probably have the latest sendmail from redhat. This sendmail is by default
set to be buttoned down so spammers cannot use the box. This is what I usually
do....
1. Download the latest sendmail from www.sendmail.org, gunzip and untar the
file. cd to the src directory and type (as root) makesendmail. After
completion of the compile, type a makesendmail install.
2. cd to the cf/ostypes directory and change the file linux.m4, such that the
/bin/mail.local is changed to /usr/bin/procmail (just make sure you have
procmail installed). This is not necessary, but it sure gives you better control
of mail.
3. cd to the cf/cf directory and cp generic-solaris2.mc to generic-linux.mc.
4. edit the file generic-linux.mc file to look like this...
divert(0)dnl
VERSIONID(`@(#)generic-linux.mc 8.8 (Berkeley) 5/19/98')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
FEATURE(access_db)dnl
MAILER(local)dnl
MAILER(smtp)dnl
5. type make generic-linux.mc, to create your new .cf file
6. type cp generic-linux.cf /etc/sendmail.cf
7. Now you have the new .cf file made and installed.
8. Now create the files that the .cf file needs
a. mkdir /etc/mail
b. cd /etc/mail
c. create a file called access, and put your masqueraded subnet in it. I have
this...
192.168.1 RELAY
Now create the required database by typing..
makemap hash access < access
d. If you have a domain associated with your server, you should put that
domain in a file called /etc/mail/relay-domains. My file has this...
mydomain.com
e. Create a file called /etc/sendmail.cw that has the names that you want
your server to answer to for mail. Mine has
mail.mydomain.com
mydomain.com
router.mydomain.com
in it.
Now you are set. Make sure the dns tables are pointing to your server for mail,
and then kill and start your sendmail deamon. Everything should be working!!
Plus, this gives you better access control and mail handling than you did
before.
-----------------------------
Dave McFerren [EMAIL PROTECTED]
System Administrator
Net Solutions, Inc.
816-220-0303 fax 816-220-0333
-----------------------------
"It never hurts to help!" Eek the Cat
>From [EMAIL PROTECTED] Fri Oct 2 00:11
CDT 1998
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Delivered-To: mailing list [EMAIL PROTECTED]
> Date: Thu, 01 Oct 1998 23:06:15 -0600
> From: Chris Seto <[EMAIL PROTECTED]>
> MIME-Version: 1.0
> To: manhattan list <[EMAIL PROTECTED]>, Masq <[EMAIL PROTECTED]>
> Content-Transfer-Encoding: 7bit
> Subject: [masq] Can't send email
>
>
> Hi, I've got a win95 machine that's behind a Redhat 5.1 Linux Masq box.
> the masq box also runs my mail server. On my win95 machines I can
> receive mail from the Linux box just fine, but when I try to send email
> it says "[EMAIL PROTECTED], we do not relay." I've had this
> problem before but after I added the win95 machine in the Linux box's
> host file, and put the domain into the win95's network neighborhood it
> then worked. However I've done both these this time, and it still won't
> let me send mail from my win95 box. Anyone have any suggestions?
> Thanks.
>
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For daily digest info, email [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]