User Tools

Site Tools


msmtp-and-cron

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
msmtp-and-cron [2020/11/23 16:16] baumimsmtp-and-cron [2020/11/23 16:16] (current) baumi
Line 10: Line 10:
  
 <code> <code>
-# mv /usr/bin/msmtp /usr/bin/msmtp.bin +# mv /usr/bin/msmtp /usr/bin/msmtp.bin && \ 
-cat << EOF > /usr/bin/msmtp+cat << EOF > /usr/bin/msmtp
 #!/bin/bash #!/bin/bash
 /bin/sed -e "s/root .Cron Daemon./Cron Daemon \<root@\$(/bin/hostname -f)\>/" | /usr/bin/msmtp.bin "\$@" /bin/sed -e "s/root .Cron Daemon./Cron Daemon \<root@\$(/bin/hostname -f)\>/" | /usr/bin/msmtp.bin "\$@"
-EOF +EOF && \ 
-chmod +x /usr/bin/msmtp+chmod +x /usr/bin/msmtp
 </code> </code>
 {{tag>kb linux smtp}} {{tag>kb linux smtp}}
msmtp-and-cron.1606144589.txt.gz · Last modified: 2020/11/23 16:16 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki