2,175. The Children of Relations Among Jews, Non-Jews, Servants and Mamzeirim
Hilchos Issurei Biah 15:2
When a male mamzer marries a Jewish woman or a Jewish man marries a female mamzer (called a mamzeres), once they engage in intimacy after betrothal, they are liable to lashes. If the man betroths the woman but they don’t engage in intimacy, they are not liable; the same is true if they are intimate without betrothal. The only time relations that are a negative commandment incur lashes without betrothal is the case of intimacy between a Kohein Gadol and a widow, as will be explained IY”H in chapter 17. If a man remarries his ex-wife after she married someone else in the interim, their children are fit because this is not one of the inherently-prohibited relationships.
Hilchos Issurei Biah 15:3
If a non-Jew or a servant engages in intimacy with a Jewish woman, their child is fit; this is so regardless of whether the woman is single or married, whether she was coerced or participated willingly. If a non-Jew or a servant engages in intimacy with a mamzeres, their child is a mamzer. If a mamzer engages in intimacy with a non-Jewish woman, their child is non-Jewish; if this child later converts, he may join the general marriage pool just like other any convert. If a mamzer is intimate with a servant woman, their child is a servant; if he is freed, the child is fit just like any other freed servant and he may marry a Jewish woman.