David Talkington <[EMAIL PROTECTED]> writes: > Harry Putnam wrote: > >>In my setup I have a static IP address but I relay my outgoing mail >>thru my isps smtp machine. I do this by giving that host name as >>answer to Smart relay host: in Sendmail.cf >> >>Now I'll still be doing that but other feeder machines on the home lan >>will be sending to my linux box as there smtp smart_host. And it will >>then be channeled on to the isp smtp machine. > > I use this file on gateways like yours: > > http://www.prairienet.org/~dtalk/software/sendmail.cf > > Change lines 6 and 15 as appropriate, and drop it in place. The only > other thing to do is make sure sendmail allows relaying from your > _local_ network only, by adjusting /etc/mail/access. > > I created that config long ago using information available in the > sendmail documentation at http://www.moongroup.com.
# Lines 6 and 15 must be changed. V8/Berkeley Cw localhost CP. DSsmtp:mail.dslextreme.com CO @ % C.. C[[ Kaccess hash -o /etc/mail/access FR-o /etc/mail/relay-domains DR DH Kdequote dequote DMdslextreme.com With the above edits in place and inserting the suggested sendmaiil.cf Then: > Change lines 6 and 15 as appropriate, and drop it in place. The only > other thing to do is make sure sendmail allows relaying from your > _local_ network only, by adjusting /etc/mail/access. Now looks like: localhost.localdomain RELAY localhost RELAY 127.0.0.1 RELAY 192.168.0.0/24 RELAY (Also tried an exact number here 192.168.0.7) Then running: hash /etc/mail/access < /etc/mail/access And finally restart sendmail service sendmail restart Attempting to send mail from machine 192.168.0.7 with mail client aimed at the above machine with the edited sendmail.cf, for smtp server. Gives me this error on the (Win 98) client: Error reported by server 550 5.7.1 Relaying denied It seems something should appear in /var/log/maillog on the server too, but nothing does. _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list