Configuring Server Mail Address


#1

Hi!
In chaper 2.2.1 of PBS Professional 14.2 Big Book is explained how to set e-mail address that is used to both send and receive administrative mail. How to check that is working properly?
I set mail_from server attribute to some address, eg.: name@pbs.dom.ain.com
but I’am not sure is this OK, because in my company mail server are used SPF’s. So when I try send test-mail via /usr/lib/sendmail on that e-mail address, it returned with error message: “Sender address rejected: unverified address: …”
That means that mail server can receive mails only from domain: dom.ain.com but from pbs.dom.ain.com it can’t.
Now I set PBS_MAIL_HOST_NAME parameter in pbs.conf (dom.ain.com) and I want to check is it working. How can I check it?


#2

[pbsdata@opencent ~]$ qstat -Bf | grep mail
mail_from = adarsh@opencent.com

[pbsdata@opencent ~]$ qsub -m abe – /bin/sleep 10
475.opencent

[pbsdata@opencent ~]$ qstat

[pbsdata@opencent ~]$ mail
Heirloom Mail version 12.4 7/29/08. Type ? for help.
“/var/spool/mail/pbsdata”: 43 messages 43 new
> N 42 root Fri Aug 24 13:37 16/536 “PBS JOB 475.opencent”
N 43 root Fri Aug 24 13:37 23/715 “PBS JOB 475.opencent”
& 43
Message 43:
From adarsh@opencent.com Fri Aug 24 13:37:51 2018
Return-Path: adarsh@opencent.com
X-Original-To: pbsdata@opencent
Delivered-To: pbsdata@opencent.localdomain
To: pbsdata@opencent.localdomain
Subject: PBS JOB 475.opencent
Date: Fri, 24 Aug 2018 13:37:51 +0100 (BST)
From: adarsh@opencent.com (root)
Status: R

PBS Job Id: 475.opencent
Job Name: STDIN
Execution terminated
Exit_status=0
resources_used.cpupercent=0
resources_used.cput=00:00:00
resources_used.mem=0kb
resources_used.ncpus=1
resources_used.vmem=0kb
resources_used.walltime=00:00:10