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.

:fail: :blackhole: mistyped email address

Discussion in 'E-mail Discussions' started by pierceddude, Apr 30, 2004.

  1. pierceddude

    pierceddude Member

    Joined:
    Mar 17, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Deerfield Beach, FL
    I have finally taken the plunge and opted to do a global update on all my valiases files to send catch-all mail to :blackhole: rather than :fail:

    I've been reluctant to make that change for fear someone might actually type an address incorrectly and I'd like to give them the opportunity to realize their mistake.

    BUT I also realize I'm much more likely to have a mail queue filled up with spam that will never make it back to a sender.

    So here's a thought, maybe someone can help me out. If the concept is valid, hopefully someone a little more versed in programming can assist with the code.

    To be nice, we leave :fail: as a default. A legitimate user types an email address incorrectly. Exim generates a reply, user unknown. No problem here...

    Second senario, spam comes in, user unknown reply to address isn't valid... mail hung up in queue for what seems an eternity.

    Possible solution? Assuming that the majority of the time a bounced message to a legit user is not going to sit in queue, could we not use a script and cron to frequently scan the queue for messages containing a string common to a bounced message for an unknown user?

    My guess that it at least gives Exim one attempt to try to shoot a message back. If it fails, we at least tried to notify the user.

    I would guess you could even get a little more creative. Keep your time to flush old messages to something like 4 days but look for the string mentioned above and match the current time to the time the message was received and flush anything over say 2 hours?
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Sounds like what you want is a cleanmailqueue script. It's one of my planned scripts for the near future, but currently all script work is on hold because I'm moving to another city next week or the week after. Right now I'm pretty much spending full time preparing for the move.

    By the end of May, I will have that script, and others, ready.
     
  3. DevilBear

    DevilBear Member

    Joined:
    Oct 20, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Mail queue?

    It's my understanding that :fail: has Exim returning a 550 error during the SMTP session... the spammer's mail doesn't even enter your system.

    Does anyone know, btw, how to tell WHM that all new accounts should have :fail: for the catch all?
     
  4. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    Or else our money back? :p

    Good luck with your move :)
     
  5. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    If requested. ;)

    Thanks. I'm heading over to London area May 10 and staying at a motel for a week to look for a decent but affordable house to rent.
     
Loading...

Share This Page