One time, in the medium to large business network, because the restrictions on access to external network we need to send an email to the mail relay service. This method looks good for security reasons because you do not have to open all ports for each server to allow sending an email.
Here is how to setup a Linux server to send mail to the mail service relay:
- Install postfix package
yum install postfix
.
- Edit /etc/postfix/main.cf
See the command line below as an idea about how you setup your server. Enable some command lines by removing the hash according to your needs.
- Change configuration on mail relay service.
Make your mail relay service to accept all incoming mail from the host. Normally the host is a list of ip addresses for allowed sender.
No comments:
Post a Comment