Edit Article

If you've ever configured sendmail, you know that it can be very complex and sometimes confusing. Remembering to compile the m4 file before restarting and simply understanding the config file is daunting to even the most experienced Linux administrator.


Postfix, originally developed by IBM, was written to provide an easier alternative to sendmail. While sendmail is still the number one MTA for Linux OS, Postfix's ease of use makes it a good alternative.

Ad

EditSteps

  1. Configure Postfix Step 1.jpg
    1
    Diagram your domain and your needs. How many users are you supporting? Will you have a lot of aliases? Many of these types of questions will affect how Postfix is configured.
    Ad
  2. Configure Postfix Step 2.jpg
    2
    Plan for growth. If you plan on supporting multiple domains, consider using virtual aliases.
  3. Configure Postfix Step 3.jpg
    3
    Decide how you want Postfix to operate. There are three different modes: MTA, Forward, Relay. While they are similar, they operate differently.
    • MTA, or Mail Transport Agent, operates as a normal server, receiving mail on behalf of all users on the computer.
    • Forward is used when addresses to your server will just forward to another address. For example, if you want all mail to your server to forward to your Gmail account, you would setup Postfix to forward your mail.
    • Relay is used as a relay, only accepting mail to be relayed elsewhere. Most ISPs set up their mail servers this way.
  4. Configure Postfix Step 4.jpg
    4
    Modify the main.cf file within /etc/postfix. You can review all of Postfix's settings on its official web site.
  5. Configure Postfix Step 5.jpg
    5
    If you need postfix to be able to receive mail on a non-standard port, you must edit master.cf. This is usually needed by end-users who's ISPs block the standard SMTP port 25
  6. Configure Postfix Step 6.jpg
    6
    Save the configuration file and start postfix.
    Ad


We could really use your help!

Can you tell us about
fashion and style?
Yes
No
fashion and style
how to wear shoes that are too big
Can you tell us about
Minecraft?
Yes
No
Minecraft
different ways to cheat in Minecraft
Can you tell us about
building and engineering?
Yes
No
building and engineering
how to build a strong catapult
Can you tell us about
hairstyling?
Yes
No
hairstyling
how to do simple and cute hairstyles
Thanks for helping! Please tell us everything you know about
...
Tell us everything you know here. Remember, more detail is better.
Tips
Provide Details.
Please be as detailed as possible in your explanation. Don't worry about formatting! We'll take care of it. For example:
Don't say: Eat more fats.
Do say: Add fats with some nutritional value to the foods you already eat. Try olive oil, butter, avocado, and mayonnaise.

EditTips

  • Make sure you have a good understanding of how e-mail works. This is necessary in the event you need to troubleshoot an issue.
  • While postfix supports LDAP, MySQL, and other database aliases, start with a text-based alias file and ensure that your set up works correctly. From there, you can move to a more complex setup.

EditWarnings

  • Do not run postfix and another MTA concurrently. This will create a conflict within your system and make the mail server unreachable.

Article Info

Categories: Software

Thanks to all authors for creating a page that has been read 3,021 times.

Did this article help you?
Yes No

Become
an Author!

Write an Article