How to block one local domain from using SMTP

ccccanada

Well-Known Member
Jan 17, 2003
279
0
166
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:
 

NetX

Well-Known Member
Jun 18, 2003
177
0
166
Edit the file /etc/localdomains and delete the domain.

cPanel.net Support Ticket Number:
 

ccccanada

Well-Known Member
Jan 17, 2003
279
0
166
Actually that also stops the POP function of the domain.

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

Thanks
 
Last edited:

ccccanada

Well-Known Member
Jan 17, 2003
279
0
166
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:
 

ccccanada

Well-Known Member
Jan 17, 2003
279
0
166
Originally posted by ccccanada
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:
I was wrong now i get an error when checking the Mail Queue.

Any help youd be appreciated.

cPanel.net Support Ticket Number:
 

d-woo

Well-Known Member
Aug 9, 2003
88
0
156
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)?
 

NNNils

Well-Known Member
Sep 17, 2002
580
0
166
I want to know this too.

Checked several threads on this forum, but nothin works.

Anyone?