egrep 'mail|localhost|127.0.0.1' /etc/hosts.allow
POSTFIX
ps -ef |egrep 'sendmail|postfix'| egrep -v grep
ls -l /usr/sbin/sendmail; ls -l /etc/init.d/sendmail
cd /etc/postfix ; cp -p main.cf 0-main.cf.0 ; vi main.cf
:76
echo "myhostname = `egrep -w \`hostname\` /etc/hosts |awk '{print $2}'`"
:319
relayhost = [rtms.binghamton.edu]:25
tail -f /var/log/maillog
service postfix restart ; service postfix status
date | mailx -s `hostname` chouck@binghamton.edu
SENDMAIL
telnet SERVERNAME 25
submit.cf
DSrtms.binghamton.edu
echo "To: chouck@binghamton.edu
From: craig@binghamton.edu
Subject: from `hostname`
cat /var/tmp/EmailBody | /usr/lib/sendmail -bm -t -v
" > /var/tmp/EmailBody
cat /var/tmp/EmailBody
cat /var/tmp/EmailBody | /usr/lib/sendmail -bm -t -v
/usr/lib/sendmail -d0.12 -bt < /dev/null
shows useful information about the sendmail config and system identities.
Show Sendmail Queue
/usr/lib/sendmail -bp
Test the MX-Record readed by Sendmail from DNS
/usr/lib/sendmail -bt