Results 1 to 6 of 6

Thread: Mail Queue

  1. #1
    Join Date
    Aug 2002
    Location
    DC
    Posts
    3,635

    Mail Queue

    My WHM/CPanel server sends out a lot of emails, and I get a whole bunch of returned emails, and "account not active", etc... (no, it's not spam, it's for http://www.ukee.com and http://www.friendq.com ) to the address nobody@(serverhostname).com . I have messages to this address in the mail queue for 21 hours - is there any way to either:

    a. clear all messages to "[email protected]" out of the queue

    or

    b. discard them automatically when they enter the queue?


    Thanks,

    Matt

  2. #2
    Join Date
    May 2002
    Location
    Northern Virginia
    Posts
    61

    Re: Mail Queue

    Originally posted by mainarea
    My WHM/CPanel server sends out a lot of emails, and I get a whole bunch of returned emails, and "account not active", etc... (no, it's not spam, it's for http://www.ukee.com and http://www.friendq.com ) to the address nobody@(serverhostname).com . I have messages to this address in the mail queue for 21 hours - is there any way to either:

    a. clear all messages to "[email protected]" out of the queue

    or

    b. discard them automatically when they enter the queue?


    Thanks,

    Matt
    Depending on what you use for mail server software (sendmail, iMail, Post.Office), you can do a couple things. With sendmail it's pretty easy to come up with a script to run parse the messages in the queue and anything with "nobody@*.*" you just rm out of existance. You can effectively do the same for most other mail programs on Unix.
    Jason Murdock

  3. #3
    Since cpanel uses Exim, you can setup vfilter rules in /etc/vfilters/domainname.com to kill any email which contains certain variables.

    Example:

    if $header_from: contains "nobody" or
    $header_subject: contains "return to sender"
    then
    save /dev/null
    endif

    You can also reduce the time frozen messages are kept in the mail queue from 7 days to x days.

  4. #4
    Join Date
    Aug 2002
    Location
    DC
    Posts
    3,635

  5. #5
    Join Date
    Aug 2002
    Location
    DC
    Posts
    3,635
    I tried creating server1.domain1.com with that example (and a modified version of it), but it didn't work. Any other suggestions?

    - Matt

  6. #6
    Join Date
    Aug 2002
    Location
    DC
    Posts
    3,635
    Just redirect nobody's mail to /dev/null

    -Nick
    Well, that solves it!

Posting Permissions

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