main

about me
pictures
links
events
sitemap
varia
woonkrediet
usage

Webdav
Grub
rpm4fc
aix
OnTrackDM6
VCDX

mirror rootvg
LPP package
sendmail
performance
clean wtmp
syslogd
LDAP

Currently employed @  

( clean clean )
  > main > varia > AIX > AIX sendmail config

Howto configure AIX sendmail with .mc files and m4

The following steps will guide you trough the setup of AIX sendmail via using the m4 mechanism.
This info is valid for AIX 4.3.3, AIX 5.1, AIX 5.2 and AIX 5.3.

First you need to install bos.net.tcp.adt, you can find this package on the AIX base media.

Once installed, goto the directory /usr/samples/tcpip/sendmail/cf. You will find here a file called aixsample.mc, use this file as a basis to configure your own sendmail.mc. Interesting extra features you can use are:

  • define(`SMART_HOST', `smtp.yourdomain.com')
  • define(`confPRIVACY_FLAGS',`authwarnings,novrfy,noexpn,restrictqrun')dnl

Make sure you add:

include(`/usr/samples/tcpip/sendmail/m4/cf.m4')
at the beginning of the file, to tell m4 where to find the cf.m4 macros.

Once you created the .mc file, run:

  • cd /usr/samples/tcpip/sendmail/cf
  • # make sure your .mc file is in this directory
  • m4 sendmail.mc >/etc/mail/sendmail.cf

You can now activate your new sendmail config via:

  • stopsrc -s sendmail
  • startsrc -s sendmail -a "-bd -q30m"

Make sure you created the needed hashes under /etc/mail, you can do this for example via:

cd /etc/mail
touch access domaintable mailertable virtusertable
for file in access domaintable mailertable virtusertable
        do
                makemap dbm /etc/mail/${file} < /etc/mail/${file}
                makemap hash /etc/mail/${file} < /etc/mail/${file}
done
touch /etc/mail/local-host-names
chmod 664 access* domaintable* mailertable* virtusertable*

Also make sure you afterwards manually run newaliases to verify there are no errors with the sendmail alias files.

Problems
Activate syslog for sendmail, you can do this by adding the following line to /etc/syslog.conf
  • mail.debug /tmp/debug
The touch the file /tmp/debug and restart syslogd:
  • touch /tmp/debug
  • refresh -s syslogd

Now just check the content of /tmp/debug when you do your sendmail tests

For other tests, "mail -v" is a very nice tip.

Copyright 1997 - 2009 Ramses Smeyers. All rights reserved