.. django_mail: Django Mail =========== According to the `following description `__ a service has been created for Django Mail Server. 1. django-mail.service Script ``django-mail.service`` installed in directory ``/etc/systemd/system/``. The Script starts the Django Mail Server on Debian Linux. Example of the script **django-server.service**: .. code:: sudo nano /etc/systemd/system/django-mail.service Content: .. code:: [Unit] Description=Handling of the Django Mail Server After=multi-user.target [Service] Type=simple ExecStart=/usr/local/logistics/Python/venv/django_webapps_fullstack/bin/python3 -m smtpd -n -c \ DebuggingServer \ localhost:1025 Restart=on-abort [Install] WantedBy=multi-user.target | 2. Start and Stop of the Mail Server Reload Systemd to read the new service unit file: .. code:: sudo systemctl daemon-reload Enable the service to start at boot: .. code:: sudo systemctl enable django-mail Start of the Mail Server .. code:: sudo systemctl start django-mail Stop of the Mail Server .. code:: sudo systemctl stop django-mail Status of the Mail Server .. code:: sudo systemctl status django-mail