Re: [slurm-users] Alternatives for MailProg
That is where you have it call a bash script and within the script you do as needed. Like Ahmet's suggested script. So use his as a template and add the headers you desire. Brian Andrus On 8/28/2020 11:36 AM, Chris Samuel wrote: On 8/27/20 3:42 pm, Brian Andrus wrote: Actually, you can add headers of all kinds: Quick search of "sendmail add headers" discovers: Problem is that Slurm doesn't directly call sendmail, it calls "mail" (or MailProg in your slurm.conf) instead, hence not being able to add headers. All the best, Chris
Re: [slurm-users] Alternatives for MailProg
On 8/27/20 3:42 pm, Brian Andrus wrote: Actually, you can add headers of all kinds: Quick search of "sendmail add headers" discovers: Problem is that Slurm doesn't directly call sendmail, it calls "mail" (or MailProg in your slurm.conf) instead, hence not being able to add headers. All the best, Chris -- Chris Samuel : http://www.csamuel.org/ : Berkeley, CA, USA
Re: [slurm-users] Alternatives for MailProg
Actually, you can add headers of all kinds: Quick search of "sendmail add headers" discovers: https://serverfault.com/questions/347602/sending-e-mail-from-sendmail-with-headers Brian Andrus On 8/26/2020 10:02 PM, Andrew Elwell wrote: Hi folks, I'm getting fed up receiving out-of-office replies to slurm job state mails. Given that by default slurmctld just calls /bin/mail (aka mailx on our systems) which doesn't allow command line options to add headers such as 'Auto-generated: auto-submitted' to help educate auto responders, does anyone have a nice wrapper script I can steal (or they can send to the contribs/ folder) to convert 'mail -s "string" address' into something I can poke straight into /usr/sbin/sendmail? I looked at the seff / smail one, but that too just calls /bin/mail by default, If not, I'll start hacking something together but wanted to cut down on replicating wheels. Andrew
Re: [slurm-users] Alternatives for MailProg
Hi; If you want, You can use our script, very simple, but it works: https://github.com/mercanca/slurmmail Regards; Ahmet M. 27.08.2020 08:02 tarihinde Andrew Elwell yazdı: Hi folks, I'm getting fed up receiving out-of-office replies to slurm job state mails. Given that by default slurmctld just calls /bin/mail (aka mailx on our systems) which doesn't allow command line options to add headers such as 'Auto-generated: auto-submitted' to help educate auto responders, does anyone have a nice wrapper script I can steal (or they can send to the contribs/ folder) to convert 'mail -s "string" address' into something I can poke straight into /usr/sbin/sendmail? I looked at the seff / smail one, but that too just calls /bin/mail by default, If not, I'll start hacking something together but wanted to cut down on replicating wheels. Andrew
[slurm-users] Alternatives for MailProg
Hi folks, I'm getting fed up receiving out-of-office replies to slurm job state mails. Given that by default slurmctld just calls /bin/mail (aka mailx on our systems) which doesn't allow command line options to add headers such as 'Auto-generated: auto-submitted' to help educate auto responders, does anyone have a nice wrapper script I can steal (or they can send to the contribs/ folder) to convert 'mail -s "string" address' into something I can poke straight into /usr/sbin/sendmail? I looked at the seff / smail one, but that too just calls /bin/mail by default, If not, I'll start hacking something together but wanted to cut down on replicating wheels. Andrew