Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to reject mails from senders claiming to be in my domain?

Status
Not open for further replies.

tilli

MIS
Nov 20, 2002
9
0
0
DE
Hi,

does anyone know how to reject messages from senders claiming to be in one of the domains we do relaying for? I don't see a possible access-db-solution...

(not working) example for access.db:

Connect:[192.168.0.1] RELAY
To:my.domain.com RELAY
From:my.domain.com REJECT

"OK" instead of "RELAY" also fails. How can I block mails with sender and recipient from my domain (or at least the same domain)?

Thanks for help!
Tilli
 
You probably have the option relay_local_from set in your sendmail.mc file. Remove it and replace it with either relay_entire_domain or relay_hosts_only.

Regards.
 
Our machines don't deliver local mail, they are for relaying only. So there is no need for elay_local_from.

relay_entire_domain is for relaying every mail from or to our local domains, but that works already.

We do not use the "relay-domains" file so relay_hosts_only would not have any effect.

I would like to know if there is a hack or a feature to control relaying problems as described via entries in the access.db.

Thanks,
Tilli
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top