There are a number of reasons why you would want to set up your own Linux mail server. You are in a company that has needs for a more reliable mail solution than anything the competition has to offer.
I have deployed Postfix servers in single-user environments
Following are the steps to Install the postfix in the server
1) Open up a terminal window (or, if you are using a GUI-less server just log in).
2) Issue the command sudo apt-get install postfix.
That's it! Of course, depending upon the current state of your distribution, the installation may or may not have to install some dependencies. But this will happen automatically for you. The installation will also automatically start the Postfix daemon for you. So as soon as installation is complete you can test to make sure you can connect to your Postfix server with the command:
telnet
You should see something like this:
Trying...
Connected to www.mymail.com.
Escape character is '^]'.
220 localhost.localdomain ESMTP Postfix
Configuring postfix
To allow Postfix to accept relay email, edit the " /etc/postfix/main.cf" file, setting the following value to the relevant host.
relayhost =:
Remember to restart or reload the service for the changes to take effect.
# service postfix restart
Test the change by sending an email.
# echo "This is a test" | mail -s "Relay Test" me@example.com
I have deployed Postfix servers in single-user environments
Following are the steps to Install the postfix in the server
1) Open up a terminal window (or, if you are using a GUI-less server just log in).
2) Issue the command sudo apt-get install postfix.
That's it! Of course, depending upon the current state of your distribution, the installation may or may not have to install some dependencies. But this will happen automatically for you. The installation will also automatically start the Postfix daemon for you. So as soon as installation is complete you can test to make sure you can connect to your Postfix server with the command:
telnet
You should see something like this:
Trying
Connected to www.mymail.com.
Escape character is '^]'.
220 localhost.localdomain ESMTP Postfix
Configuring postfix
To allow Postfix to accept relay email, edit the " /etc/postfix/main.cf" file, setting the following value to the relevant host.
relayhost =
Remember to restart or reload the service for the changes to take effect.
# service postfix restart
Test the change by sending an email.
# echo "This is a test" | mail -s "Relay Test" me@example.com
No comments:
Post a Comment