Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9209257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:48:00+00:00 2026-06-18T00:48:00+00:00

I can’t find anything about users authenticating themselves before being able to send mail

  • 0

I can’t find anything about users authenticating themselves before being able to send mail to Lamson. The only SSL/TLS mention I found is in Relay class, which I understand runs after Lamson finishes processing the message. I want Lamson to check LDAP credentials before it does any processing, but I don’t want passwords sent over the network unencrypted. I can handle the LDAP part provided there are auth handlers of some sort, which I also didn’t find.

I haven’t written any code yet, just exploring options by reading docs for now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:48:01+00:00Added an answer on June 18, 2026 at 12:48 am

    The answer is that Lamson does not support SMTP AUTH (the SMTP extension which would require users to authenticate before an email is accepted by the server) simply because it is build on top on the Python standard library smtpd module, which itself does not support SMTP AUTH.

    You can verify this yourself by looking at the source for lamson.server.SMTPReceiver (this is the class which implements the incoming SMTP server in Lamson and which inherits from smptd.SMTPServer) and smtpd.SMTPChannel (which is the class that initially processes an incoming SMTP message before passing it on to smtpd.SMTPServer.process_message()).

    However, all is not lost, this project is a spin-off of the standard library’s smptd which aims to provide support for SMTP AUTH and SSL (covering both your requirements).

    So you could write a new class derived from the above project’s SMTPServer and which emulates the behaviour of Lamson’s STMPReceiver. Then, in Lamson’s config/boot.py, you would need to change the line:

    from lamson.server import Relay, SMTPReceiver
    

    To:

    from lamson.server import Relay
    from my_module import my_class as SMTPReceiver
    

    replacing my_module and my_class as appropriate to load your newly written class.

    This would then ensure that user authentication is performed at the time an email message is received by Lamson before any further processing takes place. Of course, you’ll have ensure connections are enabled only over SSL and implement, as you said, the LDAP part (unless that’s provided by some SASL implementation or other).

    I think that pretty much covers it. Good luck 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I order my users in the database, so I don't have to say
Can I be sure about the order in a Python dictionary? The function op.GetTangent(id)
Can I have a detail explain about how can I replace with tag with
Can someone please help me find the memory leak which is occurring here? I
Can I prevent an .apk from being installed if unknown sources is checked?
Can not find scala.actors package in latest milestones, while it still presents in scaladocs:
Can find why i get this error can someone help? package Android.data; public class
Can anyone help me trying to find out why this doesn't work. The brushes
Can anybody let me know about a couple of open source projects that uses
can't seem to find what the problem is. firefox works fine - but safari

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.