Skip to content

Conversation

yota22721
Copy link

Added SMTP TLS connection examples

  • client-tls-smtp-overssl.c
  • client-tls-smtp-starttls.c

dgarske
dgarske previously approved these changes Mar 20, 2025
dgarske
dgarske previously approved these changes Mar 20, 2025
@dgarske dgarske assigned dgarske and anhu and unassigned kojo1 and dgarske Mar 20, 2025
@@ -0,0 +1,549 @@
/* client-tls-smtp-overssl.c
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand why this is not smtp-over-tls? I've not found any references to smtp-overssl.
Should this file be renamed to client-smtp-over-tls.c ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mixed them up, Not sure why I used "client-smtp-overssl.c".
Renamed to client-smtp-over-tls.c

@@ -123,6 +123,20 @@ Example:
-a <Peer auth mode> -m <Verify mode>
```

#### Use SMTP client

You can use smtp OVERSSL/STARTTLS client.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a corresponding server?
Can you add a pointer to relevant RFC and/or specifications?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Added relevant RFCs

->SMTP OVER TLS - RFC 8314
->STARTTLS - RFC 3207

  • Added example SMTP server (smtp.gmail.com)

@anhu anhu assigned yota22721 and unassigned anhu and wolfSSL-Bot Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants