LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sendmail producing messages in maillog (https://www.linuxquestions.org/questions/linux-software-2/sendmail-producing-messages-in-maillog-390751/)

lawadm1 12-08-2005 10:33 PM

sendmail producing messages in maillog
 
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.

TIA

bigrigdriver 12-09-2005 04:28 PM

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.


All times are GMT -5. The time now is 05:32 PM.