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.

How to block one local domain from using SMTP

Discussion in 'E-mail Discussions' started by ccccanada, Jun 26, 2003.

  1. ccccanada

    ccccanada Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    Hello!

    Does anyone know how I can block one of the hosts on my server from using SMTP to send emails?

    Thanks

    cPanel.net Support Ticket Number:
     
  2. NetX

    NetX Well-Known Member

    Joined:
    Jun 18, 2003
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
    Edit the file /etc/localdomains and delete the domain.

    cPanel.net Support Ticket Number:
     
  3. ccccanada

    ccccanada Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    Actually that also stops the POP function of the domain.

    Do you have any idea how to just turn off the SMTP function??

    Thanks
     
    #3 ccccanada, Jun 29, 2003
    Last edited: Jun 29, 2003
  4. ccccanada

    ccccanada Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    ok i have found the answer

    just leave localdomains alone and un-comment the following in exim.conf.
    sender_host_reject = +allow_unknown:lsearch*;/etc/spammers

    then enter the domain-name in the /etc/spammers file.

    Now the domain can receive emails but can't send using SMTP server.

    Thanks for your help.

    cPanel.net Support Ticket Number:
     
  5. ccccanada

    ccccanada Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    I was wrong now i get an error when checking the Mail Queue.

    Any help youd be appreciated.

    cPanel.net Support Ticket Number:
     
  6. d-woo

    d-woo Well-Known Member

    Joined:
    Aug 9, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Did you ever get an answer on how to turn off one domain from using SMTP, but yet allowing them to use POP (incoming)?
     
  7. ck@phptalk

    ck@phptalk Active Member

    Joined:
    Nov 6, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Earth
    Hello!

    Iam interstd in the answer. Already tried /etc/spammers/ advise but didnt work :(
     
  8. NNNils

    NNNils Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    580
    Likes Received:
    0
    Trophy Points:
    16
    I want to know this too.

    Checked several threads on this forum, but nothin works.

    Anyone?
     
Loading...

Share This Page