New answers tagged

1

Take a look at the nc command. It is basically a cat that works across the network. You can use it to create client/server scripts that do all kinds of things.


0

Type: mail -s "the title" martini@mypc write your message and type CTRL+D Now when the user logins it will receive the e-mail (you have new messages or something like this) But the user must login and logoff or execute the mail command. If you want to send the message immediatly in the user screen you will can try to send it using a "tty". Using the ...


0

You can install the mail package in Ubuntu with below command. For Ubuntu -: $ sudo apt-get install -y mailutils For CentOs-: $ sudo yum install -y mailx Test Mail command-: $ echo "Mail test" | mail -s "Subject" youremail@domain.com


2

Thanks to @JennyD, this appears to be the solution: Turn on debugging on your sendmail test script so that you can get an accurate picture of what the problem is. Even if relaying through another host, some mail servers do a check back on you. Therefore, you need a valid domain in MASQUERADE_AS() in your /etc/mail/sendmail.mc file, it must be on this same ...


0

The first and main problem is that your sendmail is configured to use a hostname that doesn't exist, within a domain that doesn't exist. There's no domain called "104-226-131-166-com". This means that whenever any script or system function sends out mail without specifying the sender address, it's going to be using an address that doesn't work - which, in ...


0

This thread fixed my similar issues. Basically, systemd is killing the child process that should send the mail before it ever gets to send the mail. Fix was to add 'set sendwait' to /etc/mail.rc, but my setup is a little different than what you've described. /usr/bin/mail call in ExecStart not sending any mail



Top 50 recent answers are included