![]() When MailEnable sends out email such as message delivery delays, or delivery failures, it will use this address as the "from" email address. ![]() The address from which notifications are sent. Specify the email address when sending notifications Use the DNS that is configured for the local network. If the SMTP service fails to connect to the first DNS, it will try the second or subsequent DNS. If using more than one DNS, separate the addresses with a space character. ![]() If a host name has been specified for an IP address on the server, then that value will override this host name. For example, if you have configured in your DNS to point to your mail server, then you would enter this here. The default mail domain name for the server, which usually matches the default MX record. It is used for system messages, to announce the server when it connects to remote server, and when remote servers connect to MailEnable if the host name has not been specified. Start, stop or restart service (-d to daemonize service, i.e.The domain name of the server that MailEnable is installed on, or the default domain for the configuration. Replace smtp-mailer.phar with start-mailer.php if you are not using PHAR package or running shell inside Docker container. To automate and better manage your service on a linux server, please view the Systemd Service section. Storing queue and/or template are completely optional, you may choose to use Redis to store your queued mail but still using a filed-based template on local disk.Īdd sudo to the following command if the service started/managed by root. Mail template (optional with REDIS_STORE_TEMPLATE env).Queued/scheduled mail (optional with REDIS_STORE_QUEUE env).Service status (Mail sent/failed count).SMTP Mailer will store the following JSON-serialized data with a key prefix defined in env (REDIS_KEY_PREFIX): Make sure you have Redis extension enabled in your PHP config, and you may provide Redis connection details in the env. Instead of using a file-based queue and/or template on local disk, you may instruct SMTP Mailer to use Redis as its data store. SMTP Mailer supports Redis out-of-the-box (Tested with Redis >= 5.0). Php start-mailer.php start -d Redis Integration If you are using the PHAR package, you might need to ensure the package binary is executable: ZIP release (without vendor and development files).PHAR package (recommended for non-Docker system).There are several ways to install SMTP Mailer Please also note that this is a PHP CLI application, which does not require a web server or process manager such as PHP-FPM to function. You may run the service locally on your MacOS/Windows machine for development, Windows with WSL is required to run the Mailer service and development tests. Linux environment is recommended for production deployment. Queue->Queue: Scan queue JSON and its scheduled timestampĮlse Failed Mail >Queue: Move JSON back to Queue to resendįor non-Docker installation, PHP >= 7.4 and OpenSSL support is required, with optional Sodium extension. ![]() Mailer->Queue: Save JSON on disk for Queue to send Mailer->Queue: Save JSON on disk for Queue to resend ![]() Note right of Mailer: Authentication (optional) env.service and change the listening address to 0.0.0.0:Įxternal Service->Mailer: JSON/TCP request To avoid confusing the default env file for docker compose and the SMTP Mailer service, copy/rename the.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |