mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #75] Configuring the Tool #50
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@nosovk commented on GitHub (Mar 30, 2023):
https://github.com/axllent/mailpit/wiki/Basic-authentication
check doc please
@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.
@FuckingToasters commented on GitHub (Apr 3, 2023):
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.
@FuckingToasters commented on GitHub (Apr 3, 2023):
and i don't really understand that, what file type do i need to supply? .txt, .anything etc.?
@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:passwordformat(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?