Skip navigation
McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
407 Views 5 Replies Latest reply: Oct 21, 2013 4:50 PM by mtuma RSS
yerkogofes Newcomer 6 posts since
Oct 21, 2013
Currently Being Moderated

Oct 21, 2013 3:04 PM

fail sending email

Currently we can not send mails.

 

Oct 1805:00:01 2013 CLST  f_syslog_mail a_general_area t_info p_trivial

pid: 63767ruid: 0 euid: 0 pgid: 63757 logid: 100 cmd: 'sendmail'

domain:mtac edomain: mtac hostname: sa-sa1.rbi.cl

<22>Oct18 05:00:01 sendmail(c)[63767]: r9I801c4063767: to=vhidalgo@redbanc.cl,delay=00:00:00, pri=360420, stat=Insufficient disk s

pace; try again later

 

 

we check var / spool   and see the following:

 

 

 

sa-sa1:Admn {4} % df

Filesystem    1K-blocks    Used   Avail Capacity  Mounted on

/dev/amrd0s2a    158446   34230  111542    23%    /

devfs                 1       1       0   100%    /dev

/dev/amrd0s4h   1859410    2924 1707734     0%    /home

/dev/amrd0s2e   2885746  162350 2492538     6%    /secureos

/dev/amrd0s4d    253678      12  233372     0%    /tmp

/dev/amrd0s2d   1012974  343998  587940    37%    /usr

/dev/amrd0s4e   2185984 2185970 -174864   109%    /var

/dev/amrd0s4f   7801598  681656 6495816     9%    /var/log

/dev/amrd0s4g   6032664 5552390   -2338   100%    /var/spool

/dev/amrd0s1a   3039954  624402 2172356    22%    /vcdrom

 

 

 

the letters with colour blue, indicate that space is full (100%).

what can do to fix this issue?

what is the root issue?

any solution...... steps or documents?

 

regards,

Yerko.

  • mtuma McAfee SME 314 posts since
    Nov 3, 2009
    Currently Being Moderated
    1. Oct 21, 2013 3:09 PM (in response to yerkogofes)
    Re: fail sending email

    Hello,

     

    This command will show you any large files in /var/spool that might be filling it up, unfortunately it won't really help if there are a ton of small files filling it:

     

    du -a /var/spool|sort -nrk 1|less

     

    You may want to check the mail queues (/var/spool/mqueue.*) for mail that is stuck in the queue.

     

    -Matt

  • mtuma McAfee SME 314 posts since
    Nov 3, 2009
    Currently Being Moderated
    3. Oct 21, 2013 3:31 PM (in response to yerkogofes)
    Re: fail sending email

    Hello,

     

    It appears that the mqueue.2 directory is full of undelivered mail, which is filling up the partition. If you do not care about the mail, you can delete it using the following commands:

     

    ###########################################################################

     

    Disable Sendmail and then use one of the following options (where x is the burb where mail is queued):


    To delete files which have not been modified in more than a day:


    find /var/spool/mqueue.x -name "*" -mtime +1 | xargs rm -f


    To delete all of the files:


    find /var/spool/mqueue.x -name "*" -print | xargs rm -f


    To delete all of the files:


    cd /var/spool/mqueue.x
    ls | xargs rm


    NOTE:
    This deletes anything that shows up in the ls output.


    If the previous options fail for any reason, use the following script to delete all of the files, printing a "." for every file deleted:

    cd /var/spool/mqueue.x
    sh
    for x in *
    do
    echo -n .
    rm $x
    done

     

    ###########################################################################

     

    If you want the mail to be delivered then we are going to need to know why it is stuck in the queue. The /var/log/maillog file and "mailq" are useful it determining the problem.

     

    -Matt

  • mtuma McAfee SME 314 posts since
    Nov 3, 2009
    Currently Being Moderated
    5. Oct 21, 2013 4:50 PM (in response to yerkogofes)
    Re: fail sending email

    Hello,

     

    The /var/log/maillog file and "mailq" are useful it determining the problem.

     

    -Matt

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 5 points
  • Helpful Answers - 3 points