![]() ![]() You should run the command newaliases after changing this file so it will be parsed appropriately. ![]() Virtual alias maps complete the picture by redirecting mail from local users on this host to an external Email address. We need to set up aliases and virtual alias maps, aliases will redirect mail from one user to another on the same host, for example from to we will direct all Email to root here. is the same as chown root:root or chown root.root, leaving the group name blank will use the default group for the user specified. The chown command changes the owner user and group, and the chmod command will changes the access mode (permissions), more detailed information on ownership and permissions can be found libsasl2-modules: A module used by postfix to authenticate to an external Email server like Gmail with a username and password.mailutils: A set of command-line utilities for working with Email, most notably the mail command that is useful for sending an Email from command-line., make sure you have the correct account selected in the top right corner, and then turn the feature on. You will need to enable the “less secure apps” setting in Gmail to allow your server to log in and send mail without getting blocked by Google’s security measures, visit In this example I am using Gmail because it is a popular choice, other mail services will work in a similar manner. This guide assumes you are using Debian/Ubuntu, some commands and package names may need to be adapted to your OS if you are not. I’ve also included a quick script at the end of this tutorial that will check the status of systemd periodically and send out Email alerts if any problems are detected. ![]() It’s much easier than setting up a full-featured Email server and is more appropriate if all you need is to get Email alerts out from your server or application. In this tutorial, you will configure a Linux server to send Email through Gmail. Set up outgoing Email alerts for your Linux server quickly and easily through Gmail, plus a bonus systemd monitoring script. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |