mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #90] Provide sendmail binary with the releases? #58
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#58
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 @msaggiorato on GitHub (Apr 14, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/90
Is there the possibility to provide the already built sendmail binary for supported architectures along with each release in GH?
Thanks!
@axllent commented on GitHub (Apr 14, 2023):
Out of interest, what OS are you referring to specifically?
@axllent commented on GitHub (Apr 15, 2023):
In relation to my previous message, would it work if I was to provide pre-compiled sendmail binaries as a separate download in the releases? That means that for every
mailpit-<platform>-<arch>.tar.gzthere would also be asendmail-<platform>-<arch>.tar.gz.I really do not want to bundle sendmail into the mailpit archive as it will increase the file size, and most users do not need sendmail (ie: they either use system-installed sendmail version, create a symlink to mailpit, or use
mailpit sendmailas their sending command).@msaggiorato commented on GitHub (Apr 15, 2023):
Yeah for sure, that's what I meant, include the Sendmail binaries separately.
This would help with easy setup in environments where sendmail is not present (docker) and also make it easy to install by os and architecture.
One project we're thinking of replacing mailhog with mailpit is VVV (WordPress development environment).
@msaggiorato commented on GitHub (Apr 15, 2023):
Regarding your answer, is
mailpit sendmailan equivalent to the rawsendmailexecutable I'm asking about here?I would be interested in running mailpit in its own container. Can a
host:portbe specified here?@axllent commented on GitHub (Apr 15, 2023):
As explained in the README, you can use the
mailpit sendmailcommand instead of using sendmail directly, is it the equivalent. Alternatively you can symlink sendmail to mailpit and Mailpit will invoke sendmail (ln -s /usr/sbin/sendmail /path/to/mailpit). It really depends what exactly you wish to achieve here, and both those options are only helpful if you are running Mailpit on the same machine as the server that is sending the mail (ie: same as the PHP instance).Please note that mailpit's sendmail it is configured by default to relay messages to
localhost:1025(Mailpit's default port). This can be changed via an environment variable or commandline flag (--smtp-addr), however as far as your docker container question goes, you can also map a different port to the docker's port 1025 (so leaving Mailpit to run on its default ports). I don't know your environment is structured, how to plan to connect to it (Docker within vagrant?), or from what, so I can't give you more info as I'm unfamiliar with VVV.If having a separate sendmail binary (Mailpit's) is still helpful to you, then I can add these for future releases. I'd rather not add anything if it's not necessary though, only if it's helpful. Please just let me know.
@jeromelaurens commented on GitHub (May 3, 2023):
reading this issue, I figured out how to test if it was working, not with the README.
This is not completly related but the README would benefit a lot a section for testing it.
For example :
Testing if mailpit is working with mailpit sendmail command
Create a text file containing the headers and the body of the email, for example,
email.txt:Next, run the following command in the terminal:
This command uses the
-tflag, which tellssendmailto read the "To", "Cc", and "Bcc" headers from the file to determine the recipients.Check on the UI : the email should be there
@jeromelaurens commented on GitHub (May 3, 2023):
filled an issue for that #105
@axllent commented on GitHub (May 4, 2023):
I have added a new wiki section about configuring sendmail and another section testing Mailpit which should answer these questions.
@msaggiorato commented on GitHub (May 4, 2023):
Thanks, I didn't have the time to get back to this yet.
One of the reasons I opened this issue, is because it was not evident in the wiki / Readme, that the mailpit sendmail command allowed the use of
host:port. It's not evident that it supports a few of the arguments of regular sendmail.Maybe adding that would clear out doubts?
@axllent commented on GitHub (May 4, 2023):
I have added some extra documentation on https://github.com/axllent/mailpit/wiki/Configuring-sendmail which hopefully provides more clarity. I appreciate the feedback, thank you.
@msaggiorato commented on GitHub (May 5, 2023):
It's great! Thanks a lot @axllent !