學術及資源的交流園地 ^_^

Quick & fast

Quick is a measure of time; fast is a measure of speed.

apcupsd

postfix - pipe (call script)

 

說明

 

pipe - Postfix delivery to external command

flags=BDFORXhqu.>

B      Append a blank line at the end of each message.

D      Prepend a "Delivered-To: recipient" message header

F      Prepend a "From sender time_stamp" envelope header

0      Prepend an "X-Original-To: recipient" message header

R      Prepend a Return-Path: message header

X      Indicate that the external command  performs final  delivery.
         (log 會出 delivered, 沒有它時, 會出 relayed)

q      Quote whitespace and other special characters in the command-line $sender, 

        $original_recipient  and $recipient address localparts

user=username:groupname     <-- 用 username 及 groupname 身份執行

argv=command... (required)    <-- The command to be executed.

macro

macro expands to the X

  • ${client_address}
  • ${client_helo}
  • ${sender}                       # null sender => MAILER-DAEMON
  • ${recipient}                    # the complete recipient address
  • ${original_recipient}
  • ${size}

 

maps - transport maps

最後更新: 2019-10-21

 

介紹

在 postfix 上, 它一共有幾個不同的 map 去控制 transport

 - default_transport (default: smtp:)
 - local_transport (default: local:$myhostname)
 - relay_transport (default: relay:)
 - virtual_transport (default: virtual:)
 - transport_maps (default: empty)

transport_maps

    Optional lookup tables with mappings from recipient address to
    (message delivery transport, next-hop destination)

目錄

  • Transport Agents
  •  
RSS feed