Hi Steffen! I think in general you should leave the decision on what to do with plain usernames to the MTA on that host. And a sendmail command that can not deliver to plain usernames sounds like a problem to me. There should be other parts of the system apart from slurm that need that functionality, too, so it might be better to fix sendmail.
Also, if slurm added @localhost by default, this might actually not be the same on systems that know how to handle plain usernames with sendmail. What MTA are you using (exim, postfix,...) ? Regards, Jens. On Thu, Mar 02, 2017 at 02:40:34AM -0800, Steffen Grunewald wrote: > > Good morning, > > I have received complaints from a user that, although he has set > "--mail-type=ALL", > he would not receive job notification emails. > By default, "--mail-user" is set to the username, but apparently without a > domain part. The sendmail running on the machine refuses to accept mails > without a domain part - which seems to be the culprit of the issue. > > Now a possible workaround would be to have everyone set > "--mail-user=`whoami`@localhost" > (and teach new users to add this option) but a more general solution would be > to have a config setting or a default "@localhost". > > This is Slurm 2015.08.8. > > Thanks, > Steffen > -- Jens Dreger Freie Universitaet Berlin [email protected] Fachbereich Physik - ZEDV Tel: +49 30 83854774 Arnimallee 14 Fax: +49 30 838454774 14195 Berlin
