This paper proposes a new type of smoothing homotopy method for solving general nonlinear optimal control problems via the indirect method, leveraging the Mainardi kernel as the smoothing kernel. The Mainardi kernel is firstly derived from the fundamental solution of the time-fractional diffusion-wave equation, representing a generalized form of the Gaussian kernel. By altering the fractional derivative order, the kernel can seamlessly switch between non-Gaussian and Gaussian forms. Then, parts of the two-point boundary value problems are convolved with the smoothing kernel, and the resulting surrogates are incorporated into the necessary conditions, replacing the terminal state and costate variables. The homotopy process is used for the smoothing parameter: increasing this parameter enhances the smoothing effect, simplifying the homotopy problems, while a parameter value of zero implies no smoothing, reverting to the original problems. Additionally, explicit expressions for the Mainardi kernel at specific derivative orders are derived, avoiding the inefficiencies associated with fractional derivatives. Simulation examples demonstrate that the proposed method offers significant advantages in flexibility and convergence compared to the traditional Gaussian smoothing homotopy method.