Find the answer to your Linux question:
Results 1 to 4 of 4
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2004
    Posts
    29

    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

    Thanx

  2. #2
    Linux Enthusiast
    Join Date
    Jun 2002
    Location
    San Antonio
    Posts
    621
    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

    Best,

    Samuel
    I respectfully decline the invitation to join your delusion.

  3. #3
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    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.
    Mike

  4. #4
    Just Joined!
    Join Date
    Jul 2006
    Posts
    1

    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.


    Thanks
    Sachin Rajput
    HCL
    ===============

Posting Permissions

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