diff options
Diffstat (limited to 'tcpproxy-model.lua')
-rw-r--r-- | tcpproxy-model.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tcpproxy-model.lua b/tcpproxy-model.lua index 712f174..3d05062 100644 --- a/tcpproxy-model.lua +++ b/tcpproxy-model.lua @@ -259,14 +259,14 @@ function readsmtpentry(ipaddr) local listfiles = listsmtpfiles() table.insert(listfiles.value, 1, "") - local ipaddrcfe = cfe({ value=ipaddr, label="Interface / IP Address" }) - local server = cfe({ label="SMTP Server", descr="Domain name / address of different machine or local binary" }) - local addressonly = cfe({ type="boolean", value=false, label="Address Only", descr="Removes everything in the from field except address" }) - local domain = cfe({ label="Custom Domain" }) - local optionalserver = cfe({ label="Custom Domain Server", descr="Use this SMTP server[:port] for e-mails to Custom Domain" }) - local optionalrewritelist = cfe({ type="select", label="Custom Domain Rewrite List", descr="File with a list for sender rewriting for Custom Domain", option=listfiles.value }) - local senderlistfile = cfe({ type="select", label="Sender List File", descr="File with a list for sender rewriting (and valid senders)", option=listfiles.value }) - local rcptlistfile = cfe({ type="select", label="Recipient List File", descr="File with a list for recipient rewriting (and valid recipients)", option=listfiles.value }) + local ipaddrcfe = cfe({ value=ipaddr, label="Interface / IP Address", readonly=true, seq=0 }) + local server = cfe({ label="SMTP Server", descr="Domain name / address of different machine or local binary", seq=1 }) + local addressonly = cfe({ type="boolean", value=false, label="Address Only", descr="Removes everything in the from field except address", seq=2 }) + local domain = cfe({ label="Custom Domain", seq=3 }) + local optionalserver = cfe({ label="Custom Domain Server", descr="Use this SMTP server[:port] for e-mails to Custom Domain", seq=4 }) + local optionalrewritelist = cfe({ type="select", label="Custom Domain Rewrite List", descr="File with a list for sender rewriting for Custom Domain", option=listfiles.value, seq=5 }) + local senderlistfile = cfe({ type="select", label="Sender List File", descr="File with a list for sender rewriting (and valid senders)", option=listfiles.value, seq=6 }) + local rcptlistfile = cfe({ type="select", label="Recipient List File", descr="File with a list for recipient rewriting (and valid recipients)", option=listfiles.value, seq=7 }) if exec and exec ~= "" then local options = parsesmtpcmd(exec) |