Skip to content
Advertisement

Tag: email

Read last line of file after the file was modified

I have a problem with reading the last line of file in Linux Ubuntu. I have a file named auth.log and I’m trying to read it last line after new line was added (after file was modified). I know i need to use tail -1 /var/log/auth.log to get last line but I don’t know how to check the file every

DKIM key not valid – Bad RSA signature

I have setup DKIM on a Ubuntu 14.04 machine using opendkim and postfix. I generated the RSA keypair and updated the TXT record. When testing the settings at any DKIM tester like www.mail-tester.com or www.dkimvalidator.com, I get errors like “result = fail, bad RSA signature”. Here is an example mail (info from dkimvalidator.com). I substituted the real domain with mail.example.com.

Email based on value of report

I’m looking to grep a numeric value from a tripwire report, and if the value is greater than 0, send an email. The script so far looks like this: Not sure how to grab the value and set it as a variable or if there’s a way to include it in the if statement itself. Answer First count the entries:

Bash : Configuring email-provider for bash-script

I am working on writing a script to run on our Debian server(Debian 3.2.68-1+deb7u5 x86_64 GNU/Linux), which will monitor a specific port we have and when there is no process running on that port, or that port is available, then I will have to send out an email. I intend to run the script every 15 minutes and then send

Mail notifications through Qt on Linux

I want to write a program which would show a pop up if a new mail arrives through Gmail. What library/api am I supposed to use get notifications from Gmail pro-grammatically? Answer You can treat GMail as an IMAP server and work with it like that. You’ll want a C++ IMAP library, there’s quite a few out there but I’d

Ubuntu: Sendmail exited with error 70 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Advertisement