Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Configure exim to stop sending mail to yahoo

Discussion in 'E-mail Discussion' started by discovery, Nov 13, 2009.

  1. discovery

    discovery Active Member

    Joined:
    Nov 11, 2008
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    51
    Hi

    What is the best method to instruct exim to reject all emails sent to yahoo domains?

    I have some forums on my server and lot of users have yahoo emails, so all notifications, PM emails and others are just staying on queue beeng rejected from yahoo.

    Also I want to reject all emails from yahoo if possible.

    TKS.
     
  2. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    Out of curiosity have you tried to fix the problem rather then just disabling the emails to them?

    Have you setup domain keys + spf + rdns ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. discovery

    discovery Active Member

    Joined:
    Nov 11, 2008
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    51
    yes I do and I still want to block them

    so if you have a solution please help, if no let the others
     
  4. Zaf

    Zaf Well-Known Member

    Joined:
    Aug 22, 2005
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    166
    You may bounce or blackhole (delete) messages in the queue which have yahoo recipients, by one of the two in cron running every minute:

    Code:
    exiqgrep -r yahoo -i | xargs -n 1 exim -Mg
    Code:
    exiqgrep -r yahoo -i | xargs -n 1 exim -Mrm
    You may also create a yahoo.com and park other yahoo.xxx on the server and set default email to bounce or blackhole to achieve the same.

    But a slightly better solution would be to hack the Exim configuration to achieve this (not sure how, never tried it before).
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice