Need help on sendmail

my requirement is user should be able put username@particular domain in from address, if he is adding anything in from address,it should not allow to send the mail.

there should be restriction on from address.

And what have you tried so far?

I have done the below changes in /etc/mail/access file and restarted the sendmail service.

@particular domain.com ok

but this is not working, still user is able to add any domain name in from address abc@abc.om.