Yevamos 8:6-9:1
Yevamos 8:6
If a kohein who was born a eunuch marries the daughter of a Yisroel (an Israelite), he confers the ability to eat terumah. Rabbi Yosi and Rabbi Shimon say that if an intersex (formerly referred to as hermaphrodite) kohein marries the daughter of a Yisroel, he confers the ability to eat terumah. Rabbi Yehuda says that if a person of indeterminate gender was surgically discovered to be a male, he does not perform chalitzah with his brother’s widow because he is considered a congenital eunuch. An intersex person may marry a woman but not be married by a man. Rabbi Eliezer says that a man who has relations with an intersex person violates the prohibition against homosexual relations.
Yevamos 9:1
Some women are permitted to their husbands and prohibited to their brothers-in-law; some are permitted to their brothers-in-law and prohibited to their husbands; some are permitted to both and some are prohibited to both. “Permitted to their husbands and prohibited to their brothers-in-law” includes a regular priest who married a widow and whose brother is the Kohein Gadol; a chalal (unfit offspring of a kohein) who married a woman who was fit to marry a kohein, and whose brother is a fit kohein; a Yisroel who married the daughter of a Yisroel and who has a mamzer brother; a mamzer married to a mamzeres and who has a brother who is a Yisroel. All of these women are permitted to their husbands and prohibited to their brothers-in-law.