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.orgwill be used for example.
General instruction
- Set
domainparameter. Add following line tosympa.conf(Note: replacemail.example.org):domain mail.example.orgAlso, if path of
sendmailexecutable file is differ from the default value ofsendmailparameter,/usr/sbin/sendmail, define it. For example:sendmail /usr/lib/sendmail -
Edit sendmail.cf (Note: replace
$SYSCONFDIRand$SENDMAIL_ALIASESbelow):- Add
AliasFilelines 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_FILEmacro:define(`ALIAS_FILE', `(...exisitng value...),$SYSCONFDIR/aliases.sympa.sendmail,$SENDMAIL_ALIASES')then recompile sendmail.cf.
- Add
- Save following excerpt as
aliases.sympa.sendmailfile in$SYSCONFDIRand edit it as you prefer (Note: replace$LIBEXECDIRandmail.example.orgbelow):# Robot 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 - Create empty
$SENDMAIL_ALIASESfile (Note: replace$SENDMAIL_ALIASESbelow):touch $SENDMAIL_ALIASES chmod 640 $SENDMAIL_ALIASES chown sympa:sympa $SENDMAIL_ALIASESthen create alias databases:
# newaliases - Restart Sendmail.