I’m trying to get PBS to send an email on PBS 18.1.4 & CENTOS 7.6.1810 but nothing seems to work. I have been trying for several days but am coming up empty handed. I can send mail using:
cd $PBS_0_WORKDIR
echo The following nodes will be used to run this program
cat $PBS_NODEFILE
#######################
Can someone walk me through a few things to check to figure out why this isn’t sending emails? I had this setup working on a POC cluster but now on my production cluster, I can’t get it to work.
If smtp / postfix services are running and are able to send/forward mails to respective addresses, then that would be only pre-requisite for the PBS Server to send mails.
could you please check the /var/log/maillogs
could you please check the local mail account for any mails
Thanks you and please forgive my ignorance. I am fairly new to linux and pbs.
/var/log/maillogs shows:
date time server sSMTP[somenumber]: Connection lost in middle of processing
$mail shows:
No mail for username
running the script:
script runs and puts job.0742 in the working directory and shows:
The following nodes will be used to run this program:
node8.cm.cluster
no email is sent/received
/var/log/maillog shows 2 entries for the same Connection lost in the middle of processing.
I found the ssmtp.conf here:
/etc/ssmtp/ssmtp.conf
I tried to add my mailhub at my work but it didn’t work. Maybe I need to add the hostname?
I don’t understand why PBS is trying to use ssmtp instead of sendmail or postfix. According to the PBS Big Book 2.2.1 “You cannot configure which mail server PBS uses. PBS uses the default mail server. On Linux, this is /usr/lib/sendmail.”
I don’t know why ssmtp is even installed. My POC never had this installed. Do you know if I should just remove ssmtp and try to use sendmail or postfix?
I think that would be the best idea to remove ssmtp , that might have deployed by default. #yum remove ssmtp
and you can install sendmail or postfix, that might do the trick