![]() ![]() Sending emails from mail is much easier as it formats the email for you, but Sendmail will allow you to pipe a file into the email. You can do this by editing the /etc/mail/local-host-names file and adding the domain names as well as the sub-domains that you wish to accept.įor example you can add the following lines to the file.įinally you can test out if Sendmail is working by either using the mail command or Sendmail itself. You will also need to specify on your server which domains you would like to accept mail from. Modifying the records of your DNS server particularly if you are using an external hosting company may take 24 to 48 hours to propagate, so make sure that your settings are correct before you modify them. First you will need to create a sub-domain under your domain name, for example then you will need to forward the MX records of to point to the IP address of your server. ![]() Next you will need to modify your DNS records so that you can use your domain name as an email address. You will also need to make sure that if you are using a firewall that you allow incoming and outgoing connections to port 25. MTA – Mail Transfer Agent – Sendmail, Postfix I have included some more information below which will help you to remember some of the terms and their role in a mail server. This all might be a bit confusing to understand at first, but it’s actually quite straight forward once you get to know all of the terms. ![]() These will all be covered in later tutorials, but in this tutorial we will just cover some of the basics of Sendmail to help you become familiar with email servers. Software such as a MUA (Mail user agent) to connect to the MTA and a POP3/IMAP (Post office protocol / Internet message access protocol) server to listen for incoming emails. However in order to create a proper mail server you will also need a few other pieces of Sendmail by itself as the name suggests is a MTA (Mail transfer agent) which is useful for sending emails from your server to other servers. Sendmail is the default SMTP (Simple mail transfer protocol) server installed on CentOS and although it can be slightly more complicated for beginners to learn than similar alternatives such as Postfix, it can be quite powerful and useful to learn. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |