Except as to cases coming within Chapter 1 (commencing with Section 7540) of Part 2, a man not a presumed father may bring an action for the purpose of declaring that he is the natural father of a child having a presumed father under Section 7611, if the mother relinquishes for, consents to, or proposes to relinquish for or consent to, the adoption of the child. An action under this section shall be brought within 30 days after (1) the man is served as prescribed in Section 7666 with a notice that he is or could be the father of the child or (2) the birth of the child, whichever is later. The commencement of the action suspends a pending proceeding in connection with the adoption of the child until a judgment in the action is final.