In short
No suit, prosecution or other legal proceeding can be brought against the Central Government, any government officer or a local authority for anything done or intended to be done in good faith under the Customs Act, rules or regulations. Any proceeding other than a suit against them for acts done under the Act needs one month's prior written notice and must be started within three months of when the cause arose.
(1) No suit, prosecution or other legal proceedings shall lie against the Central Government or any officer of the Government or a local authority for anything which is done, or intended to be done in good faith, in pursuance of this Act or the rules or regulations.
(2) No proceeding other than a suit shall be commenced against the Central Government or any officer of the Government or a local authority for anything purporting to be done in pursuance of this Act without giving the Central Government or such officer a month's previous notice in writing of the intended proceeding and of the cause thereof, or after the expiration of three months from the accrual of such cause.
Source: Customs Act, 1962 — official text published by the Central Board of Indirect Taxes and Customs (CBIC) on its Tax Information Portal (taxinformation.cbic.gov.in), including the amendments noted above.
This page is educational. It is not professional advice or a formal tax computation. Verify the position against the official source above for the period that applies to you, and consult an authorised professional before acting on it.