> I found a sendmail entry in /etc/rc.tcpip , I commented and rebooted
> the server . Then sendmail was "inoperative" .. Is this right way of
> disabling ?
That's fine. If lssrc shows it inoperative, excellent.
> Also how to disable mailx permanently ?
That you'd have to do via filesystem permissions, ie: chmod 000
/usr/bin/mailx.
AIX runs sendmail and accepts mail by default. I've found it
advantageous at some customers to tell sendmail to bind port 25 to
localhost only, and forward all mail to a SMTP relay. Then local mail
commands can send mail normally to internal email addresses, and
you'll pass network vulnerability scans because you aren't hosting an
open sendmail port.
Original Message:
Sent: 2/12/2021 1:44:00 AM
From: Nag N
Subject: RE: how to disable mail services completely on AIX 7.x systems
I found a sendmail entry in /etc/rc.tcpip , I commented and rebooted the server . Then sendmail was "inoperative" .. Is this right way of disabling ?
Also how to disable mailx permanently ?
------------------------------
Nag N
------------------------------
Original Message:
Sent: Fri February 12, 2021 01:14 AM
From: Nag N
Subject: how to disable mail services completely on AIX 7.x systems
Can someone respond how to disable sendmail and mailx permanently on AIX 7.x server.
I do not see any entry for sendmail in inittab or statup script in /etc/rc.d , how do I disable both sendmail and mailx and it should not start upon reboot.
--> lssrc -a|grep send
sendmail mail 5177776 active
Thank you very much
Nag
------------------------------
Nag N
------------------------------