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.

Configure exim to stop sending mail to yahoo

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

  1. discovery

    discovery Active Member

    Joined:
    Nov 11, 2008
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    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:
    18
    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 ?
     
  3. discovery

    discovery Active Member

    Joined:
    Nov 11, 2008
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    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:
    119
    Likes Received:
    0
    Trophy Points:
    16
    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