LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-14-2017, 10:05 AM   #1
geehall
LQ Newbie
 
Registered: Jun 2017
Posts: 1

Rep: Reputation: Disabled
eMails not leaving the mqueue-client dir


Hi

I’m having an issue with mail on my Debian server.

Many GBs are being used up on the /var partition so it runs low on diskspace, the majority is used up within the /var/spool/mqueue-client directory. I believe this is where messages are held while trying to send, and they remain there for 5 days before being removed. So all the time there is 5 days’ worth of emails.

I’ve read that the 5 days could be reduced so there would be fewer mails in the directory (which doesn’t solve the problem of why they’re not sending, but would help with space in the meantime), by editing the /etc/mail/sendmail.mc file with the line:

define(`confTO_QUEUERETURN',`3d')dnl

then typing,

make -C /etc/mail && /etc/init.d/sendmail reload

which would reduce the number of days to keep to 3 days, but this line is not in the file at the moment, to edit. Would it just need adding somewhere?

I have also checked the mail.log file from /var/log, which contains *many* lines similar to the following:

Jun 12 16:09:46 <*SERVERNAME*> sm-msp-queue[26960]: v5B8K1ob012425: to=postmaster, delay=1+06:23:22, xdelay=00:00:00, mailer=relay, pri=4282993, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]


Any help is much appreciated

Thanks,
/G
 
Old 06-15-2017, 06:45 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I’ve read that the 5 days could be reduced so there would be fewer mails in the directory (which doesn’t solve the problem of why they’re not sending, but would help with space in the meantime), by editing the /etc/mail/sendmail.mc file with the line:
define(`confTO_QUEUERETURN',`3d')dnl
then typing,
make -C /etc/mail && /etc/init.d/sendmail reload
which would reduce the number of days to keep to 3 days, but this line is not in the file at the moment, to edit. Would it just need adding somewhere?
You should add that line if it doesn't exist among the other "define ..." lines in sendmail,mc


Quote:
Jun 12 16:09:46 <*SERVERNAME*> sm-msp-queue[26960]: v5B8K1ob012425: to=postmaster, delay=1+06:23:22, xdelay=00:00:00, mailer=relay, pri=4282993, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Are you sure sendmail is running and listening on the local loopback interface (127.0.0.1)?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copying files from home dir to another dir from another dir in a lower dir chomito44 Linux - General 5 10-19-2013 06:18 PM
tar dir and sub dir removing files but not existing not empty dir j-me Linux - General 2 08-12-2013 11:37 AM
(Sendmail) Forwarding emails and leaving a copy on the server javiergt Linux - Software 2 03-14-2005 08:02 AM
cant ls,dir with ftp client steve_babbage Linux - Security 1 01-07-2004 03:46 PM
howto have the client home dir on a server green-ears Linux - Networking 7 09-25-2003 07:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration