EnglishFrenchSpanish

OnWorks favicon

aliascheck - Online in the Cloud

Run aliascheck in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command aliascheck that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


aliascheck - check for existence of mail alias

SYNOPSIS


aliascheck [--nopwd] name [alias-file]

aliascheck --map [--case] name map-file

aliascheck --qmail [--nopwd] name [alias-user]

DESCRIPTION


aliascheck checks whether name is a valid email alias or a user in the password file. It
converts name to lower-case before performing any of the checks. If the alias or user
exists, aliascheck exits with status 0 and outputs what the address resolves to. If the
alias does not exist, aliascheck exits with status 1. If aliascheck cannot determine the
validity of name because of some system error, it exits with status 2.

aliascheck can run in three different modes--sendmail alias mode (the default), sendmail
map mode, and qmail mode. In sendmail alias mode the second argument, alias-file, is the
name of the sendmail alias file, typically /etc/mail/aliases.db. If no second argument is
supplied, aliascheck first checks for the existence of /etc/mail/aliases.db, then for the
existence of /etc/aliases.db, then finally exits with status 2 if neither file exists.
When an alias is found, aliascheck outputs the value of that alias in the alias database.

When aliascheck is invoked with --map, it looks up name in map-file, which should be a
database created with sendmail's makemap(8) utility. Note that maps have a slightly
different and incompatible format from that of alias files. Use the --case argument to
prevent name from being folded to lower-case before it is looked up in the database. Note
that --map implies the --nopwd option.

When aliascheck is given the argument --qmail, it runs in qmail mode. In this case, the
second argument, alias-user, specifies the user under which qmail processes mail aliases.
aliascheck will check this user's home directory for files named .qmail-XXX for various
appropriate suffixes XXX. On success, it outputs the full pathname of the appropriate
file.

If aliascheck cannot find an alias, it also checks the password file, and exits 0 if it
can find name there. If name is found, aliascheck also outputs name (in lower-case) to
standard output before exiting. (This is useful for Mail Avenger, because asmtpd does not
recognize users with invalid shells or UID 0, while MTAs typically do.) To suppress
password file checking, supply the --nopwd argument to aliascheck.

EXAMPLES


If you are using Mail Avenger in conjunction with a sendmail installation, you might want
to put the following code in your /etc/avenger/unknown file to reject mail for unknown
users who do not show up in the alias file.

aliascheck "$RECIPIENT_LOCAL" /etc/mail/aliases.db > /dev/null
case "$?" in
0)
# Fall through to default checks
;;
1)
reject unknown user
;;
*)
# Probably safest to do nothing, but could also
# defer the mail with the following command:
#
#defer Temporary error processing alias file
;;
esac

If you have qmail instead of sendmail, assuming the qmail alias user is called "alias",
you would change the first line in the previous example to:

aliascheck --qmail "$RECIPIENT_LOCAL" alias > /dev/null

Use aliascheck online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Eclipse Checkstyle Plug-in
    Eclipse Checkstyle Plug-in
    The Eclipse Checkstyle plug-in
    integrates the Checkstyle Java code
    auditor into the Eclipse IDE. The
    plug-in provides real-time feedback to
    the user about viol...
    Download Eclipse Checkstyle Plug-in
  • 2
    AstrOrzPlayer
    AstrOrzPlayer
    AstrOrz Player is a free media player
    software, part based on WMP and VLC. The
    player is in a minimalist style, with
    more than ten theme colors, and can also
    b...
    Download AstrOrzPlayer
  • 3
    movistartv
    movistartv
    Kodi Movistar+ TV es un ADDON para XBMC/
    Kodi que permite disponer de un
    decodificador de los servicios IPTV de
    Movistar integrado en uno de los
    mediacenters ma...
    Download movistartv
  • 4
    Code::Blocks
    Code::Blocks
    Code::Blocks is a free, open-source,
    cross-platform C, C++ and Fortran IDE
    built to meet the most demanding needs
    of its users. It is designed to be very
    extens...
    Download Code::Blocks
  • 5
    Amidst
    Amidst
    Amidst or Advanced Minecraft Interface
    and Data/Structure Tracking is a tool to
    display an overview of a Minecraft
    world, without actually creating it. It
    can ...
    Download Amidst
  • 6
    MSYS2
    MSYS2
    MSYS2 is a collection of tools and
    libraries providing you with an
    easy-to-use environment for building,
    installing and running native Windows
    software. It con...
    Download MSYS2
  • More »

Linux commands

  • 1
    a56
    a56
    A56 - Motorola DSP56001 assembler ...
    Run a56
  • 2
    a68g
    a68g
    a68g - Algol 68 Genie, an Algol 68
    compiler-interpreter ...
    Run a68g
  • 3
    copt
    copt
    copt - peephole optimizer SYSNOPIS:
    copt file.. DESCRIPTION: copt is a
    general-purpose peephole optimizer. It
    reads code from its standard input and
    writes an ...
    Run copt
  • 4
    copydatabase-1.3
    copydatabase-1.3
    copydatabase - Perform a
    document-by-document copy of one or more
    Xapian databases ...
    Run copydatabase-1.3
  • 5
    fweelin
    fweelin
    freewheeling � live looping musical
    instrument ...
    Run fweelin
  • 6
    fwexec
    fwexec
    fwexec - program to upload and rexecute
    image file to a connected NXT device ...
    Run fwexec
  • More »

Ad