#!/bin/bash -
#===============================================================================
#
#          FILE:  ctasd_mail
#
#         USAGE:  ./ctasd_mail
#
#   DESCRIPTION:  This is to identify the mail server
#
#       OPTIONS:  ---
#  REQUIREMENTS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR: Jithesh B (jithesh@glowtouch.com),
#  ORGANIZATION: Glowtouch
#       CREATED: 01/31/2012 06:58:16 PM PST
#      REVISION:  ---
#===============================================================================
if [ -f /usr/local/psa/admin/sbin/mailmng ]
then
MAILMSG='/usr/local/psa/admin/sbin/mailmng'
GREP="$(which grep)"
AWK="$(which awk)"
$MAILMSG --features | $GREP "'SMTP_Server'" | $AWK -F '"' '{print $2}'
fi