Configuring email thru a relay on Nagios XI
Posted: Mon Feb 23, 2015 7:08 am
Hello,
I have a Nagios XI server setup on a secure network with no Internet connection. To send emails out I have to send then thru an email relay which then sends then to an email server connected to the internet.
I tried both sendmail and smtp. SMTP fails with an error message that an error occurred. sendmail completes with no errors but when I tailed out the maillog file I found that sendmail was trying to perform a DNS lookup for the mx record for the email recipient and of course failed.
I have put in the host address ( both ip and fqdn ) in the smtp host settings. I am able to test this with a vbscript I wrote for my windows box so I know it works.
The relay server does not require any username or password, and uses the standard port 25. Security is set to none.
Is there a way to configure postfix or phpmailer to work with the relay server?
Thanks,
I have a Nagios XI server setup on a secure network with no Internet connection. To send emails out I have to send then thru an email relay which then sends then to an email server connected to the internet.
I tried both sendmail and smtp. SMTP fails with an error message that an error occurred. sendmail completes with no errors but when I tailed out the maillog file I found that sendmail was trying to perform a DNS lookup for the mx record for the email recipient and of course failed.
I have put in the host address ( both ip and fqdn ) in the smtp host settings. I am able to test this with a vbscript I wrote for my windows box so I know it works.
The relay server does not require any username or password, and uses the standard port 25. Security is set to none.
Is there a way to configure postfix or phpmailer to work with the relay server?
Thanks,