How to deny relay from "local network"?

How to deny relay from "local network"?

am 23.04.2008 20:45:00 von mtumse

I need to stop accepting outbound emails (relaying through my mail
server) from the local clients. In other words they should only be
able to send mail to the company's domain that is local to the mail
server.

If I add my network (192.168.10) in the access database the clients
get rejected right after the sender address:

telnet mymailserver 25
220 mymailserver ESMTP Sendmail 8.11.7p3+Sun/8.11.7; Wed, 23 Apr 2008
mail from: asdf@asdf.com
550 5.7.1 Access denied

Re: How to deny relay from "local network"?

am 23.04.2008 23:04:25 von mtumse

OK I'm answering my own question here but hopefully this will benefit
others that might search for this in the future.

By default FEATURE(`relay_entire_domain') is included in the DOMAIN
file on Solaris. If you remove this line even the local clients can't
relay unless you allow specific domains that you'll relay to by adding
them to /etc/mail/relay-domains

Remember, relaying is not the same as accepting mail for the local
domain.

On Apr 23, 11:45 am, mtu...@aol.com wrote:
> I need to stop accepting outbound emails (relaying through my mail
> server) from the local clients. In other words they should only be
> able to send mail to the company's domain that is local to the mail
> server.
>
> If I add my network (192.168.10) in the access database the clients
> get rejected right after the sender address:
>
> telnet mymailserver 25
> 220 mymailserver ESMTP Sendmail 8.11.7p3+Sun/8.11.7; Wed, 23 Apr 2008
> mail from: a...@asdf.com
> 550 5.7.1 Access denied