Kajin It runs on all Linux and Unix-like operating system. The postconf command can be used to query or set configuration settings. Its default permissions make it readable only by root, but you may need to relax these permissions. Simply press return when the installation process asks questions, the configuration will be done in greater detail in the next stage. If you are using your own Certificate Authority to sign the certificate enter:. This section introduces some common ways to determine the cause if problems arise.

Author:Dokinos Nar
Language:English (Spanish)
Published (Last):11 November 2005
PDF File Size:19.69 Mb
ePub File Size:11.58 Mb
Price:Free* [*Free Regsitration Required]

Prerequisites In order to follow this guide, you should have access to a non-root user with sudo privileges. You can follow our Ubuntu You can find help on setting up your domain name with DigitalOcean by following this guide. If you plan on accepting mail, you will need to make sure you have an MX record pointing to your mail server as well. For the purposes of this tutorial, we will assume that you are configuring a host that has the FQDN of mail.

To begin, update your local apt package cache and then install the software. System mail name: This is the base domain used to construct a valid email address when only the account portion of the address is given. For instance, the hostname of our server is mail. Root and postmaster mail recipient: This is the Linux account that will be forwarded mail addressed to root and postmaster. Use your primary account for this.

In our case, sammy. Other destinations to accept mail for: This defines the mail destinations that this Postfix instance will accept. If you need to add any other domains that this server will be responsible for receiving, add those here, otherwise, the default should work fine.

Force synchronous updates on mail queue? Local networks: This is a list of the networks that your mail server is configured to relay messages for. The default should work for most scenarios. If you choose to modify it, make sure to be very restrictive in regards to the network range. Mailbox size limit: This can be used to limit the size of messages. Local address extension character: This is the character that can be used to separate the regular portion of the address from an extension used to create dynamic aliases.

Internet protocols to use: Choose whether to restrict the IP version that Postfix supports. Step 2: Tweak the Postfix Configuration Next, we can adjust some settings that the package did not prompt us for. To begin, we can set the mailbox. We will use the Maildir format, which separates messages into individual files that are then moved between directories based on user action.

The postconf command can be used to query or set configuration settings. This table maps arbitrary email accounts to Linux system accounts. On the left, you can list any addresses that you wish to accept email for. For example, if you would like to accept email at contact example. You can allow connections to the service by typing: sudo ufw allow Postfix The Postfix server component is installed and ready. Next, we will set up a client that can handle the mail that Postfix will process.

In order for the variable to be set regardless of how you access your account through ssh, su, su -, sudo, etc. This is a variant of the BSD xmail client, which is feature-rich, can handle the Maildir format correctly, and is mostly backwards compatible. The GNU version of mail has some frustrating limitations, such as always saving read mail to the mbox format regardless of the source format.

To install the s-nail package, type: sudo apt-get install s-nail We should adjust a few settings. It will also set the Maildir directory to the internal folder variable and then use this to create a sent mbox file within that, for storing sent mail.

Save and close the file when you are finished. Initializing the Directory Structure The easiest way to create the Maildir structure within our home directory is to send ourselves an email. We can do this with the mail command.

Because the sent file will only be available once the Maildir is created, we should disable writing to that for our initial email. We can do this by passing the -Snorecord option. Send the email by piping a string to the mail command. Managing Mail with the Client Use the client to check your mail: mail You should see your new message waiting: Output s-nail version v AFD9 mail. Please confirm receipt! Using the cat command, we can pipe the message to the mail process.

This will send the message as your Linux user by default. By default, the Linux user you are logged in as will be used to populate this field. The -r option allows you to override this. Change this to be a valid account you have access to. You can view your sent messages within your mail client. Conclusion You should now have Postfix configured on your Ubuntu Managing email servers can be a tough task for beginning administrators, but with this configuration, you should have basic MTA email functionality to get you started.


Documents et livres connexes



Postfix : agent de transfert de courriel (SMTP)


Related Articles