Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be more precise on SMTP Alias Creation Requirements #6

Open
superboum opened this issue May 29, 2020 · 3 comments
Open

Be more precise on SMTP Alias Creation Requirements #6

superboum opened this issue May 29, 2020 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@superboum
Copy link

I think SMTP Alias Creation feature is not standard.
It seems you use internally mailinabox
Maybe you should document it in your README, that you expect users to run their admin panel.
More specifically I would mention that:

  • This project is tailored for MailInABox
  • The SMTP Alias Creation is done by sending HTTP Requests to their admin API
  • Optionally document the form of the request to enable people not using mailinabox to reimplement the API
  • Optionally provides a milter/filter for postfix/opensmtpd

Kudos for the project.

@rosehgal rosehgal self-assigned this May 29, 2020
@rosehgal rosehgal added documentation Improvements or additions to documentation good first issue Good for newcomers labels May 29, 2020
@rosehgal
Copy link
Owner

Hi @superboum thank you for pointing this out. I think you are right here. I was not really sure on the part that there might exist such mail systems that do not allow alias creation. I will definitely take this into consideration, and yes in my current deployment I am checking this out with MailInaBox

I have engineered this solution for perfect use case and the main motivation was to learn how easy of feasible is to create such system in Java spring boot. I specifically wanted to create this entire sub system in Java spring boot, because I wanted to learn it. And I have always believed that best way to learn such frameworks is to create a mini project out of it. So if you might see the code, then you will notice this is not very well written code. I have tried to engineered this up with best system design perspective. And this was the main motivation to put it in open source domain, which was to learn from community and grow.

I will definitely take your input, I also will try to improve the documentation to make this clean and clear.

@rosehgal
Copy link
Owner

rosehgal commented May 29, 2020

Also @superboum on a different note, I was thinking if I can spin up scalable SMTP server within this Java service so that I don't have to rely on the external mail service. It is the improvement that I plan to make it in the next major Release, if you have any inputs to make in this part this will definitely help me out planning this.

After that implementation is done, then the code will become much more simple and organised that I don't have to reply on the external mail service to send emails to and this will then completely eliminate the use of IMAP task executor. The flow will become speedy and then entire control will be in this application. How do you feel about this?

@superboum
Copy link
Author

First of all, I am not a (Java) expert. So, the following is only my humble opinion. By reading you, it seems you want a standalone solution, that does not require to setup extra dependencies.

First, you only need a SMTP server and you can discard your IMAP server. If you want to integrate the SMTP server in your Java project, you will need to find a "SMTP server java library". I can't make any specific recommendation as I don't know this domain, but you may search the previous keywords in a search engine and try them. You could also take a look at Apache James internals, especially at their protocols library. You will not need anymore to process aliases, to hook imap or whatever. ou will simply process each SMTP message delivery directly, being able to do the mapping with your own rule and get the message directly parsed.

As a side note, it seems you like a lot Telegram but also doing things on your own. You might be interested by Matrix, a chat app that you can self host, is federated and supports E2E encryption. their spec and their main client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants