Skip to content

Latest commit

 

History

History
87 lines (73 loc) · 2.92 KB

configure-mail-server-sendmail.md

File metadata and controls

87 lines (73 loc) · 2.92 KB
title prev up next
Configure mail server: Sendmail
configure-system-log.md
configure-mail-server.md
configure-mail-server.md#tests

Configure mail server: Sendmail

Requirements

  • Sendmail is installed and confirmed to work.

  • A mail domain name for the mailing list service. See also "Requirements".

    In the instructions below, mail.example.org will be used for example.

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 [email protected]"
    listmaster:            "| $LIBEXECDIR/queue [email protected]"
    bounce+*:              "| $LIBEXECDIR/bouncequeue [email protected]"
    abuse-feedback-report: "| $LIBEXECDIR/bouncequeue [email protected]"
    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.