Difference between revisions of "Setup email relay server using sendmail"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>Sendmail_server_configuration|Sendmail server configuration</yambe:breadcrumb> =Setup email relay server using sendmail= To setup email relay server using s...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb>Sendmail_server_configuration|Sendmail server configuration</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Email server configuration]] > [[Sendmail server configuration]] > [[Setup email relay server using sendmail]]
=Setup email relay server using sendmail=


To setup email relay server using sendmail use following steps:
To setup email relay server using sendmail use following steps:
Line 26: Line 25:


Refer https://www.freebsd.org/doc/handbook/sendmail.html
Refer https://www.freebsd.org/doc/handbook/sendmail.html
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Email server configuration]] > [[Sendmail server configuration]] > [[Setup email relay server using sendmail]]

Latest revision as of 14:24, 13 March 2022

Home > CentOS > CentOS 6.x > Email server configuration > Sendmail server configuration > Setup email relay server using sendmail

To setup email relay server using sendmail use following steps:

  1. Install sendmail on relay server. Ensure that incoming and outgoing connections to TCP/25 are allowed. Further DNS queries for MX / A records should work correctly on this machine.
    yum -y install sendmail
  2. Enable on startup
    service sendmail start
    chkconfig sendmail on
    On CentOS 7 'systemctl start sendmail; systemctl enable sendmail'
  3. Allow access to specific clients by editing '/etc/mail/access'. After adding new IPs using CONNECT for RELAY, do
    cd /etc/mail
    make
    service sendmail reload
    for new settings to take effect.
    On CentOS7 use 'systemctl reload sendmail' instead
  4. On clients mention SMART_HOST as FQDN of relay server. In case of postfix clients set relayhost to FQDN of this server


Refer https://www.freebsd.org/doc/handbook/sendmail.html




Home > CentOS > CentOS 6.x > Email server configuration > Sendmail server configuration > Setup email relay server using sendmail