How to set sendmail in AIX
Check if sendmail is running on the AIX Server
Run the following commands:
#lssrc -s sendmail
#ps -ef |grep sendmail
Edit the sendmail.cf and you can add in the line DS
#vi /etc/sendmail.cf
Change:
#DwYourHostName
If the sendmail is not running you can start the service with the following command
#startsrc -s sendmail -a "-bd -q30m"
Validate that sendmail is running with a ps command
#ps -ef |grep sendmail
This should echo:
root 5404 1 0 13:22:42 - 0:00 sendmail: accepting connections on port 25
- Ensure that the ‘sendmail’ daemon is started on reboot, comment in the ‘sendmail’ startup line in ‘/etc/rc.tcpip’
#vi /etc/rc.tcpip
Comment in the following line:
start /usr/lib/sendmail "$src_running" "-bd -q${qpi}"
- Create an ‘/etc/netsvc.conf’ file, this is to tell sendmail to use ‘/etc/hosts’ for DNS
#vi /etc/netsvc.conf
Add the following:
hosts=local,bind4
- Change the permissions on the ‘/etc/netsvc.conf’ file to lock down root only access:
#chmod 600 /etc/netsvc.conf
Check if sendmail is running on the AIX Server
Run the following commands:
#lssrc -s sendmail
#ps -ef |grep sendmail
Edit the sendmail.cf and you can add in the line DS
#vi /etc/sendmail.cf
Change:
#DwYourHostName
If the sendmail is not running you can start the service with the following command
#startsrc -s sendmail -a "-bd -q30m"
Validate that sendmail is running with a ps command
#ps -ef |grep sendmail
This should echo:
root 5404 1 0 13:22:42 - 0:00 sendmail: accepting connections on port 25
- Ensure that the ‘sendmail’ daemon is started on reboot, comment in the ‘sendmail’ startup line in ‘/etc/rc.tcpip’
#vi /etc/rc.tcpip
Comment in the following line:
start /usr/lib/sendmail "$src_running" "-bd -q${qpi}"
- Create an ‘/etc/netsvc.conf’ file, this is to tell sendmail to use ‘/etc/hosts’ for DNS
#vi /etc/netsvc.conf
Add the following:
hosts=local,bind4
- Change the permissions on the ‘/etc/netsvc.conf’ file to lock down root only access:
#chmod 600 /etc/netsvc.conf
Comments