All Questions
24
questions
0
votes
1
answer
52
views
Are e-mails to localhost logged with sSMTP?
I don't suppose that sSMTP will work for just sending mail on the localhost?
nicholas@mordor:~$
nicholas@mordor:~$ sudo cat /etc/ssmtp/ssmtp.conf
#
# Config file for sSMTP sendmail
#
# The person who ...
0
votes
1
answer
70
views
Where does fetchmail store e-mails?
Having removed procmail, am looking for where fetchmail is storing messages:
nicholas@mordor:~$
nicholas@mordor:~$ tail -f /var/log/fetchmail.log
fetchmail: IMAP< A0003 OK [READ-WRITE] INBOX ...
0
votes
1
answer
179
views
Remove specific emails from sendmail mqueue
How do I remove emails from mqueue based on destination address. Needing to remove deferred messages going to "[email protected]"
Due to an endless loop (that has been found and ...
0
votes
0
answers
89
views
Can I stop /usr/bin/mail from putting lots of binary data in syslog
I'm running Linux 9 on a Raspberry Pi Model 3B.
Periodically via CRONTAB, I start a task to email (/usr/bin/mail) some files. The task in working and I get the files. However, it is also logging ...
0
votes
1
answer
262
views
Logging script to email
I have a script that scans a log for a list of words, then sends an email with the results. I would like to expand this to do the same for other logs in the same directory but make it a new email with ...
1
vote
1
answer
620
views
Redirect Standard and Error Output to Append a file, and email truncated results
I have a crontab that looks something like this:
0 8 * * * command >> mylog.log 2>&1
This appends both errors and standard output into mylog.log.
In addition to what's above, I want to ...
1
vote
4
answers
2k
views
Send mail on change of line in log file, tail -f piping to mail doesn't work
I have a nginx access.log
There is very infrequent traffic, so I want to get a mail on each access.
I've tried
tail -f access.log | cat
That works. So piping with tail seems ok.
With following ...
3
votes
2
answers
2k
views
Have logwatch send reports only once a week
I would like to lessen the noise from logwatch reports sent to my email on three systems.
Is it possible by to configure logwatch to send only some days in the week, or once a week?
More relevant ...
11
votes
2
answers
2k
views
Why does cron require MTA for logging?
Why does cron require MTA for logging? Is there any particular advantage to this? Why can't it create a log file like most other utilities?
1
vote
1
answer
51
views
Method to automatically email if a drive goes offline (or a USB port is restarted)
Is there a quick and easy method to send an email (I already have automatic emails coming from the server for other events - I just need to be able to send one for this specific event) if a USB port ...
10
votes
1
answer
85k
views
How can I see all sent emails from my mail server?
My server was infected to a malware. That malware sent lots of emails to random people with random content (promotional content). And now, my domain authority is getting pretty low and every email I ...
0
votes
1
answer
182
views
Linux is spamming me now (anacron)
Since about a year ago, linux Debian has been spamming me with messages like the following:
Subject: Anacron job 'cron.daily' on mymachine
Content-Type: text/plain; charset=UTF-8
Date: Mon, 3 Apr ...
0
votes
1
answer
52
views
Too many emails sent when sending emails when specific URL has been visited in Apache Logs
In this question, a solution was found to automatically send an email each time a specific URL is visited (such as ?src=foo), as seen in the Apache logs:
tail -F -n0 /var/log/apache2/...
1
vote
6
answers
553
views
Trigger an action when an URL has been visited
Let's say I send an email, containing a link to my website, to someone that I really hope he'll visit it (fingers-crossed style):
http://www.example.com/?utm_source=email392
or
http://www.example....
1
vote
0
answers
776
views
Exim: Log sent/received emails headers
I've a fully working mail server running on Exim over Debian. Recently I was asked if it was possible to get a monthly log of the headers of all email sent and received. By headers I mean email ...