You were misinformed. Only flag officers receive gun salutes. However, anyone who has served honorably is entitled to and should receive three rifle volleys.
Dad was a Master Sergant and performed mostly clerical work, not only during his time of service, but for over 25 years after he was discharged, working in Civil Service (before he "retired" for the first of 4 times) and he was an incredibly organized person.