sendmail


Adapt an existing configuration

/etc/sendmail.cf should contain the lines
# "Smart" relay host (may be null)
DSsmtp.gsi.de                        # obsolete: DSlxmta1.gsi.de
# who I send unqualified names to (null means deliver locally)
DRsmtp.gsi.de
# hub host (to which all mail is sent)
DH
# masqueradings:
DMgsi.de
/etc/aliases should contain a redirection of root-mails to some natural admin person, like e.g.:
root: Mr.Admin@company.de

(obsolete as of Mar-2007):

To access mail server via nfs in /etc/filesystems
/var/spool/mail:
        dev             = "/var/spool/mail.common"
        vfs             = nfs
        nodename        = clri6a
        mount           = false
        type            = clri6a
        options         = bg,hard,intr
        account         = false
and in /etc/rc.local
mount -t clri6a    

Create a new configuration

(AIX 4.3, to close open relay)
  1. cd /usr/samples/tcpip/sendmail/
    
  2. Prepare a file cf/aix433.cf
    divert(0)dnl
    OSTYPE(aix433)dnl
    DOMAIN(generic)dnl
    # all outgoing mail to SMART_HOST
    define(`SMART_HOST', `rzserv1')dnl
    # all incoming mail to MAIL_HUB
    define(`MAIL_HUB', `rzserv1')dnl
    # all sent mail masqueraded to be from this host
    MASQUERADE_AS(gsi.de)dnl
    # masquerade the envelope of the mails as well
    FEATURE(`masquerade_envelope')dnl
    # mailers used, always declare at the end of the file
    MAILER(local)dnl
    MAILER(smtp)dnl
    MAILER(uucp)dnl
    
  3. m4 m4/cf.m4 cf/aix433.cf > /tmp/sendmail.cf
    
  4. In /tmp/sendmail.cf comment out
     
       Fw/etc/sendmail.cw
       FR-o /etc/mail/relay-domains
    
  5. finally
    cp /tmp/sendmail.cf /etc/sendmail.cf
    refresh -s sendmail
    

Last update: 14-May-2007, M.Kraemer

Impressum Data privacy protection