Home
%3CLINGO-SUB%20id%3D%22lingo-sub-303577%22%20slang%3D%22en-US%22%3EIs%20SMTP%20Auth%20Really%20Working%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303577%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22site%20container-fluid%22%20id%3D%22page%22%3E%0A%3CDIV%20class%3D%22site-content%20row%22%20id%3D%22site-content%22%3E%0A%3CDIV%20class%3D%22content-area%20col-sm-9%22%20id%3D%22primary%22%3E%0A%3CDIV%20class%3D%22div-content%22%20id%3D%22single-content%22%3E%0A%3CARTICLE%20class%3D%22post-1975%20post%20type-post%20status-publish%20format-standard%20hentry%20category-exchange%20category-sharepoint%22%20id%3D%22post-1975%22%3E%0A%3CDIV%20class%3D%22entry-content%20single%22%3E%0A%3CH1%20id%3D%22toc-hId-1869818208%22%20id%3D%22toc-hId-1898504926%22%3E%3CFONT%20size%3D%225%22%3ESummary%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3ENow%20that%20SharePoint%202019%20supports%20SMTP%20authentication%20you%20have%20the%20option%20to%20relay%20e-mail%20from%20SharePoint%20to%20any%20SMTP%20server%20that%20supports%20SMTP%20authentication.%20However%2C%20if%20you%20are%20using%20a%20port%20that%20falls%20back%20to%20anonymous%2C%20how%20do%20you%20if%20it's%20authenticating%20and%20not%20just%20falling%20back%20to%20anonymous%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--682338753%22%20id%3D%22toc-hId--653652035%22%3E%26nbsp%3B%3C%2FH1%3E%0A%3CH1%20id%3D%22toc-hId-1060471582%22%20id%3D%22toc-hId-1089158300%22%3E%3CFONT%20size%3D%225%22%3ELet's%20look%20at%20the%20traffic%20behind%20the%20covers%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3ETo%20answer%20the%20question%2C%20you%20really%20need%20to%20inspect%20the%20traffic%20on%20the%20wire.%20Below%20I%20have%20provided%204%20scenarios%20which%20customers%20may%20see%20when%20attempting%20to%20configure%20SMTP%20Auth%20with%20on-prem%20Exchange%20Servers.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1884712389%22%20id%3D%22toc-hId--1856025671%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--141902054%22%20id%3D%22toc-hId--113215336%22%3E%3CFONT%20size%3D%224%22%3EScenario%201%3A%20Auth%20working%20with%20port%20587%20over%20Kerberos%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EHere%20you%20will%20find%20a%20working%20configuration%20where%20SharePoint%20is%20set%20to%20use%20port%20587%20and%20SMTP%20Auth%20over%20Kerberos.%20This%20worked%20well%20without%20errors%20and%20the%20outcome%20was%20expected.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EConversation%20on%20the%20wire%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63106iA7FC8A6429FAC2F4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22092118_1841_IsSMTPAuthR1.png%22%20title%3D%22092118_1841_IsSMTPAuthR1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EExchange%20Receive%20Connector%20Permissions%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20369px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63107i9319458A47B33C12%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22092118_1841_IsSMTPAuthR2.png%22%20title%3D%22092118_1841_IsSMTPAuthR2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ESharePoint%20SMTP%20Auth%20Settings%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20314px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63108i9B9547F69572CAE0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22092118_1841_IsSMTPAuthR3.png%22%20title%3D%22092118_1841_IsSMTPAuthR3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1600908281%22%20id%3D%22toc-hId-1629594999%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--951248680%22%20id%3D%22toc-hId--922561962%22%3E%3CFONT%20size%3D%224%22%3EScenario%202%3A%20Auth%20working%20with%20port%2025%20over%20NTLM%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EHere%20you%20will%20find%20a%20working%20configuration%20where%20SharePoint%20is%20set%20to%20use%20port%2025%20and%20SMTP%20Auth%20over%20NTLM.%20This%20worked%20well%20without%20errors%20and%20the%20outcome%20was%20expected.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EConversation%20on%20the%20wire%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63109iE292FE8BDAC87606%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22092118_1841_IsSMTPAuthR4.png%22%20title%3D%22092118_1841_IsSMTPAuthR4.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ESharePoint%20SMTP%20Auth%20Setting%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20314px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63110i63568DBEFF658950%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22092118_1841_IsSMTPAuthR5.png%22%20title%3D%22092118_1841_IsSMTPAuthR5.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EExchange%20Receive%20Connector%20Permissions%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETake%20special%20note%20to%20this%20Exchange%20Receive%20Connector%20permission%20group%20settings.%20%22Exchange%20Users%22%20is%20enabled.%20SMTP%20Auth%20(as%20a%20user)%20%3CSPAN%3E%3CSTRONG%3Erequires%3C%2FSTRONG%3E%3C%2FSPAN%3E%20the%20%22%3CSTRONG%3EExchange%20Users%3C%2FSTRONG%3E%22%20permission%20group%2C%20which%20is%20%3CSPAN%3Enot%20on%20by%20default%3C%2FSPAN%3E%20for%20the%20%22%3CSTRONG%3EDefault%20Frontend%20SERVERNAME%22%20%3C%2FSTRONG%3Ereceive%20connector%2C%20which%20listens%20on%20port%2025.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20360px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63111iF2AD6EF3F6E9EC1D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22092118_1841_IsSMTPAuthR6.png%22%20title%3D%22092118_1841_IsSMTPAuthR6.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-791561655%22%20id%3D%22toc-hId-820248373%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--1760595306%22%20id%3D%22toc-hId--1731908588%22%3E%3CFONT%20size%3D%224%22%3EScenario%203%3A%20Somewhat%20working%20with%20port%2025%20over%20NTLM%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EHere%20you%20will%20find%20a%20%22somewhat%20working%22%20configuration%20where%20SharePoint%20is%20set%20to%20use%20port%2025%20over%20NTLM%20and%20SMTP%20Auth.%20However%2C%20the%20e-mail%20%3CSPAN%3Ewas%20sent%3C%2FSPAN%3E%2C%20but%20anonymous%20was%20used%20instead%20of%20user%20authentication%20as%20expected.%20This%20failure%20occurred%20due%20to%20a%20configuration%20error%2C%20which%20is%20described%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EConversation%20on%20the%20wire%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63112i5821C83C582C9C64%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22092118_1841_IsSMTPAuthR7.png%22%20title%3D%22092118_1841_IsSMTPAuthR7.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EErrors%20Text%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EResponse%3A%20535%205.7.3%20Authentication%20unsuccessful%5Cr%5Cn%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EResponse%20code%3A%20%3CSPAN%3E%3CSTRONG%3EAuthentication%20credentials%20invalid%20(535)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EResponse%20parameter%3A%20%3CSPAN%3E%3CSTRONG%3E5.7.3%20Authentication%20unsuccessful%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ESharePoint%20SMTP%20Auth%20Setting%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20314px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63113i33C20F409E330CE4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22092118_1841_IsSMTPAuthR8.png%22%20title%3D%22092118_1841_IsSMTPAuthR8.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EExchange%20Receive%20Connector%20Permissions%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETake%20special%20note%20to%20this%20Exchange%20Receive%20Connector%20permission%20group%20settings%2C%20as%20this%20%3CSPAN%3Eis%20the%20default%3C%2FSPAN%3E%20setting.%20SMTP%20Auth%20(as%20a%20user)%20%3CSPAN%3E%3CSTRONG%3Erequires%3C%2FSTRONG%3E%3C%2FSPAN%3E%20the%20%22%3CSTRONG%3EExchange%20Users%3C%2FSTRONG%3E%22%20permission%20group%2C%20which%20is%20%3CSPAN%3Enot%20on%20by%20default%3C%2FSPAN%3E%20for%20the%20%22%3CSTRONG%3EDefault%20Frontend%20EXCHANGE%22%20%3C%2FSTRONG%3Ereceive%20connector%2C%20which%20listens%20on%20port%2025.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20379px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63114i5677A99B90DC45EE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22092118_1841_IsSMTPAuthR9.png%22%20title%3D%22092118_1841_IsSMTPAuthR9.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--17784971%22%20id%3D%22toc-hId-10901747%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId-1009864075%22%20id%3D%22toc-hId-1038550793%22%3E%3CFONT%20size%3D%224%22%3EScenario%204%3A%20Not%20working%20with%20port%20587%20over%20Kerberos%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EHere%20you%20will%20find%20a%20%22non-working%22%20configuration%20where%20SharePoint%20is%20set%20to%20use%20port%20587%20over%20Kerberos%20and%20SMTP%20Auth.%20This%20resulted%20in%20failure%20after%203%20attempts%20due%20to%20a%20configuration%20error%2C%20which%20is%20described%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EConversation%20on%20the%20wire%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63115iB4421C8640DF8AC4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22092118_1841_IsSMTPAuthR10.png%22%20title%3D%22092118_1841_IsSMTPAuthR10.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EErrors%20Text%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EResponse%3A%20535%205.7.3%20Unable%20to%20proxy%20authenticated%20session%20because%20either%20the%20backend%20does%20not%20support%20it%20or%20failed%20to%20resolve%20the%20user%5Cr%5Cn%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EResponse%20code%3A%20%3CSPAN%3E%3CSTRONG%3EAuthentication%20credentials%20invalid%20(535)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EResponse%20parameter%3A%20%3CSPAN%3E%3CSTRONG%3E5.7.3%20Unable%20to%20proxy%20authenticated%20session%20because%20either%20the%20backend%20does%20not%20support%20it%20or%20failed%20to%20resolve%20the%20user%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EResponse%3A%20530%205.7.57%20SMTP%3B%20Client%20was%20not%20authenticated%20to%20send%20anonymous%20mail%20during%20MAIL%20FROM%5Cr%5Cn%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EResponse%20code%3A%20%3CSPAN%3E%3CSTRONG%3EAuthentication%20required%20(530)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EResponse%20parameter%3CSPAN%3E%3CSTRONG%3E%3A%205.7.57%20SMTP%3B%20Client%20was%20not%20authenticated%20to%20send%20anonymous%20mail%20during%20MAIL%20FROM%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ESharePoint%20SMTP%20Auth%20Setting%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20314px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63116iFBD23D9740BCC181%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22092118_1841_IsSMTPAuthR11.png%22%20title%3D%22092118_1841_IsSMTPAuthR11.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EExchange%20Receive%20Connector%20Permissions%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20342px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63117i767BBAD9A6E07E2E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22092118_1841_IsSMTPAuthR12.png%22%20title%3D%22092118_1841_IsSMTPAuthR12.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-2051609832%22%20id%3D%22toc-hId-2080296550%22%3E%26nbsp%3B%3C%2FH1%3E%0A%3CH1%20id%3D%22toc-hId--500547129%22%20id%3D%22toc-hId--471860411%22%3E%3CFONT%20size%3D%225%22%3EWhy%20is%20this%20happening%3F%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3EThere%20are%20several%20reasons%20why%20SharePoint%20SMTP%20authentication%20can%20fail%2C%20and%20I%20will%20list%20the%20reasons%20I'm%20aware%20of%20here.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E1.%20Missing%20UPN%3A%3C%2FSTRONG%3E%20If%20the%20authenticating%20user%20does%20not%20have%20a%20UPN%20set%2C%20authentication%20will%20fail%20with%20error%20%22%3CSPAN%3E5.7.3%20Unable%20to%20proxy%20authenticated%20session%20because%20either%20the%20backend%20does%20not%20support%20it%20or%20failed%20to%20resolve%20the%20user%3C%2FSPAN%3E%22.%20If%20you%20see%20this%20error%2C%20check%20the%20user%20configured%20in%20the%20SharePoint%20outing%20e-mail%20settings%2C%26nbsp%3B%20to%20determine%20if%20the%20UPN%20is%20set.%20There%20are%20many%20ways%20to%20accomplish%20this%2C%20but%20I%20will%20show%20you%20the%20PowerShell%20method.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECheck%20with%20Get-ADUser%3A%3C%2FP%3E%0A%3CPRE%3E%3CSPAN%3EGet-ADUser%26nbsp%3Bspadmin%0A%3C%2FSPAN%3E%0A%3CSPAN%3EDistinguishedName%26nbsp%3B%3A%26nbsp%3BCN%3DSpAdmin%2COU%3DSpService%2CDC%3Dcontoso%2CDC%3Dcom%0A%3C%2FSPAN%3E%3CSPAN%3EEnabled%26nbsp%3B%3A%26nbsp%3BTrue%0A%3C%2FSPAN%3E%3CSPAN%3EGivenName%26nbsp%3B%3A%0A%3C%2FSPAN%3E%3CSPAN%3EName%26nbsp%3B%3A%26nbsp%3BSpAdmin%0A%3C%2FSPAN%3E%3CSPAN%3EObjectClass%26nbsp%3B%3A%26nbsp%3Buser%0A%3C%2FSPAN%3E%3CSPAN%3EObjectGUID%26nbsp%3B%3A%26nbsp%3B070d91df-5240-4569-8c1c-415bc9c20872%0A%3C%2FSPAN%3E%3CSPAN%3ESamAccountName%26nbsp%3B%3A%26nbsp%3BSpAdmin%0A%3C%2FSPAN%3E%3CSPAN%3ESID%26nbsp%3B%3A%26nbsp%3BS-1-5-21-1111111111-111111111-111111111-1111%0A%3C%2FSPAN%3E%3CSPAN%3ESurname%26nbsp%3B%3A%0A%3C%2FSPAN%3E%3CSPAN%3EUserPrincipalName%26nbsp%3B%3A%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CP%3ESet%20the%20UPN%20for%20the%20SMTP%20Authenticating%20Account%3A%3C%2FP%3E%0A%3CPRE%3E%3CSPAN%3ESet-ADUser%26nbsp%3Bspadmin%26nbsp%3B-UserPrincipalName%26nbsp%3Bspadmin%40contoso.com%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CP%3ENow%20Get%20it%20account%20one%20more%20time%3A%3C%2FP%3E%0A%3CPRE%3E%3CSPAN%3EGet-ADUser%26nbsp%3Bspadmin%0A%3C%2FSPAN%3E%0A%3CSPAN%3EDistinguishedName%26nbsp%3B%3A%26nbsp%3BCN%3DSpAdmin%2COU%3DSpService%2CDC%3Dcontoso%2CDC%3Dcom%0A%3C%2FSPAN%3E%3CSPAN%3EEnabled%26nbsp%3B%3A%26nbsp%3BTrue%0A%3C%2FSPAN%3E%3CSPAN%3EGivenName%26nbsp%3B%3A%0A%3C%2FSPAN%3E%3CSPAN%3EName%26nbsp%3B%3A%26nbsp%3BSpAdmin%0A%3C%2FSPAN%3E%3CSPAN%3EObjectClass%26nbsp%3B%3A%26nbsp%3Buser%0A%3C%2FSPAN%3E%3CSPAN%3EObjectGUID%26nbsp%3B%3A%26nbsp%3B070d91df-5240-4569-8c1c-415bc9c20872%0A%3C%2FSPAN%3E%3CSPAN%3ESamAccountName%26nbsp%3B%3A%26nbsp%3BSpAdmin%0A%3C%2FSPAN%3E%3CSPAN%3ESID%26nbsp%3B%3A%26nbsp%3BS-1-5-21-1111111111-111111111-111111111-1111%0A%3C%2FSPAN%3E%3CSPAN%3ESurname%26nbsp%3B%3A%0A%3C%2FSPAN%3E%3CSPAN%3EUserPrincipalName%26nbsp%3B%3A%26nbsp%3Bspadmin%40contoso.com%0A%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CP%3ENote%3A%20Now%20the%20UPN%20is%20set%3C%2FP%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSTRONG%3E2.%20Incorrect%20Exchange%20Receive%20Connector%20permissions%3A%3C%2FSTRONG%3E%20As%20stated%20above%20if%20you%20are%20authenticating%20over%20SMTP%20as%20a%20user%2C%20the%20%22%3CSTRONG%3EExchange%20Users%3C%2FSTRONG%3E%22%20permission%20group%20must%20be%20enabled%20on%20the%20Exchange%20Receive%20Connector%20properties.%20If%20this%20permission%20is%20missing%2C%20SMTP%20authentication%20will%20fail%20with%20error%2C%20%22%3CSPAN%3EAuthentication%20credentials%20invalid%20(535)%3C%2FSPAN%3E%22.%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20360px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63118iF14C1F92C221E2B9%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22092118_1841_IsSMTPAuthR13.png%22%20title%3D%22092118_1841_IsSMTPAuthR13.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSTRONG%3E3.%20Kerberos%20requires%20SPNs%3A%3C%2FSTRONG%3E%20If%20the%20Exchange%20Server%20is%20missing%20the%20SMTPSVC%20Service%20Principal%20Name%2C%20authenticating%20over%20Kerberos%20may%20fail.%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EExample%20of%20a%20missing%20SPN%3A%3C%2FP%3E%0A%3CPRE%3E%3CSTRONG%3E%3CSPAN%3Esetspn%26nbsp%3B-l%26nbsp%3Bcontoso%5Cexchange%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FPRE%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3E%3CSPAN%3ERegistered%26nbsp%3BServicePrincipalNames%26nbsp%3Bfor%26nbsp%3BCN%3DEXCHANGE%2CCN%3DComputers%2CDC%3Dcontoso%2CDC%3Dcom%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3ETERMSRV%2FEXCHANGE%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3ETERMSRV%2Fexchange.contoso.com%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3EWSMAN%2Fexchange%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3EWSMAN%2Fexchange.contoso.com%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3ERestrictedKrbHost%2FEXCHANGE%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3EHOST%2FEXCHANGE%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3ERestrictedKrbHost%2Fexchange.contoso.com%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3EHOST%2Fexchange.contoso.com%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESet%20the%20SPN%20with%20NETBIOS%20Name%3A%3C%2FP%3E%0A%3CPRE%3E%3CSPAN%3E%3CSTRONG%3Esetspn%26nbsp%3B-s%26nbsp%3BSMTPSVC%2Fexchange%20contoso%5CEXCHANGE%0A%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3E%3CSPAN%3EChecking%26nbsp%3Bdomain%26nbsp%3BDC%3Dcontoso%2CDC%3Dcom%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3ERegistering%26nbsp%3BServicePrincipalNames%26nbsp%3Bfor%26nbsp%3BCN%3DSPWFE%2CCN%3DComputers%2CDC%3Dcontoso%2CDC%3Dcom%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3ESMTPSVC%2Fexchange%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3CSPAN%3E%3CFONT%20size%3D%222%22%3EUpdated%26nbsp%3Bobject%3C%2FFONT%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESet%20the%20SPN%20with%20FQDN%3A%3C%2FP%3E%0A%3CPRE%3E%3CSPAN%3E%3CSTRONG%3Esetspn%26nbsp%3B-s%26nbsp%3BSMTPSVC%2Fexchange.contoso.com%26nbsp%3Bcontoso%5CEXCHANGE%3C%2FSTRONG%3E%3C%2FSPAN%3E%0A%3C%2FPRE%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3E%3CSPAN%3EChecking%26nbsp%3Bdomain%26nbsp%3BDC%3Dcontoso%2CDC%3Dcom%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3ERegistering%26nbsp%3BServicePrincipalNames%26nbsp%3Bfor%26nbsp%3BCN%3DEXCHANGE%2CCN%3DComputers%2CDC%3Dcontoso%2CDC%3Dcom%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3ESMTPSVC%2Fexchange.contoso.com%20%3C%2FSPAN%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CSPAN%3E%3CFONT%20size%3D%222%22%3EUpdated%26nbsp%3Bobject%3C%2FFONT%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGet%20the%20SPNs%20once%20again%3A%3C%2FP%3E%0A%3CPRE%3E%3CSTRONG%3E%3CSPAN%3Esetspn%26nbsp%3B-l%26nbsp%3Bcontoso%5Cexchange%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FPRE%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3E%3CSPAN%3ERegistered%26nbsp%3BServicePrincipalNames%26nbsp%3Bfor%26nbsp%3BCN%3DEXCHANGE%2CCN%3DComputers%2CDC%3Dcontoso%2CDC%3Dcom%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3ESMTPSVC%2Fexchange.contoso.com%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3ESMTPSVC%2FEXCHANGE%3C%2FSPAN%3E%3CBR%20%2F%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3E%3CSPAN%3ETERMSRV%2FEXCHANGE%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3ETERMSRV%2Fexchange.contoso.com%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3EWSMAN%2Fexchange%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3EWSMAN%2Fexchange.contoso.com%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3ERestrictedKrbHost%2FEXCHANGE%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3EHOST%2FEXCHANGE%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3ERestrictedKrbHost%2Fexchange.contoso.com%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3EHOST%2Fexchange.contoso.com%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1242263206%22%20id%3D%22toc-hId-1270949924%22%3E%26nbsp%3B%3C%2FH1%3E%0A%3CH1%20id%3D%22toc-hId--1309893755%22%20id%3D%22toc-hId--1281207037%22%3EConclusion%3C%2FH1%3E%0A%3CP%3EIn%20summary%20don't%20set%20it%20and%20forget%20it!%20After%20configuring%20your%20SharePoint%20Server%20to%20use%20SMTP%20Authentication%2C%20check%20your%20network%20traffic%20to%20ensure%20its%20working%20as%20expected.%20You%20may%20need%20to%20work%20with%20your%20Active%20Directory%20(to%20set%20SPNs)%20and%20Exchange%20Team%20(to%20set%20connector%20properties)%20to%20ensure%20that%20E-mail%20is%20being%20sent%20using%20authentication.%20Also%2C%20if%20you%20came%20here%20because%20this%20blog%20matches%20the%20errors%20you%20are%20experiencing%2C%20I%20hope%20this%20helped%20you%20figure%20out%20the%20problem%20quickly.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20reading!%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3C%2FARTICLE%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-303577%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20On-Prem%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Support%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E

Summary

Now that SharePoint 2019 supports SMTP authentication you have the option to relay e-mail from SharePoint to any SMTP server that supports SMTP authentication. However, if you are using a port that falls back to anonymous, how do you if it's authenticating and not just falling back to anonymous

 

Let's look at the traffic behind the covers

To answer the question, you really need to inspect the traffic on the wire. Below I have provided 4 scenarios which customers may see when attempting to configure SMTP Auth with on-prem Exchange Servers.

 

Scenario 1: Auth working with port 587 over Kerberos

Here you will find a working configuration where SharePoint is set to use port 587 and SMTP Auth over Kerberos. This worked well without errors and the outcome was expected.

 

Conversation on the wire:

092118_1841_IsSMTPAuthR1.png

 

Exchange Receive Connector Permissions:

092118_1841_IsSMTPAuthR2.png

 

SharePoint SMTP Auth Settings:

092118_1841_IsSMTPAuthR3.png

 

Scenario 2: Auth working with port 25 over NTLM

Here you will find a working configuration where SharePoint is set to use port 25 and SMTP Auth over NTLM. This worked well without errors and the outcome was expected.

 

Conversation on the wire:

092118_1841_IsSMTPAuthR4.png

 

SharePoint SMTP Auth Setting:

092118_1841_IsSMTPAuthR5.png

 

Exchange Receive Connector Permissions:

 

Take special note to this Exchange Receive Connector permission group settings. "Exchange Users" is enabled. SMTP Auth (as a user) requires the "Exchange Users" permission group, which is not on by default for the "Default Frontend SERVERNAME" receive connector, which listens on port 25.

092118_1841_IsSMTPAuthR6.png

 

Scenario 3: Somewhat working with port 25 over NTLM

Here you will find a "somewhat working" configuration where SharePoint is set to use port 25 over NTLM and SMTP Auth. However, the e-mail was sent, but anonymous was used instead of user authentication as expected. This failure occurred due to a configuration error, which is described below.

 

Conversation on the wire:

092118_1841_IsSMTPAuthR7.png

 

Errors Text:

Response: 535 5.7.3 Authentication unsuccessful\r\n

Response code: Authentication credentials invalid (535)

Response parameter: 5.7.3 Authentication unsuccessful

 

SharePoint SMTP Auth Setting:

092118_1841_IsSMTPAuthR8.png

 

Exchange Receive Connector Permissions:

 

Take special note to this Exchange Receive Connector permission group settings, as this is the default setting. SMTP Auth (as a user) requires the "Exchange Users" permission group, which is not on by default for the "Default Frontend EXCHANGE" receive connector, which listens on port 25.

092118_1841_IsSMTPAuthR9.png

 

Scenario 4: Not working with port 587 over Kerberos

Here you will find a "non-working" configuration where SharePoint is set to use port 587 over Kerberos and SMTP Auth. This resulted in failure after 3 attempts due to a configuration error, which is described below.

 

Conversation on the wire:

092118_1841_IsSMTPAuthR10.png

 

Errors Text:

Response: 535 5.7.3 Unable to proxy authenticated session because either the backend does not support it or failed to resolve the user\r\n

Response code: Authentication credentials invalid (535)

Response parameter: 5.7.3 Unable to proxy authenticated session because either the backend does not support it or failed to resolve the user

Response: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM\r\n

Response code: Authentication required (530)

Response parameter: 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM

 

SharePoint SMTP Auth Setting:

092118_1841_IsSMTPAuthR11.png

 

Exchange Receive Connector Permissions:

092118_1841_IsSMTPAuthR12.png

 

Why is this happening?

There are several reasons why SharePoint SMTP authentication can fail, and I will list the reasons I'm aware of here.

 

 

1. Missing UPN: If the authenticating user does not have a UPN set, authentication will fail with error "5.7.3 Unable to proxy authenticated session because either the backend does not support it or failed to resolve the user". If you see this error, check the user configured in the SharePoint outing e-mail settings,  to determine if the UPN is set. There are many ways to accomplish this, but I will show you the PowerShell method.

 

Check with Get-ADUser:

Get-ADUser spadmin

DistinguishedName : CN=SpAdmin,OU=SpService,DC=contoso,DC=com
Enabled : True
GivenName :
Name : SpAdmin
ObjectClass : user
ObjectGUID : 070d91df-5240-4569-8c1c-415bc9c20872
SamAccountName : SpAdmin
SID : S-1-5-21-1111111111-111111111-111111111-1111
Surname :
UserPrincipalName :

Set the UPN for the SMTP Authenticating Account:

Set-ADUser spadmin -UserPrincipalName spadmin@contoso.com

Now Get it account one more time:

Get-ADUser spadmin

DistinguishedName : CN=SpAdmin,OU=SpService,DC=contoso,DC=com
Enabled : True
GivenName :
Name : SpAdmin
ObjectClass : user
ObjectGUID : 070d91df-5240-4569-8c1c-415bc9c20872
SamAccountName : SpAdmin
SID : S-1-5-21-1111111111-111111111-111111111-1111
Surname :
UserPrincipalName : spadmin@contoso.com

Note: Now the UPN is set

 
 
2. Incorrect Exchange Receive Connector permissions: As stated above if you are authenticating over SMTP as a user, the "Exchange Users" permission group must be enabled on the Exchange Receive Connector properties. If this permission is missing, SMTP authentication will fail with error, "Authentication credentials invalid (535)".

092118_1841_IsSMTPAuthR13.png

 
 
3. Kerberos requires SPNs: If the Exchange Server is missing the SMTPSVC Service Principal Name, authenticating over Kerberos may fail.

 

 

Example of a missing SPN:

setspn -l contoso\exchange

Registered ServicePrincipalNames for CN=EXCHANGE,CN=Computers,DC=contoso,DC=com:
TERMSRV/EXCHANGE
TERMSRV/exchange.contoso.com
WSMAN/exchange
WSMAN/exchange.contoso.com
RestrictedKrbHost/EXCHANGE
HOST/EXCHANGE
RestrictedKrbHost/exchange.contoso.com
HOST/exchange.contoso.com

 

 

Set the SPN with NETBIOS Name:

setspn -s SMTPSVC/exchange contoso\EXCHANGE

Checking domain DC=contoso,DC=com
Registering ServicePrincipalNames for CN=SPWFE,CN=Computers,DC=contoso,DC=com:
SMTPSVC/exchange
Updated object

 

 

Set the SPN with FQDN:

setspn -s SMTPSVC/exchange.contoso.com contoso\EXCHANGE

Checking domain DC=contoso,DC=com
Registering ServicePrincipalNames for CN=EXCHANGE,CN=Computers,DC=contoso,DC=com:
SMTPSVC/exchange.contoso.com

Updated object

 

 

Get the SPNs once again:

setspn -l contoso\exchange

Registered ServicePrincipalNames for CN=EXCHANGE,CN=Computers,DC=contoso,DC=com:
SMTPSVC/exchange.contoso.com
SMTPSVC/EXCHANGE

TERMSRV/EXCHANGE
TERMSRV/exchange.contoso.com
WSMAN/exchange
WSMAN/exchange.contoso.com
RestrictedKrbHost/EXCHANGE
HOST/EXCHANGE
RestrictedKrbHost/exchange.contoso.com
HOST/exchange.contoso.com

 

Conclusion

In summary don't set it and forget it! After configuring your SharePoint Server to use SMTP Authentication, check your network traffic to ensure its working as expected. You may need to work with your Active Directory (to set SPNs) and Exchange Team (to set connector properties) to ensure that E-mail is being sent using authentication. Also, if you came here because this blog matches the errors you are experiencing, I hope this helped you figure out the problem quickly.

 

 

Thanks for reading!