Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Dear Grim,
The funny part is before this it send me for few hours to my email box with this message Couldn't open file /var/lib/aide/aide.db.gz for reading from root root@localhost.localdomain. The funny part when I checked my email again now I saw one email again in this time with all the analysis details. But why is it not on timely as per hour basis.Normally where can I check all the errors related to cron jobs?
You can check /var/log/cron to see when your job executes. Also check /var/log/maillog to see when the mail was sent out. Could be a delay between mail hosts.
The removed to me indicates that the mail has moved on to the next step in the process and that would be google getting the mail to you. Doesn't appear to be much you can do at this point.
Dear Grim,
Ok I found it is due to gmail is taking this email address root <root@localhost.localdomain> from the cron as spam. Is it possible to change the sending email address?
Dear Grim,
Actually I did not do any mail settings and I guess is the default smtp sendmail is sending the email. I did some google some said adjust the /etc/host the first line and some say adjust the /etc/mail/aliases. What do you suggest?
Dear unSpawn,
I was going through both the link.
Ok first I can do this add to the last this smtp_generic_maps = hash:/etc/postfix/generic
Then next I open vi /etc/postfix/generic what should I do with this file now? What to add I am a bit confuse herE?
I open vi /etc/postfix/generic what should I do with this file now?
It's where he changes "tom-01@server01.hosting.com" to "tom@domain.com". So you can mask "root@localhost.localdomain" as a user name and a fully qualified domain name that are valid. Not that I use Postfix though.
Dear unSpawn,
To be frank I do not know how AIDE is sending the report via? Is it via sendmail or postfix how to determine ? I have not setup any smtp on my server either just using it as it is?
I do not know how AIDE is sending the report via? Is it via sendmail or postfix how to determine ? I have not setup any smtp on my server either just using it as it is?
Apparently, as you're editing /etc/postfix/generic, it is Postfix. (Sendmail uses stuff in the /etc/mail/ directory.) Usually a MTA is drawn in on installation as a dependency of any application that requires sending email.
Dear unspawn,
What I want to learn here is that on default the cron is using the sendmail or postfix to send those AIDE emails to me? Kind of lost here. Is there a mechanism to determine that before I go further to edit on the email address?
What I want to learn here is that on default the cron is using the sendmail or postfix to send those AIDE emails to me? Kind of lost here. Is there a mechanism to determine that before I go further to edit on the email address?
I know English is not your native language but I already gave you the test: Postfix uses files in the /etc/postfix directory and Sendmail uses files in the /etc/mail directory. Another way is to run 'readlink -f /etc/alternatives/mta' and then 'rpm -qf' the result should show you the package name.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.