Welcome, Guest Login

Support Center

What Sieve and Lua Functions are Available During the SMTP Phases?

Last Updated: Jun 22, 2016 04:45PM EDT
What Sieve and Lua Functions are Available During the SMTP Phases?

Sieve is a programming language used for filtering e-mail messages. It can be implemented on a mail client or mail server, as it is not tied to any particular operating system or mail architecture. Sieve functions are available in Momentum 3.x only.

Lua is a lightweight programming language designed primarily for embedded systems and clients. It is ideal for configuration, scripting, and rapid prototyping. Lua functions are available in both Momentum 3.x and Momentum 4.x.

 
SMTP Conversation Sieve Lua Objects Available at this Stage
    init Nothing from the smtp conversation.
  accept_phase1   IP address of inbound connections
  accept_phase2   IP address of inbound connections
  connect_phase1 validate_connect IP address of inbound connections and connection context vars.
  connect_phase2   IP address of inbound connections and connection context vars.
220 2.0.0 <banner> from server      
EHLO/HELO from client

ehlo_phase1

validate_ehlo

IP address of inbound connections, connection context vars and ehlo string
  ehlo_phase2   IP address of inbound connections, connection context vars and ehlo string
250-localhost.localdomain says EHLO to 127.0.0.1:55248 250-ENHANCEDSTATUSCODES 250-PIPELINING 250 8BITMIME from server      
MAILFROM from client mailfrom_phase1 validate_mailfrom IP address, connection context vars , ehlo string and mailfrom
  mailfrom_phase2   IP address, connection context vars , ehlo string and mailfrom
250 2.0.0 MAIL FROM accepted from server      
RCPTTO from client rcptto_phase1 validate_rcptto IP address, connection context vars , ehlo, mailfrom, rcptto strings and any message context vars
  rcptto_phase2   IP address, connection context vars , ehlo, mailfrom, rcptto strings and any message context vars
    validate_rcptto_list IP address, connection context vars, ehlo, mailfrom, rcptto strings and any message context vars
    validate_rcptto_list_final IP address, connection context vars , ehlo, mailfrom, rcptto strings and any message context vars
250 2.0.0 RCPT TO accepted from server      
DATA from client data_phase1 validate_data IP address, connection context vars , ehlo, mailfrom, rcptto strings, full body of the message, and any message context vars.
354 3.0.0 continue.  finished with "\r\n.\r\n" from server data_phase2   IP address, connection context vars , ehlo, mailfrom, rcptto strings, full body of the message, and any message context vars.
  spool_phase1 validate_data_spool IP address, connection context vars , ehlo, mailfrom, rcptto strings, full body of the message, and any message context vars.
  spool_phase2   IP address, connection context vars , ehlo, mailfrom, rcptto strings, full body of the message, and any message context vars.
250 2.0.0 OK <msg id> from server      
  each_rcpt_phase1 validate_data_spool_each_rcpt IP address, connection context vars , ehlo, mailfrom, rcptto strings, full body of the message, any message context vars, and the individual recipients.
  each_rcpt_phase2   IP address, connection context vars , ehlo, mailfrom, rcptto strings, full body of the message, any message context vars, and the individual recipients.
  set_binding_phase1 validate_set_binding IP address, connection context vars , ehlo, mailfrom, rcptto strings, full body of the message, any message context vars, and the individual recipients.
  set_binding_phase2  

IP address, connection context vars , ehlo, mailfrom, rcptto strings, full body of the message, any message context vars, and the individual recipients.

  core_final_validation core_final_validation IP address, connection context vars , ehlo, mailfrom, rcptto strings, full body of the message, any message context vars, the individual recipients, no more modifications to the message.
    deinit Remove anything that was set in the init phase.

 

3d340ddab8604c9deb2bbcad29739042@messagesystems.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete