The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Stop Mailer-Daemon bounced messages from collecting

Discussion in 'E-mail Discussions' started by atomjax, Aug 3, 2006.

  1. atomjax

    atomjax Member

    Joined:
    Sep 4, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Some users on my server set an out of office message for when they go out of town. When a spammer hits their address the mailer daemon tries to send the out of office reply but it fails of course. This generates an e-mail in the main account box. Like this:

    -----------------------------------------------------------------------------------------------------
    From MAILER-DAEMON Tue Jul 04 09:57:56 2006
    Return-path: <>
    Envelope-to: SNIP
    Delivery-date: Tue, 04 Jul 2006 09:57:56 -0700
    Received: from mailnull by SNIP with local (Exim 4.52)
    id 1FxoDk-0003Tp-Dm
    for SNIP Tue, 04 Jul 2006 09:57:56 -0700
    X-Failed-Recipients: frhkjjbd@telect.com
    Auto-Submitted: auto-generated
    From: Mail Delivery System SNIP
    Subject: Mail delivery failed: returning message to sender
    Message-Id:SNIP
    Date: Tue, 04 Jul 2006 09:57:56 -0700
    Status: O
    X-Status:
    X-Keywords:
    X-UID: 233

    This message was created automatically by mail delivery software.

    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed:

    frhkjjbd@telect.com
    SMTP error from remote mail server after RCPT TO:<frhkjjbd@telect.com>:
    host mail.telect.com [66.193.39.251]: 501 5.7.1 This system is not configured to relay mail (r) from <SNIP> to <frhkjjbd@telect.com> for SNIP

    ------------------------------------------------------------------------------------------------------------------------------

    First off why are these bounces collecting in the main account mail box? Second how do I stop it? I don't want these messages collecting in the main account mail box. The box fills up and the users start to get mailbox quota warnings even though their mail box is empty.


    Thanks

    J
     
    #1 atomjax, Aug 3, 2006
    Last edited: Aug 3, 2006
  2. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    theres nothing you can do it about it without dropping mail suspected as being spam
     
  3. liwiplus

    liwiplus Member

    Joined:
    Jul 22, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    You can block the spam using email filtering.
     
  4. atomjax

    atomjax Member

    Joined:
    Sep 4, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I think you are missing my point. The spam is not the issue. It's the fact that cpanel dumps the bounced messages into the main account mail box when they were sent from a user. Why wouldn't the bounce just go back to the user so they could manage the mail properly? Instead it just collects in the main account box and gives false quota alerts to the user.

    What if I just did a chmod 000 on inbox for the main account mailbox? I don't want e-mail going to that account anyways.

    Thanks

    J
     
  5. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    18
    Why is the return path empty? I think that is the reason it is going to the main account, as it has no idea where to go. See if all the ones getting in the main account have an empty return path.
     
  6. atomjax

    atomjax Member

    Joined:
    Sep 4, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Nice catch Lloyd! I think you are correct on the return path idea. Although its a problem with the orginal message sent. Here is the rest of the message:


    ------ This is a copy of the message, including all the headers. ------

    Return-path: <mainaccount@server>
    Received: from mainaccount by server with local (Exim 4.52)
    id 1FxoDj-0003Tm-R1
    for frhkjjbd@telect.com; Tue, 04 Jul 2006 09:57:55 -0700
    To: "Paul Rock" <frhkjjbd@telect.com>
    X-Autorespond: EXTRA TIME
    X-Loop: "Paul Rock" <frhkjjbd@telect.com>
    From: user@server
    Content-type: text/plain; charset=us-ascii
    Subject: Out of Office Until July 10
    Message-Id: <snip>
    Date: Tue, 04 Jul 2006 09:57:55 -0700

    Paul Rock,

    I will out of the office on vacation until Monday, July 10.


    The main account is the user that sends out the "out of office" notice. So when it bounces it goes back the main account instead of the user. I assume the reason it does this is becasue cpanel requires the main account to send the notice. I wonder if this can be changed.
     
Loading...

Share This Page