[CentOS] question on sendmail.mc file

Wed May 5 10:57:00 UTC 2010
Alexander Dalloz <ad+lists at uni-x.org>

> I tried to set in sendmail.mc file at the LAST line
> define(`LUSER_RELAY', `local:unknownuser') dnl
> I did service sendmail restart and got an error on a completely
> different line.
> -
> as a thought I deleted that line and put it on line 2 of the sendmail.mc
> file.
> re-ran service sendmail restart and now it worked. I changed nothing else.
>
> Is there something special about the placement of this command???
>
> Thanks,
>
> Jerry

There is nothing special with the LUSER_RELAY definition, but in general
the order of the statements is important. Please see

http://www.sendmail.org/documentation/configurationReadme

The general rules are that the order should be:

	VERSIONID
	OSTYPE
	DOMAIN
	FEATURE
	local macro definitions
	MAILER
	LOCAL_CONFIG
	LOCAL_RULE_*
	LOCAL_RULESETS

Regards

Alexander