[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] flushing mail queue



<snip>
> 
> Thanks for help
> but could you Please expand on mailq
> 
> I have been looking at  home/spool/mqueue
> 
> I can not delete the files, not authorised
</snip>

Sorry! Was one of those quick rushing out of the office type replies!

After you ssh/telnet [use ssh though] in as ADMIN, you then need to become the root superuser to perform this type of thing, so do a:
su -
then enter the admin password again. This will give you the relevant permissions (but be carefull what you do!)

If you then type mailq you'll get a listing of what is currently in the queue, and also the mailq directories. An example would be like this (this is from one of my RaQ3i's)

[root /root]# mailq
/var/spool/mqueue/q1 is empty
/var/spool/mqueue/q2 is empty
/var/spool/mqueue/q3 is empty
/var/spool/mqueue/q4 is empty
		Total Requests: 0

This shows that nothing is waiting to be sent.

However, opn yours it will display the list of mails currently waiting in the outbound sendmail queue, simple navigate to the relevant directory:
cd /var/spool/mqueue/q1
and then delete the contents
rm -f *
(-f forces without prompting)

Then issue a mailq again and it should come up with something like on mine. Hope that explains it.

Regards,

Andy
andy@xxxxxxxxxxxxxxx
http://www.raqpak.com/ <-- Raq/Qube unofficial PKGs and support advice