A lot of religious practice is from a phenomenon noticed by Robert Sapolsky. He noted that pigeons are among the most superstitious of animals. You do not need to train them for this. They do it automatically. They do some kind of action before getting a piece of bread. They later when they are hungry, they will keep on doing tat same action endlessly until they get another piece of bread. Most of religious practice falls into this category. It is not from the realm of holiness nor from the Sitra Achra [Dark Side].It is just a natural phenomenon among people to think that some rituals will bring them their piece of bread.
But not all religious actions. Some is from the Dark Side. or from group think. They follow the heard thinking they will get the shiduch [match].
And on the opposite end of things, there is such a thing as sincere service of God. Not rituals, Actions and deeds that do truly unite one with the Divine.
The question one must always ask oneself is if his or her actions are really sincere, or or they like the pigeons? or perhaps, Heaven forbid, motivated by the Dark Side.
Rav Nachman wrote [LeM I I thinking [perek 25] דע כי האדם צריך להוציא את עצמו מן המדמה (Know that one must take oneself out of delusion) For too much religious rituals are from delusions. Cargo cult rituals. [The original Cargo Cult developed in New Guinea after World War II. During the war, the Melanesian locals, who lived at a mesolithic or neolithic level of culture, saw airplanes arrive and disgorge vast quantities of "cargo." They did not understand that these things had to be manufactured and that the airplanes themselves were artifacts. They believed that the planes and the cargo were gifts from the gods, brought down to earth by ritual invocations. There were incidents where the crew members of aircraft were murdered because the locals thought they were no more than supernumeraries to the divine operation. When the modern armies left and the cargo stopped arriving, the "Cargo Cult" was a religious attempt to reproduce the invocations and effect the continued blessing of the gods. Not surprisingly, it didn't work.]