Monday, August 03, 2015

How to discover a server's mail relay

On Solaris 10 run the following command as a regular user:

grep rhmailer /etc/mail/sendmail.cf


On RedHat/Centos 5 and 6, first discover the OS release level:

cat /etc/redhat-release 


For redhat or centos 5 run the following command:

grep rhmail /etc/mail/sendmail.cf


For redhat or centos 6 run the following command:


grep rhmailer /etc/postfix/main.cf

No comments: