(Under construction)

Sendmail configuration

/etc/sendmail.cf should contain the lines
# "Smart" relay host (may be null)
DSsmtp.gsi.de                        
# who I send unqualified names to (null means deliver locally)
DRsmtp.gsi.de
# hub host (to which all mail is sent)
DH
# obsolete masqueradings:
#DM
#DMgsi.de

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: 24-Jul-2006, M.Kraemer