Drain fitting for a sanitary tub or shower tray, with a drain housing having an inlet opening and a connection for a drain pipe, with a flange surrounding the inlet opening, which has a connection surface (4.1) intended for arrangement in an edge region of a drain opening of the tub or shower tray, and with a cover, which is detachably connected to the flange and/or the drain housing and, in the assembled state, covers the inlet opening while limiting an inlet gap, wherein the flange has a horizontal outer dimension which is larger than a horizontal outer dimension of the cover which is aligned in the same direction relative to the outer dimension of the flange, the flange being designed in such a way that it can be connected to the underside of the tub base or shower tray base in a liquid-tight manner without a connecting counterpart resting against the upper side of the tub or shower base, the flange and/or the drain housing having an inlet surface (4.2) which is lower relative to the connection surface (4.1) of the flange, surrounds the inlet opening of the drain housing in the assembled state of the drain fitting and is at a distance from the underside of the cover, and wherein the cover has spacers on its underside, with which it rests on the inlet surface (4.2), characterized in that the flange has a plurality of projections (4.10), the spacers engaging in recesses (4.11) delimited by the projections (4.10), or in that the inlet surface (4.2) is bounded on the outside by a circumferential shoulder or a circumferential inner wall (4.9), the shoulder or the wall (4.9) having a plurality of projections (4.10), and the spacers engaging in recesses (4.11) bounded by the projections (4.10). with a drain housing having an inlet opening and a connection for a drain pipe, with a flange surrounding the inlet opening, which has a connection surface (4.1) intended for arrangement in an edge region of a drain opening of the tub or shower tray, and with a cover, which is detachably connected to the flange and/or the drain housing and, in the assembled state, covers the inlet opening while limiting an inlet gap, wherein the flange has a horizontal outer dimension which is larger than a horizontal outer dimension of the cover which is aligned in the same direction relative to the outer dimension of the flange, the flange being designed in such a way that it can be connected to the underside of the tub base or shower tray base in a liquid-tight manner without a connecting counterpart resting against the upper side of the tub or shower base, the flange and/or the drain housing having an inlet surface (4.2) which is lower relative to the connection surface (4.1) of the flange, surrounds the inlet opening of the drain housing in the assembled state of the drain fitting and is at a distance from the underside of the cover, and wherein the cover has spacers on its underside, with which it rests on the inlet surface (4.2), characterized in that the flange has a plurality of projections (4.10), the spacers engaging in recesses (4.11) delimited by the projections (4.10), or in that the inlet surface (4.2) is bounded on the outside by a circumferential shoulder or a circumferential inner wall (4.9), the shoulder or the wall (4.9) having a plurality of projections (4.10), and the spacers engaging in recesses (4.11) bounded by the projections (4.10).