oracledba.help
Install

LinuxWorkSessions

postfix Session

-- Install
dnf install -y postfix mailx

-- Cfg
vi /etc/postfix/main.cf

# SCCU Custom Values
myhostname = servername.sccu.com
myorigin = sccu.com
relayhost = [smtp.sccu.com]
inet_interfaces = loopback-only
mydestination =

 --> Leave mydestination blank

-- Enable / Start / Verify
# Enable Postfix at boot
systemctl enable postfix

# Start or restart Postfix
systemctl restart postfix

# Verify status
systemctl status postfix

# Verify configuration has no obvious errors
postfix check


-- Final Checks
echo "Postfix Test" | mail -s "OAS-P02 Email Test" michaele@sccu.com
postqueue -p

Sendmail Session

service sendmail status 
=============================
-- Purge
cd /var/spool/mqueue 
rm -f qf*;rm -f df*

cd /var/spool/clientmqueue
rm -f qf*;rm -f df*

=============================
-- sendmail
 vi /etc/mail/sendmail.mc

 define(`SMART_HOST', `relay.sccu.local')dnl
 MASQUERADE_AS(`sccu.com')dnl
 FEATURE(masquerade_envelope)dnl

cd /etc/mail 
make
=====================================================
-- Status
watch mailq
tail -f /var/log/maillog
   sendmail -bp
   mailq| grep "("

service sendmail status   
oracle> mail -s "Email Test $HOSTNAME" michaele@sccu.com < /dev/null
=================================
-- norad
10.200.12.35 \
michael \

-- sysAlert
usrSwapSize=8192
================================
-- STUFF

vi /etc/cron.d/0hourly
vi /etc/crontab

DNATEST Node 1
select instance_name from v$instance;
   dnatest2