Check for space: lsvg rootvg
Grow with 100MB: chfs -a size=+100M /tmp
Remove the ADMCHG flag for that user from /etc/security/passwd
To add a mail relay server (smart host) to the Sendmail configuration file, edit the /etc/mail/sendmail.cf file, modify the DS line, and refresh the daemon:
# vi /etc/mail/sendmail.cf
DSsmtpgateway.xyz.com.au
# refresh -s sendmail
To log Sendmail activity, place the following entry in the /etc/syslog.conf file, create the log file, and refresh the syslog daemon:
# grep mail /etc/syslog.conf
mail.debug /var/log/maillog rotate time 7d files 4 compress
# touch /var/log/maillog
# refresh -s syslogd
source
.forward+: world writable directory:
The biggest surprise is likely to come from .forward and :include: files in unsafe directory paths (directory paths which are group or world writable). This is no longer allowed. This would mean that if user joe’s home directory was writable by group staff, sendmail would not use his .forward file. This behavior can be altered, at the possible expense of system security, by setting the DontBlameSendmail option. Items from these unsafe .forward and :include: files will be marked as unsafe addresses – the items can not be deliveries to files or programs. This behavior can also be altered via DontBlameSendmail.
I’ve set:
O DontBlameSendmail=forwardfileinunsafedirpath, forwardfileinunsafedirpathsafe
The first flag allows the forward file to be read, the second allows the items in the file to be marked as safe for file and program delivery.
How do I start/stop sendmail on AIX?
To start sendmail:
startsrc -s sendmail -a "-bd -q30m"
To stop sendmail:
stopsrc -s sendmail
To refresh sendmail:
refresh -s sendmail
Purging a sendmail mailqueue on AIX
# ps -ef | grep sendmail
# kill -9 SENDMAIL_PIDS
Then, stop sendmail cleanly (the commands depend of your OS. This one works only on IBM AIX).
# stopsrc -s sendmail
You may check the number of messages that are in the queue, which will give you an idea of the time it will take to process the queue:
# sendmail -bp
Check that there are no longer any sendmail processes running:
# ps -ef | grep sendmail
# kill -9 SENDMAIL_PIDS
Rename the current mailqueue to another directory:
# mv /var/spool/mqueue /var/spool/omqueue
Restart sendmail
# startsrc -s sendmail
0513-059 The sendmail Subsystem has been started. Subsystem PID is 62118
Now process the old queue (may take time, depending upon the number of messages to process):
# /usr/sbin/sendmail -oQ/var/spool/omqueue -q -v
Running /var/spool/omqueue/m7HKkOM60666 (sequence XXXX of XXXXX)
Running /var/spool/omqueue/m7HKkOM60666 (sequence XXXX+1 of XXXXX)...
etc...
Now, you may safely delete all messages in the old queue:
# rm -rf /var/spool/omqueue
Create a new mailqueue directory.
# mkdir /var/spool/mqueue
Stop and start sendmail:
# stopsrc -s sendmail
# startsrc -s sendmail
Kill all sendmail processes
for i in `ps -ef |grep sendmail|awk '{ print $2 }'`; do kill -9 $i; done
add to /etc/syslog.conf: mail.debug /var/log/mail user.debug /var/log/user kern.debug /var/log/kern syslog.debug /var/log/syslog daemon.debug /var/log/daemon auth.debug /var/log/secure local2.debug /var/log/sudo restart syslogd: [root@sys /] refresh -s syslogd 0513-095 The request for subsystem refresh was completed successfully.
Howto configure AIX syslogd (/etc/syslog.conf)
