> how to configure Sendmail to only accept and only receiving mail? > thanking you You mean "not to relay"? In any recent version that is the default configuration (It will only receive mail destined to itself and only deliver from localhost).