Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    block users to send mail locally

    we are using sendmail as the local mail server. i want to block users to not to send mail anywhere on the net except to the local domain. though they should be able to send mail to each other.plz help


  2. #2
    Linux Enthusiast
    Join Date
    Jun 2002
    San Antonio
    This will make it so no mail will go out (webforms, local users, mail relaying through the machine):

    /sbin/iptables -I INPUT -p tcp --destination-port 25 -j DENY


    I respectfully decline the invitation to join your delusion.

  3. #3
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Seattle, Washington
    I am assuming that you have a seperate mail server that goes out to the internet. If that is the case don't allow that machine to relay for your internal machine.

  4. $spacer_open
  5. #4

    To Unblock User from sending mail using /etc/pam.d/

    Hi All ,

    I have used one tip given in this forum to block the user from sending mails using the file /etc/nomail4u and making necessary changes in /etc/pam.d/smtp.

    but the problem is after removing the same from that I am not able to unblock the user .

    I want him to send Email again.

    I don't want to use /etc/mail/access file

    As I need automated blocking and unblocking of the users from sending mails.

    Pls Revert.

    Sachin Rajput

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts