Cumartesi, Aralık 21, 2024

sm-msp-queue stat=Deferred: Connection refused by 127.0.0.1

Alışveriş merkezinde müşteriler ve alışveriş arabaları.

Sunucunuz üzerinden e-posta atmıyorsunuz ama bir paket yüzünden sendmail ve buna bağlı servisler kurulduysa, aşağıdaki hata ile karşılaşıyorsanız.

Oct  6 13:41:21 localhost sm-msp-queue[3756745]: 3969cQlj3748691: to=root, ctladdr=root (0/0), delay=01:02:55, xdelay=00:00:01, mailer=relay, pri=390300, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Oct  6 13:41:23 localhost sm-msp-queue[3756745]: 3969Tipd3748180: to=root, ctladdr=root (0/0), delay=01:11:39, xdelay=00:00:02, mailer=relay, pri=390300, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Oct  6 13:41:24 localhost sm-msp-queue[3756745]: 3969dO3j3749010: to=root, ctladdr=root (0/0), delay=01:02:00, xdelay=00:00:01, mailer=relay, pri=390345, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Oct  6 13:41:25 localhost sm-msp-queue[3756745]: 3969dOrk3749008: to=root, ctladdr=root (0/0), delay=01:02:01, xdelay=00:00:01, mailer=relay, pri=390345, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Oct  6 13:41:26 localhost sm-msp-queue[3756745]: 3969dOTg3749006: to=root, ctladdr=root (0/0), delay=01:02:02, xdelay=00:00:01, mailer=relay, pri=390345, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Oct  6 13:41:27 localhost sm-msp-queue[3756745]: 3969dOtm3749007: to=root, ctladdr=root (0/0), delay=01:02:03, xdelay=00:00:01, mailer=relay, pri=390345, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Oct  6 13:41:28 localhost sm-msp-queue[3756745]: 3969dOiW3749009: to=root, ctladdr=root (0/0), delay=01:02:04, xdelay=00:00:01, mailer=relay, pri=390372, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Oct  6 13:41:29 localhost sm-msp-queue[3756745]: 3969TMPe3748149: to=root, ctladdr=root (0/0), delay=01:12:07, xdelay=00:00:01, mailer=relay, pri=390393, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Oct  6 13:41:30 localhost sm-msp-queue[3756745]: 3969bNxq3748611: to=root, ctladdr=root (0/0), delay=01:04:07, xdelay=00:00:01, mailer=relay, pri=390393, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Özellikle bu hata sebepli diskiniz doluyor olabilir, bunu kalıcı olarak durdurmak için önce mail kuyruğunu temizliyoruz.

rm /var/spool/mqueue/*
rm /var/spool/mqueue-client/*

Daha sonra buna bağlı cronları kaldırmanız lazım bunun içinde /etc/cron.d/ içerisinde sendmail ile alakalı ne kadar conf dosyası varsa kaldırın servisi yeniden başlatın.

systemctl restart cron

Daha sonra şişen logları da sıfırlamak için aşağıdaki adımı izleyin, işiniz bitti hadi h.o

echo > mail.err
echo > mail.info
echo > mail.log
echo > mail.warn