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.
Does anyone know how to get rid of these messages in the maillog for sendmail?
Dec 8 22:25:54 sm-msp-queue[7536]: jB7002VQ056942: to=root, ctladdr=root (0/0), delay=2+04:25:52, xdelay=00:00:00, mailer=relay, pri=5172694, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
I have a ton of these in the maillog, and it looks like something is trying to send mail to root. I can still send and receive emails just fine. Not sure what is causing this.
Sendmail is part of Postfix. You can do away with those (and all other messages) by editing /etc/post/main.cf. Scroll down to the line that reads "mail_spool_directory = /var/mail" and change it to read "mail_spool_directory = /dev/null". You will never, ever, EVER see those or any other messages in the maillog again.
They go into the bit bucket, the black hole, the singularity, and disappear.
On the other hand, if you develop problems with your system, one of the sources of information to help solve the problem is the maillog. If there is nothing there, you have lost that source of information in re the problem.
On yet another hand, it might be possible to have some sort of blacklist file to add certain characteristics of unwanted messages, and only those unwanted messages are excluded. The rest remain intact. I don't have a clue how to do that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.