Jump to content

Como bloquear portas de entrada e saída de e-mails em ubuntu?


Claudio

Recommended Posts

3 horas atrás, Claudio disse:

Olá senhores,

Preciso fazer com que determinado vps não receba e não envie mais e-mails. Como posso bloquear a saída de e-mails em Ubuntu?

 

Obg

Só parar o serviço ou desinstalar. Agora se quer deixar instalado caso futuramente precise, então bloqueia a entrada e saída na porta 25.

Gerenciamento e otimização de servidores: Centos, Debian, Ubuntu, AlmaLinux, Cpanel e VestaCP.
Cloud otimizado e otimização para: Wordpress.
Virtualização: Implementação e gerenciamento Virtualizor, Proxmox, Openstack e VMware.

Link to comment
Share on other sites

# service maild stop 

ou 

 

# iptables  -A INPUT -p tcp --destination-port 25 -j DROP

# iptables  -A INPUT -p udp --destination-port 25 -j DROP

# iptables  -A INPUT -p tcp --destination-port 587 -j DROP
# iptables  -A INPUT -p udp --destination-port 587 -j DROP

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

Do you agree with our terms?