On 7 Jan 2001, Harry Putnam wrote:

> Hoping some sendmail buff here may give me a brief tutorial as to how to
> set my local sendmail up in order to relay mail from other machines on
> my home lan.

<SNIP>

> So its really the IPs smtp server I need to access but I want the
> gateway box to do the accessing through its local sendmail and relay
> the mail from the other two.

I run a very similar setup to you... my home lan is masqueraded by my redhat
box out to the wild world.  The linux machine runs sendmail that all the
internal boxs use as their outgoing smtp server.  To allow relaying from
inside I needed to add an entry for their IP's/Subnet to /etc/mail/access.

The particular file name will depends on this line in sendmail.cf

Kaccess hash -o /etc/mail/access

... but I think that's the redhat standard.

[root@wildwoods mail]# cat access
# Check the /usr/doc/sendmail-8.9.3/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/doc/sendmail-8.9.3/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain           RELAY
localhost                       RELAY
127.0.0.1                       RELAY
10.1.1                          RELAY

... the last line allows all my internal boxs with addresses 10.1.1.* to
relay through sendmail.

Alternativly you block off all connections to port 25 except from your
internal boxes on the network level using ipchains.  Then you can make
sendmail and open relay.  The ipchains part is a good idea regardless, the
open relay part is a cop-out but it is an alternative. :)

M.

-- 
WebCentral Pty Ltd           Australia's #1 Internet Web Hosting Company
Level 1, 96 Lytton Road.           Network Operations - Systems Engineer
PO Box 4169, East Brisbane.                       phone: +61 7 3249 2583
Queensland, Australia.                            pgp key id: 0x900E515F



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

Reply via email to