Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I have setup exim (using eximconfig), and it works like I want it with sendmail (relaying my messages to my isp's smtp server).
When I run mailq however, i see a huge queue building up, for messages with destination to root@myisp. I don't want to send anything there. (I have figured out how to flush the queue manually, but it still builds up)
Everything else is working fine on the system, and I would just like to stop these messages.
I would guess that your root account isn't yet aliased to a real address, so all the status reports can't be forwarded on. Edit the aliases file and alias root to an active email address, then run the newaliases command to make the change active.
By convention all built-in automated tasks send their reports and error warnings to root, which should be aliased to a real e-mail address. Depending on your distribution the aliases file is either /etc/aliases or /etc/exim/aliases. Again, you need to run newaliases after editing it for Exim to pick up the changes.
The log analyzer reports are your early warning system against system errors and hacking attempts, so I actually wouldn't recommend disabling email reports on any production server.
I have found that the error messages are being generated by samba: Every 30 minutes the pc tries to mount a network drive, and upload a report. However when that network computer is down, the mount cannot take place, and the error message is sent.
Any suggestions on how to stop the message from being sent?
And do I have to receive the root messages? Is it possible to point the root messages to a void or a null or something (obviously without building up the queue)?
Also, I don't have, nor do I want a pop server on the computer, and I really don't want these messages going to some valid email address, wasting bandwidth.
Any suggestions on how to stop the message from being sent?
If it's a scheduled mount then fix the network detection in the cronjob that tries to mount the drive. In cronjobs output goes to the email address defined in the cronjobs "MAILTO=" variable. For system and root cronjobs it obviously goes to root unless you set the variable to that of another email account, preferably one being read by a human user.
And do I have to receive the root messages? Is it possible to point the root messages to a void or a null or something (obviously without building up the queue)?
It's already been said that email sent to root can be valuable since it contains alerts to watch out for and errors to correct. So please don't ask again, don't dodge the issue and don't use arguments like "bandwidth waste" because that is not a valid reason. Period. Fix the cause and add an alias for root in /etc/(mail/)aliases linked to a mail account that is read by a human, then run "newaliases".
Thanks unSpawn, I think it does go to the cronjob's MAIL like you said, because I set the newaliases, and it still goes to the same place. (I'll try to set that today)
I'm sorry to mention this again, but the way I understand it, to not waste bandwidth, I have to setup a local pop server. Is that correct? I really don't want this messages going out, and back in over my internet connection, as I can only afford a 3gb cap (South Africa's internet very expensive).
But since you strongly recommend reading these messages, and considering it's the default behavior, I guess I'll try to figure out how to setup a pop server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.