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.

get blocked email back?

Discussion in 'E-mail Discussions' started by pats, Mar 17, 2003.

  1. pats

    pats Well-Known Member

    Joined:
    Mar 13, 2002
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    My client put a block on certain word, but realised today some important email has been blocked due to his filter.

    Any way to check for his email and get it back or at least get the contents for him?

    Thanks
     
  2. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    I know this is a VERY old thread, but does anyone know a way of doing this ? - Or at least checking if an incoming email has been blocked.

    Thanks in advance,
    Daniel
     
  3. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    Details of whether any action has been taken due to a filter or forwarder can be found in your mail logs, commonly at /var/log/exim_mainlog.

    Your logs will most likely be rotated on a weekly basis and so you might not find what you are looking for in the current logs.
     
  4. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for your reply.

    Is there a quick way to search that file for the senders email address ???

    Also, if I do find it in the logs, is there anyway at all to resurect it ?

    Thanks again
    Daniel
     
  5. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    From root shell:

    Code:
    cat /var/log/exim_rejectlog | grep sender@example.com
    will return all lines containing sender@example.com

    You may also have previous weeks' archives at:
    Code:
    /var/log/exim_rejectlog.1
    /var/log/exim_rejectlog.2
    /var/log/exim_rejectlog.3
    /var/log/exim_rejectlog.4
    /var/log/exim_rejectlog.1.gz
    /var/log/exim_rejectlog.2.gz
    /var/log/exim_rejectlog.3.gz
    /var/log/exim_rejectlog.4.gz
    The first four would be present if your rotated logs aren't gzipped, the second four then would be present if your rotated logs are gzipped. If you haven't fiddled around with the logrotate configuration, you'd most likely have the ungzipped archives if anything.

    Not really.

    If you're running MailScanner and have whole messages archived for X days and this concerns a message less than X days old, you may have a copy of the whole message on the server.

    In either case, searching for filenames containing the message ID (which will be returned with the above 'cat' command) would reveal any useful files.

    Code:
    locate -u
    locate messageID
    The first line will update your slocate database (just to be sure) and the second command will return a list of files containing the messageID in the filename.

    The message ID will be an alphanumeric string with some hyphens here and there, for example 1Ffgxm-000KaD-17.
     
  6. SageBrian

    SageBrian Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    415
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    NY/CT (US)
    cPanel Access Level:
    Root Administrator
    Mailscanner with Mailwatch does this perfectly.

    You can search for any emails, and release them if they got caught by the filters.

    Check with Chirpy if you don't have it setup. Worth every penny.
     
  7. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    Mailwatch seems to be exactly what I am looking for.

    Anyone have a 'How-To' guide to install this myself ?

    Thanks in advance,
    Daniel
     
  8. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    Anyone have a 'How-to' for installing this on cpanel ?

    Thanks
    Daniel
     
  9. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
  10. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for the reply.

    Unfortunately those instructions seem to be for 'Mailscanner', rather than 'Mailwatch for Mailscanner'.

    Thanks
    Daniel
     
  11. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
  12. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    Thanks - That looks fairly straight forward, but it makes no mention of cpanel - I am concerned that installing this may interfere with cpanel in some way ? :(
     
  13. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It shouldn't interfere with cPanel if you install it, but you do have to be careful to not mess up the exim file ownerships and permissions. It's a bit tricky getting it working securely on a cPanel server, which is why we run it from within WHM.
     
  14. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    Hi Chirpy,

    Thanks for your reply.

    I may give it a go - The instructions sound fairly straight forward.

    Thanks again,
    Daniel
     
Loading...

Share This Page