Technical article 125328

newaliases failing with "/usr/lib/mail/aliases: line x: {alias}... cannot alias non-local names" on OpenServer using Sendmail 8.11.0

OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

Running the /usr/bin/newaliases command fails with the following error:

# /usr/bin/newaliases
/usr/lib/mail/aliases: line 14: MAILER-DAEMON... cannot
alias non-local names
/usr/lib/mail/aliases: line 15: Postmaster... cannot alias
non-local names
/usr/lib/mail/aliases: 0 aliases, longest 0 bytes, 0 bytes
total

Cause

One possible cause for this problem, is that the
/usr/lib/sendmail.cf file is set to use Version 6 or
higher.  This must be set to Version 5.

Solution

Edit the /usr/lib/sendmail.cf file and search for this section:

##########################################################
############
##########################################################
############
#####
#####           SENDMAIL CONFIGURATION FILE
#####
##########################################################
############
##########################################################
############
# level 5 config file format
V6
##################
#   local info   #
##################

In the above example, the /usr/lib/sendmail.cf file is set to use Version 6.

Change this to use level 5 config file format:

##########################################################
############
##########################################################
############
#####
#####           SENDMAIL CONFIGURATION FILE
#####
##########################################################
############
##########################################################
############
# level 5 config file format
V5
##################
#   local info   #
##################
The /usr/bin/newaliases command should now work.

From the Xinuos technical article database, record 125328. Reproduced with permission. The original is at www.sco.com/ta/125328, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.