Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On a linux box what are all the possible services of sending a mail,i can think of the service like sendmail,Qmail..

And how to restrict all possible ways of sending out mails from a linux box (RHEL5)

share|improve this question

migrated from superuser.com Mar 27 '11 at 3:49

This question came from our site for computer enthusiasts and power users.

1 Answer 1

up vote 0 down vote accepted

The list of potential ways to send mail out is too long to list here. The standard programs are sendmail, exim, postfix, and qmail. There are a number of SMTP relay programs which can be used to send mail. Many languages have library routines that can be used to send mail as well.

You can may it difficult by creating iptables rules to prevent access to the SMTP related ports; SMTP (25), SSMTP (465), and Submission (587). Blocking these ports will shutdown normal routes for email transmission.

Once you have blocked the direct access to mail servers there are a wide variety of other ways to send mail including WebMail, port forwarding, and remote sessions. These routes are not normally used by any of the programs or languages. However, if someone wants to subvert efforts to block email transmission they may use these techniques.

The only surefire way to prevent sending mail out from a linux box is to disconnect it from the network and keep it disconnected. This also applies to other Operating Systems.

share|improve this answer
    
@BillThor:Is it possible to prevent sending mails from languages and the email service that u have mentioned –  Hulk Mar 26 '11 at 19:49
    
@Hulk: Blocking the ports will prevent the languages and email services from talking to any external email servers directly. This will effectively block normal cases. A determined person can work around this. –  BillThor Mar 26 '11 at 19:53
    
K thanks........... –  Hulk Mar 26 '11 at 20:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.