[GH-ISSUE #75] Configuring the Tool #50

Closed
opened 2026-03-15 12:17:38 +03:00 by kerem · 5 comments
Owner

Originally created by @FuckingToasters on GitHub (Mar 30, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/75

Hello, I've installed it sucessfully and are able to view the dashboard (not tried smtp so far)
Now i would like to secure the smtp server auth auth credentials and specify an email it is going to send messages from.
For this i would need an configuration file but couldn't locate one in the directory.

Originally created by @FuckingToasters on GitHub (Mar 30, 2023). Original GitHub issue: https://github.com/axllent/mailpit/issues/75 Hello, I've installed it sucessfully and are able to view the dashboard (not tried smtp so far) Now i would like to secure the smtp server auth auth credentials and specify an email it is going to send messages from. For this i would need an configuration file but couldn't locate one in the directory.
kerem closed this issue 2026-03-15 12:17:44 +03:00
Author
Owner

@nosovk commented on GitHub (Mar 30, 2023):

https://github.com/axllent/mailpit/wiki/Basic-authentication
check doc please

<!-- gh-comment-id:1490857222 --> @nosovk commented on GitHub (Mar 30, 2023): https://github.com/axllent/mailpit/wiki/Basic-authentication check doc please
Author
Owner

@axllent commented on GitHub (Mar 30, 2023):

@FuckingToasters - as @nosovk has pointed out, Basic Auth can easily be configured as per the documentation he linked to.

I am not sure however what you mean with "and specify an email it is going to send messages from". Mailpit does not currently send any email, it just receives email. There is an open request for this functionality (to be able to "release" email), however this is a "wishlist feature" which has not been implemented yet.

<!-- gh-comment-id:1491065364 --> @axllent commented on GitHub (Mar 30, 2023): @FuckingToasters - as @nosovk has pointed out, Basic Auth can easily be configured as per the documentation he linked to. I am not sure however what you mean with "and specify an email it is going to send messages from". Mailpit does not currently send any email, it just receives email. There is an open request for this functionality (to be able to "release" email), however this is a "wishlist feature" which has not been implemented yet.
Author
Owner

@FuckingToasters commented on GitHub (Apr 3, 2023):

@FuckingToasters - as @nosovk has pointed out, Basic Auth can easily be configured as per the documentation he linked to.

I am not sure however what you mean with "and specify an email it is going to send messages from". Mailpit does not currently send any email, it just receives email. There is an open request for this functionality (to be able to "release" email), however this is a "wishlist feature" which has not been implemented yet.

It defently is able to send mails or why else would it specify smtp in the readme and show a sendmail keyword? smtp is for sending mails while imap is for reciving them.

<!-- gh-comment-id:1494065169 --> @FuckingToasters commented on GitHub (Apr 3, 2023): > @FuckingToasters - as @nosovk has pointed out, Basic Auth can easily be configured as per the documentation he linked to. > > I am not sure however what you mean with "and specify an email it is going to send messages from". Mailpit does not currently send any email, it just receives email. There is an open request for this functionality (to be able to "release" email), however this is a "wishlist feature" which has not been implemented yet. It defently is able to send mails or why else would it specify smtp in the readme and show a sendmail keyword? smtp is for sending mails while imap is for reciving them.
Author
Owner

@FuckingToasters commented on GitHub (Apr 3, 2023):

https://github.com/axllent/mailpit/wiki/Basic-authentication check doc please

and i don't really understand that, what file type do i need to supply? .txt, .anything etc.?

<!-- gh-comment-id:1494067522 --> @FuckingToasters commented on GitHub (Apr 3, 2023): > https://github.com/axllent/mailpit/wiki/Basic-authentication check doc please and i don't really understand that, what file type do i need to supply? .txt, .anything etc.?
Author
Owner

@axllent commented on GitHub (Apr 3, 2023):

It sounds like there is some confusion here: either I am not understanding your issue, or you generally do not understand how email is usually sent from a system.

There is a sendmail option provided for convenience which allows the running system to "send" emails to the running Mailpit server. You do not have to use that option, and any regular sendmail-compatible binary will work too provided they have been configured to send relay emails to localhost:1025 (Mailpit). Some applications (eg: Thunderbird) deliver emails directly to a SMTP server, so don't even use semdmail. Once the Mailpit server receives the email, the emails themselves never leave (it captures them).

Sendmail itself does not decide the sender's email address, this is something that should be encoded into the email header that is being passed to it, together with the rest of the email. This means that a properly formatted email (which neither semdmail, not Maillot is relatie for) gets passed through to semdmail. This is standard for all MTA (Mail Transfer Applications), which simply pass on mail to a SMTP server (in this case Mailpit).

Lastly, the credential file is just a plain text file named whatever you like, and written in the same format as in the documentation. There are examples in the documentation which use the user:password format(in plain text) which is the easiest to use, but there is the option to use encrypted passwords is you know what you are doing.

If this does not answer your question, then please explain in more detail what you are trying to do, and what is not working for you, including what is generating the emails, and how are they currently being passed to semdmail / Maillot?

<!-- gh-comment-id:1494170986 --> @axllent commented on GitHub (Apr 3, 2023): It sounds like there is some confusion here: either I am not understanding your issue, or you generally do not understand how email is usually sent from a system. There is a sendmail option provided for convenience which allows the running system to "send" emails to the running Mailpit server. You do not have to use that option, and any regular sendmail-compatible binary will work too provided they have been configured to send relay emails to localhost:1025 (Mailpit). Some applications (eg: Thunderbird) deliver emails directly to a SMTP server, so don't even use semdmail. Once the Mailpit server receives the email, the emails themselves never leave (it captures them). Sendmail itself does not decide the sender's email address, this is something that should be encoded into the email header that is being passed to it, together with the rest of the email. This means that a properly formatted email (which neither semdmail, not Maillot is relatie for) gets passed through to semdmail. This is standard for all MTA (Mail Transfer Applications), which simply pass on mail to a SMTP server (in this case Mailpit). Lastly, the credential file is just a plain text file named whatever you like, and written in the same format as in the documentation. There are examples in the documentation which use the `user:password` format(in plain text) which is the easiest to use, but there is the option to use encrypted passwords is you know what you are doing. If this does not answer your question, then please explain in more detail what you are trying to do, and what is not working for you, including what is generating the emails, and how are they currently being passed to semdmail / Maillot?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mailpit#50
No description provided.