AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

Blocking all out going mails using sendmail

  • 1.  Blocking all out going mails using sendmail

    Posted Wed November 25, 2009 04:49 AM

    Originally posted by: satyendrac


    Hi guys,
    I have a farm of AIX servers (pre-production & production) which send mails to mail server say XYZ.
    I want to block all the mails from pre-production except for one mail ID say abcd@sa.com.
    On all AIX servers I have sendmail but daemon is not running and I use mail command to send the mail.
    This mail command uses sendmail.cf.

    Now I tried couple of things
    creating virtusertable/access but its not working at all.

    Can some one please help me on this ..

    Thanks a lot in advance guys.


  • 2.  Re: Blocking all out going mails using sendmail

    Posted Wed November 25, 2009 06:00 PM

    Originally posted by: SystemAdmin


    Sendmail does not have to be running in order to send e-mail. I am not sure whether the mail/mailx command uses sendmail or telnet to send an e-mail; but, whichever process is used, it is only temporary and does not remain in the background.

    There are several options available to you; you should decide which is more appropriate for your circumstances.

    Either:
    1. Change the permissions of /usr/bin/mail to 744 to stop general usage.
    2. Use an ACL to permit usage of /usr/bin/mail by selected users.

    or
    1. Change the permissions of /usr/bin/mail to 744 to stop general usage.
    2. Copy /usr/bin/mail to user's bin directory and change permissions back to 766

    or
    1. Rename /usr/bin/mail to mail.bck
    2. Write a scipt to store in /usr/bin/mail, so that calls to mail use mail.bck for specifiec users only.

    Good luck!
    George