[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Notification email from host without FQDN




On Jan 31, 2019, at 4:32 AM, Evgeniy Kuznetsov <evkuz@xxxxxxx> wrote:

Hi all,

Our team  using virtual machines as execute nodes and  all of them doesn't have public ip address and FQDN, so the submitter cann't receive a notification email about job completion.

Error message looks like this :
"host mail.jinr.ru[159.93.14.110] said: 450 4.1.8 <condor@xxxxxxxxxxxxxxxxxx>: Sender address rejected: Domain not found (in reply to RCPT TO command)"

Hostname "wn_221_141.jinr.ru" is not a FQDN, it is specified in /etc/hosts.

Is there any way to tell condor  use some login/pssword pair for execute node to connect to mail server as a client and send email from dedicated e-mail address ?


First thought I had was you can set the SENDMAIL config knob in condor_config to tell HTCondor to run a custom script whenever sending email instead of simply invoking /use/sbin/sendmail. Your script could do whatever is necessary to send out an email in your environment. The message and destination will be passed to your script via stdin, just like invoking sendmail (see âman sendmailâ).  Below is copied from the HTCondor manual. 

Cheers,
Todd 

SENDMAIL
The full path to the sendmail executable. If defined, which it is by default on non-Windows platforms, sendmail is used instead of the mail program defined by MAIL.
MAIL
The full path to a mail sending program that uses -s to specify a subject for the message. On all platforms, the default shipped with HTCondor should work. Only if you installed things in a non-standard location on your system would you need to change this setting. The default value is $(BIN)/condor_mail.exe on Windows and /usr/bin/mail on all other platforms. The condor_schedd will not function unless MAIL is defined. For security reasons, non-Windows platforms should not use this setting and should use SENDMAIL instead.






For example I get a new email account "condor@xxxxxxx" on the mail server, but how to make the condor on submit node send email using this account ?

Or any other ideas ?

Our versions :

$CondorVersion: 8.6.13 Oct 30 2018 BuildID: 453497 $
$CondorPlatform: x86_64_RedHat6 $

mail transfer agent (MTA) - POSTFIX

Evgeniy Kuznetsov. JINR Dubna.

evkuz@xxxxxxx

_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/