{"id":19196989,"url":"https://github.com/jitesoft/moxter","last_synced_at":"2025-08-25T06:32:04.062Z","repository":{"id":49233543,"uuid":"128053695","full_name":"jitesoft/moxter","owner":"jitesoft","description":"Mirror for the Moxter project","archived":false,"fork":false,"pushed_at":"2025-01-08T22:47:42.000Z","size":167,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T04:45:09.428Z","etag":null,"topics":["php","php72","proxy","smtp"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jitesoft.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-04T11:38:56.000Z","updated_at":"2022-07-28T11:04:20.000Z","dependencies_parsed_at":"2022-09-19T03:11:41.229Z","dependency_job_id":null,"html_url":"https://github.com/jitesoft/moxter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jitesoft/moxter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fmoxter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fmoxter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fmoxter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fmoxter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jitesoft","download_url":"https://codeload.github.com/jitesoft/moxter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fmoxter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272013576,"owners_count":24858475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","php72","proxy","smtp"],"created_at":"2024-11-09T12:15:05.968Z","updated_at":"2025-08-25T06:32:04.015Z","avatar_url":"https://github.com/jitesoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Moxter\r\n\r\nA small mail proxy/relay to use enable email services without api keys.\r\n\r\n**Observe** Using moxter is not the most secure way to send emails, but for a SPA or similar, without any real backend, \r\nusing a proxy/relay for this is better than adding client secrets in the front-end!   \r\n  \r\nIf you wish to make the application more secure, using a proxy with external auth (such as traefik) might be a good idea!  \r\n  \r\n## Setup\r\n\r\nCopy the `.env-example` file in the root and name the copy `.env`. Updated the variables which you wish to change so they\r\ncorrespond to your server and settings.\r\n\r\n### Environment variables\r\n\r\nThe following variables are defined in the configuration and should be set with\r\nyour information and wanted behaviour.\r\n\r\n```\r\nLOG_FILE=/tmp/moxter.log\r\nSMTP_SERVER=mail.example.com\r\nSMTP_PORT=587\r\nSMTP_AUTH=false\r\nSMTP_USER=user@example.com\r\nSMTP_PASSWORD=secret_password\r\nSMTP_DEBUG=false\r\nDEBUG=false\r\nAPP_ENV=production\r\nSMTP_INSECURE=false\r\nSIGN_CERT=/path/to/cert.crt\r\nSIGN_KEY=/path/to/key.key\r\nTLS=false\r\nDOMAINS=/https:\\/\\/(.*\\.)?(.*)(\\.(.*))/,https://example.com\r\nEMAIL_CONSTRAINT=/(.*)@(.*)/\r\nHTML_EMAILS=false\r\nSENDER=my@email.tdl\r\n```\r\n\r\n**LOG_FILE**  \r\nAbsolute path to the file that logs should be printed to.  \r\nIf not set, the `sys_get_temp_dir() . '/moxter.log` file will be used.  \r\n\r\n**SMTP_SERVER**  \r\nThe smtp server which is to be used for sending emails.\r\n\r\n**SMTP_PORT**  \r\nThe port that the smtp server listens to. This have to be a open port if you run the application on another server than\r\nthe same as the SMTP server.\r\n\r\n**SMTP_USER**  \r\nThe username used when authenticating with the smtp server.  \r\nThis is usually a email address.\r\n\r\n**SMTP_PASSWORD**  \r\nPassword used to auth with the smtp server.\r\n\r\n**DOMAINS**  \r\nA regular expression to use for cross site scripting.  \r\nIf the requesting origin matches the regex, it will allow for requests, else it will not.  \r\nThis variable can be used as a list with a `,` between the different regular expressions.\r\n\r\n**DEBUG**  \r\nIf true, the server will output debug information to the log file (`sys_get_temp_dir() . '/moxter/log.txt'`).  \r\nCan be changed by setting the `LOG_FILE` variable.  \r\n\r\n**APP_ENV**  \r\nSet this to production when running on a live server, if set to development, it will allow for x-site scripting and \r\nignore any origin constraints and such.\r\n\r\n**EMAIL_CONSTRAINT**  \r\nA regex string to set a constraint to email addresses that the app will allow to send emails to.\r\n\r\n**HTML_EMAILS**  \r\nIf you wish to allow the emails being sent by the API to be able to use HTML. Setting this to true will make all\r\nemails behave as html emails.\r\n\r\n**SENDER**  \r\nThe email address of the sender. Will be used on all emails sent by the api.\r\n\r\n### Docker\r\n\r\nEasiest way to run the application is to start it as a docker container. The container have latest php-fpm\r\ninstalled and will expose FPM on port 9000 by default. Connect it to your favorite proxy and pass in the environment\r\nvariables as you seem fit and it should work right away!\r\n\r\n```\r\ndocker run registry.gitlab.com/jitesoft/open-source/php/moxter:latest\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitesoft%2Fmoxter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjitesoft%2Fmoxter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitesoft%2Fmoxter/lists"}