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

Re: Purging Sendmail queue for unwanted Messages.



"WFT" <wilson@douala1.com> writes:

> Is there a way or purging or forcing the sendmail queue let go some
> of the messages in the queue.  I need this so I can flush out email
> with badly type email address. For somebody who tries to send a mail
> to somebody@hotmail.com and instead types somebody@hotmai.com the
> mail will remain in the queue for five good days beore is is wiped
> out sending out reminders every four hours.

Run mailq and obtain the Q-ID of the bad message:

                Mail Queue (1 request)
--Q-ID-- --Size-- -----Q-Time----- ------------Sender/Recipient------------
GAA20975*       5 Wed Nov 17 06:11 roland
                                   user@hotmai.com

As root go to /var/spool/mqueue, there'll be two files with this Q-ID:
Delete them!

# cd /var/spool/mqueue
# ls
dfGAA20975  qfGAA20975
# rm *GAA20975

Cheers,
Roland.
-- 
Tell me and I'll forget; show me and I may remember;
involve me and I'll understand - Chinese Proverb.


Reply to: