XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum -> XMail 1.19 Pre01

Reply to this topicStart new topicStart Poll

> XMail 1.19 Pre01
hschneider
Posted: Apr 10 2004, 11:16 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



QUOTE

This is an alpha of 1.19-pre01 with SMTP filters:

http://www.xmailserver.org/xmail-1.19-pre01.tar.gz

See doc (and report possible doc improvements) for information.



- Davide


Yeahh! cool.gif

QUOTE

SMTP MESSAGE FILTERS

    Besides having the ability to perform off-line message filtering, XMail
    gives the user the power to run filters during the SMTP session. Two
    files drive the SMTP on-line filtering, and these are
    'FILTERS.PRE-DATA.TAB' and 'FILTERS.POST-DATA.TAB'. The file
    'FILTERS.PRE-DATA.TAB' contains one or more commands to be executed
    after the remote SMTP client sends the DATA command, and before XMail
    sends the response to the command. Using such filters, the user can tell
    XMail if or if not accept the following DATA transaction and, in case of
    rejection, the user is also allowed to specify a custom message to be
    sent to the remote SMTP client. The file 'FILTERS.POST-DATA.TAB'
    contains one or more commands to be executed after XMail received the
    whole client DATA, and before XMail sends the final response to the DATA
    command (final messages ack). The files 'FILTERS.PRE-DATA.TAB' and
    'FILTERS.POST-DATA.TAB' conatins zero or more lines with the following
    format:

    "command"[TAB]"arg-or-macro"[TAB]...[NEWLINE]

    Each file may contain multiple commands, that will be executed in
    strictly sequential order. The first command that will trigger a
    rejection code will make the filtering process to end. Each argument can
    be a macro also:

    @@FILE
        the message file path

    Filter commands have the ability to inspect and modify the content of
    the message (or info) file. The exit code of commands executed by XMail
    are used to tell XMail the action that has to be performed as a
    cosequence of the filter. The exit code is composed by a raw exit code
    and additional flags. Currently defined flags are:

    '16'
        Stop selected filter list processing.

    Currently defined raw exit codes are:

    '3' Reject the message.

    Any other exit codes will make XMail to accept the message, and can be
    used also when changing the content of the @@FILE file. 'EXTREME' care
    must be used when changing the @@FILE file, since XMail expect the file
    format to be correct. Also, it is important to preserve the <CR><LF>
    line termination of the file itself. When rejecting the message, the
    filter command has the ability to specify the SMTP status code that
    XMail will send to the remote SMTP client, by creating a file named
    @@FILE.rej containing the message in the very first line. Such file will
    be automatically removed by XMail. The data passed to filter commands
    inside @@FILE varies depending if the command is listed inside
    'FILTERS.PRE-DATA.TAB' or inside 'FILTERS.POST-DATA.TAB'. Commands
    listed inside 'FILTERS.PRE-DATA.TAB' will receive the following data
    stored inside @@FILE:

    Info Data          [ 1th line ]
    SmtpDomain          [ 2nd line ]
    SmtpMessageID      [ 3rd line ]
    MAIL FROM:<...>    [ 4th line ]
    RCPT TO:<...>      [ 5th line ]
    ...

    The file can have one or more "RCPT TO" lines. Commands listed inside
    'FILTERS.POST-DATA.TAB' will receive the following data stored inside
    @@FILE:

    Info Data          [ 1th line ]
    SmtpDomain          [ 2nd line ]
    SmtpMessageID      [ 3rd line ]
    MAIL FROM:<...>    [ 4th line ]
    RCPT TO:<...>      [ 5th line ]
    ...
    <<MAIL-DATA>>
    ...

    After the '<<MAIL-DATA>>' tag the message follows. The message is
    composed of a headers section and, after the first empty line, the
    message body.



--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Announcements | Next Newest »

Reply to this topicStart new topicStart Poll