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
-
Set
domain
parameter. Add following line tosympa.conf
(Note: replacemail.example.org
):domain mail.example.org
Also, if path of
sendmail
executable file is differ from the default value ofsendmail
parameter,/usr/sbin/sendmail
, define it. For example:sendmail /usr/lib/sendmail
-
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.
-
-
Save following excerpt as
aliases.sympa.sendmail
file in$SYSCONFDIR
and edit it as you prefer (Note: replace$LIBEXECDIR
andmail.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
-
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
-
Restart Sendmail.