Find the answer to your Linux question:
Results 1 to 2 of 2
Hi Folks, Did a search here but could find nothing related, so I figured I'd just ask (again). I am using Sendmail 8.13.8 on FC5. I can see the contents ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    4

    Deleting emails from sendmail queue


    Hi Folks,

    Did a search here but could find nothing related, so I figured I'd just ask (again).

    I am using Sendmail 8.13.8 on FC5. I can see the contents of the current mail queue using the command 'mailq'.

    How do I delete messages from there (on account of misspelled domain names, etc) ?

    The man page for both sendmail and mailq has 4 options for processing emails based on certain parameters (recipient, sender, etc). But none for removing/deleting emails from the queue, the same way. Is it possible ?

    Regards,
    Arjun

  2. #2
    Just Joined!
    Join Date
    Jan 2007
    Posts
    90
    wait for some more time and they will be purged automatically depending on your configuration

    But if you are the kind who want to do some dangerous things, then the directory in which the mails are queued is /var/spool/mqueue/
    Delete all contents of this dir and restart sendmail ... whola! all the mails in the queue are gone <- again "Handle with CARE"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •