Timeline for /usr/bin/mail call in ExecStart not sending any mail
Current License: CC BY-SA 3.0
        3 events
    
    | when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 26, 2019 at 15:12 | comment | added | JFlo | 
        
            
    I was able to add -S sendwait when calling mailx since I didn't want to change the system configuration, but needed to make my script work when called from a systemd service unit.
        
     | 
|
| Jun 3, 2016 at 1:28 | comment | added | siliconrockstar | Note: to set the mailx internal variable, add 'set sendwait' to /etc/mail.rc (at least that's where it is on CentOS 7) | |
| Oct 4, 2015 at 12:30 | history | answered | JdeBP | CC BY-SA 3.0 |