Skip to Content.
Sympa Menu

Configure mail server: Sendmail

Requirements

General instruction

  1. Set domain parameter. Add following line to sympa.conf (Note: replace mail.example.org):

    domain mail.example.org
    

    Also, if path of sendmail executable file is differ from the default value of sendmail parameter, /usr/sbin/sendmail, define it. For example:

    sendmail /usr/lib/sendmail
    
  2. Edit sendmail.cf (Note: replace $SYSCONFDIR and $SENDMAIL_ALIASES below):

    • Add AliasFile lines to sendmail.cf:

      O AliasFile=$SYSCONFDIR/aliases.sympa.sendmail
      O AliasFile=$SENDMAIL_ALIASES
      
    • Or, if you are generating sendmail.cf by "cf" package, edit sendmail.mc to add paths to argument of ALIAS_FILE macro:

      define(`ALIAS_FILE', `(...exisitng value...),$SYSCONFDIR/aliases.sympa.sendmail,$SENDMAIL_ALIASES')
      

      then recompile sendmail.cf.

  3. Save following excerpt as aliases.sympa.sendmail file in $SYSCONFDIR and edit it as you prefer (Note: replace $LIBEXECDIR and mail.example.org below):

    # Service aliases for Sympa.
    sympa:                 "| $LIBEXECDIR/queue sympa@mail.example.org"
    listmaster:            "| $LIBEXECDIR/queue listmaster@mail.example.org"
    bounce+*:              "| $LIBEXECDIR/bouncequeue sympa@mail.example.org"
    abuse-feedback-report: "| $LIBEXECDIR/bouncequeue sympa@mail.example.org"
    sympa-request:         postmaster
    sympa-owner:           postmaster
    #listserv:             sympa
    #listserv-request:     sympa-request
    #majordomo:            sympa
    #listserv-owner:       sympa-owner
    
  4. Create empty $SENDMAIL_ALIASES file (Note: replace $SENDMAIL_ALIASES below):

    touch $SENDMAIL_ALIASES
    chmod 640 $SENDMAIL_ALIASES
    chown sympa:sympa $SENDMAIL_ALIASES
    

    then create alias databases:

    # newaliases
    
  5. Restart Sendmail.

Top of Page