EnglishFrenchSpanish

OnWorks favicon

setforward - Online in the Cloud

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

This is the command setforward 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


setforward - create a forwarding database

SYNOPSIS


setforward cdb tmp

DESCRIPTION


setforward reads a table of forwarding instructions from its standard input. It converts
the table into a forwarding database. The forwarding database can be used by fastforward.

setforward writes the forwarding database to tmp; it then moves tmp to cdb. tmp and cdb
must be on the same filesystem.

If there is a problem creating tmp, setforward complains and leaves cdb alone.

The forwarding database format is portable across machines.

INSTRUCTION FORMAT


A forwarding instruction contains a target, a colon, a series of commands, and a
semicolon. Each command is a recipient address, owner address, external mailing list, or
program. Commands are separated by commas.

For example,

[email protected]: [email protected], [email protected];

says that mail for [email protected] should be forwarded to the recipient addresses
[email protected] and [email protected].

When setforward sees # it ignores all text from # to the end of the line:

# this is a comment

setforward ignores all other line endings, so you can split a forwarding instruction
across lines. It also ignores spaces and tabs. Exception: you can put a space (or tab or
comma or whatever) into a target or command by putting a backslash in front of it.
(However, NUL bytes are not permitted anywhere.)

TARGETS


When fastforward sees the incoming address [email protected], it tries three targets:
[email protected], @host.dom, and user@. It obeys the commands for the first target that it
finds. Target names are interpreted without regard to case.

All the commands for a single target must be listed in a single instruction. Exception:
an owner address can be listed in a separate instruction.

RECIPIENT ADDRESSES


If a command begins with an ampersand, setforward takes the remaining bytes in the command
as a recipient address:

[email protected]: &[email protected];

fastforward sends each incoming mail message to the recipient address. The recipient
address must include a fully qualified domain name. It cannot be longer than 800 bytes.

If a recipient address is itself a target in the forwarding table, fastforward will
recursively handle the instructions for that target. Note that @host.dom and user@
wildcards do not apply here; they apply only to the incoming address.

If a command begins with a letter or number, setforward takes the entire command as a
recipient address:

[email protected]: [email protected];

OWNER ADDRESSES


If a command begins with a question mark, setforward takes the remaining bytes in the
command as an owner address:

[email protected]: ?[email protected];

fastforward uses that address as the envelope sender for forwarded mail, so bounces will
go back to that address. (Normally, if a message is forwarded to a bad address, it will
bounce back to the original envelope sender.)

EXTERNAL MAILING LISTS


If a command begins with a dot or slash, setforward takes the entire command as the name
of a binary mailing list file created by setmaillist:

[email protected]: /etc/lists/sos.bin;

fastforward will read and obey the commands in that file. The file must be world-readable
and accessible to fastforward.

PROGRAMS


If a command begins with a vertical bar or exclamation point, setforward takes the rest of
the command as the name of a program to run:

dew@: |dew-monitor;

For a vertical bar, fastforward feeds the message to that program. An exclamation point
works the same way except that fastforward inserts $UFLINE, $RPLINE, and $DTLINE in front
of the message.

DUPLICATES


When fastforward is building the recipient list for a message, it keeps track of the
recipient addresses and external mailing lists it has used. If the same command shows up
again, it skips it. For example:

[email protected]: [email protected], [email protected];
[email protected]: [email protected], [email protected];
[email protected]: [email protected], [email protected];

A message to [email protected] will be sent to [email protected] only once. (This also means that
addresses in an internal forwarding loop are discarded.)

Exception: If a target has an owner address, commands for that target are considered
different from commands for ``outside'' targets.

Use setforward online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 2
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • 3
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 4
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 5
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 6
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • More »

Linux commands

  • 1
    aa-clickquery
    aa-clickquery
    aa-clickquery - program for querying
    click-apparmor DESCRIPTION: This program
    is used to query click-apparmor for
    information. USAGE: aa-clickquery
    --click-fra...
    Run aa-clickquery
  • 2
    aa-exec-click
    aa-exec-click
    aa-exec-click - program for executing
    click packages under confinement
    DESCRIPTION: This program is used to
    execute click package under AppArmor
    confinement. I...
    Run aa-exec-click
  • 3
    cpio
    cpio
    cpio - copy files to and from archives ...
    Run cpio
  • 4
    cpipe
    cpipe
    cpipe - copy stdin to stdout while
    counting bytes and reporting progress ...
    Run cpipe
  • 5
    FvwmSave
    FvwmSave
    FvwmSave - the Fvwm desktop-layout
    saving module ...
    Run FvwmSave
  • 6
    FvwmSave1
    FvwmSave1
    FvwmSave - the FVWM desktop-layout
    saving module ...
    Run FvwmSave1
  • More »

Ad