How to install Postfix on CentOS?
Postfix is an open-source Mail Transport Agent (MTA), which supports protocols like LDAP, SMTP AUTH (SASL), and TLS. It routes and delivers emails.You will need to uninstall the sendmail from the server before installing the postfix because sendmail is the default MTA in Redhat/CentOS.
[root@server ~]# yum remove sendmailRequirement -i. The server should have correct MX records.ii. Firewall should be disabled. You can use below command to disable the firewall -[root@server ~]# service iptables stop[root@server ~]# service ip6tables stop[root@server ~]# chkconfig iptables off[root@server ~]# chkconfig ip6tables offInstallationUse below command to install postfix -[root@server ~]# yum install postfix
Open the postfix config file -
Find the below lines and edit them as shown below -
[root@server ~]# vi /etc/postfix/main.cfmyhostname = your server hostnamemydomain = your domain namemyorigin = $your domain nameinet_interfaces = allmydestination = $myhostname, localhost.$mydomain, localhost, $mydomainmynetworks = add your network rangehome_mailbox = Maildir/
Start the postfix service -
[root@server ~]# service postfix startStarting postfix: [ OK ][root@server ~]# chkconfig postfix on
Testing the postfix -[root@server ~]# telnet localhost smtp
Check Mail -Navigate to the user mail directory and check for the new mail -
[root@server ~]# cd /home/user1/Maildir/new/[root@server new]# ls
After 'ls' command, you'll get the details of email with date, time, to and from.All done! Postfix working now.
Was this answer helpful?
Finding the username from provided hosting service name - /script/whoowns domain_name Finding...
AVG free is antivirus which protects from spyware as well malware. It is free to use for private...
A Point-To-Point Tunneling Protocol (PPTP) allows you to implement your own VPN very quickly, and...
Node means Server and JS means Java Script so in simple words Node.js is a Server Side Java...
1. # yum install ImageM* netpbm gd gd-* libjpeg libexif gcc coreutils make 2. # cd...
Powered by WHMCompleteSolution