15,913,027 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by DaveWelsh (Top 2 by date)
DaveWelsh
16-Aug-13 13:50pm
View
I think the problem is that my server only accepts the PLAIN authentication method and I probably need something like NTLM or CRAM-MD5 enabled for the System.Net.Mail.SmtpClient to authenticate.
DaveWelsh
16-Aug-13 12:46pm
View
Thanks jkirkerx,
I tried a few things:
1) I lowered the minimum required cipher strength to "low" by adding this line to my /etc/postfix/main.cf:
smtpd_tls_mandatory_ciphers = low
This didn't have any effect that I could detect.
2) I left the cipher strength at low and I tried changing the encryption protocol from TLSv1 to SSLv3 by adding this line of code:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
This resulted in a different line in my log file:
Aug 16 16:23:11 mail postfix/smtpd[31507]: Anonymous TLS connection established from unknown[a.b.c.d]: SSLv3 with cipher RC4-SHA (128/128 bits)
But the server still didn't authenticate me.
3) I tried authenticating without encryption enabled. This is what the log showed:
Aug 16 16:24:49 mail postfix/smtpd[31507]: connect from unknown[a.b.c.d]
Aug 16 16:24:49 mail postfix/smtpd[31507]: NOQUEUE: reject: RCPT from unknown[a.b.c.d]: 554 5.7.1 <dave@xxx.com>: Relay access denied; from=<administrator@xxx.com> to=<dave@xxx.com> proto=ESMTP helo=<amsterdam>
Aug 16 16:24:49 mail postfix/smtpd[31507]: lost connection after RCPT from unknown[a.b.c.d]
Aug 16 16:24:49 mail postfix/smtpd[31507]: disconnect from unknown[a.b.c.d]
So I'm starting to think that the .Net code is not even trying to log in.