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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Block domain, but allow subdomain?

Status
Not open for further replies.

grlygrl13

Technical User
Aug 11, 2006
1
US
Hi All

I am trying to figure out the best way to set up an anti-spoof for my domain on sendmail. Currently I have in my access.mta file

From:abc.com REJECT

I now have a subdomain that is sending mail back inbound that appears to be from 123.abc.com. I need to accept this email, but I still want to keep the measures in place to reject the other email. Can this be done?

Any ideas/input are appreciated!
 
IIRC, this is no different than any other ACL--the first rule to match is used. So if you had

From:123.abc.com ACCEPT
From:abc.com REJECT

it would work. Alternatively, if you had:

From:abc.com REJECT
From:123.abc.com ACCEPT

it would not work, since the REJECT rule would match first.

It's been some time since I played with Sendmail, so I may be mistaken--but I do not believe I am.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top