Monday, June 1, 2026

Configure mailx and Send email alert from OS Solaris

 

* Configure in file below:

# vi /etc/mail/cf/cf/email.cf

DMemail.mydomain.com.kh

 

# vi /etc/mail/cf/cf/email.mc

MASQUERADE_AS(`email.mydomain.com.kh')

 

 # vi /etc/mail/main.cf

DSemail.mydomain.com.kh

DMemail.mydomain.com.kh

 

#vgrep mydomain*

 

 * Restart Service sendmail 

# svcadm disable svc:/network/smtp:sendmail

# svcadm enable svc:/network/smtp:sendmail

# svcs -a network/smtp:sendmail


* Send test

/usr/bin/mailx -s "Test Mail" -v hornrim@mydomain.com.kh < /dev/nul

No comments:

Post a Comment