Postfix or Sendmail specified SMTP relay host

####POSTFIX####

# vi /etc/postfix/main.cf

 

specify SMTP relay host

relayhost = smtp-apps03.dsc.belomor.nl

 

# /etc/init.d/postfix restart

# tail -f /var/log/maillog

# mailx -s “TEST_MAIL_POSTFIX” -a /home/gus/log.csv [email protected] -c [email protected]  < /dev/null

# tail -f /var/log/maillog

 

 

####SENDMAIL####

# cat /etc/mail/sendmail.cf | grep DS

DSsmtp-apps03.dsc.belomor.nl

 

# /etc/init.d/sendmail restart

 

# mailx -s “TEST_MAIL_SENDMAIL” -a /home/gus/log.csv [email protected] -c [email protected] < /dev/null

Done;