Server IP : 127.0.0.2 / Your IP : 3.141.29.119 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/augeas/lenses/dist/tests/ |
Upload File : |
module Test_postfix_master = let conf = "# master.cf smtp inet n - - 10? - smtpd maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} " test Postfix_Master.lns get conf = { "#comment" = "master.cf" } { "smtp" { "type" = "inet" } { "private" = "n" } { "unprivileged" = "-" } { "chroot" = "-" } { "wakeup" = "10?" } { "limit" = "-" } { "command" = "smtpd" } } { "maildrop" { "type" = "unix" } { "private" = "-" } { "unprivileged" = "n" } { "chroot" = "n" } { "wakeup" = "-" } { "limit" = "-" } { "command" = "pipe\n flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}" } } (* fixes bug #69 : accept double quotes in arguments *) let conf2 = "# The Cyrus deliver program has changed incompatibly, multiple times. cyrus unix - n n - - pipe flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m \"${extension}\" ${user} " test Postfix_Master.lns get conf2 = { "#comment" = "The Cyrus deliver program has changed incompatibly, multiple times." } { "cyrus" { "type" = "unix" } { "private" = "-" } { "unprivileged" = "n" } { "chroot" = "n" } { "wakeup" = "-" } { "limit" = "-" } { "command" = "pipe\n flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m \"${extension}\" ${user}" } } (* accept commas in arguments *) let conf3 = "# master.cf submission inet n - n - - smtpd -o smtpd_client_restrictions=permit_sasl_authenticated,reject " test Postfix_Master.lns get conf3 = { "#comment" = "master.cf" } { "submission" { "type" = "inet" } { "private" = "n" } { "unprivileged" = "-" } { "chroot" = "n" } { "wakeup" = "-" } { "limit" = "-" } { "command" = "smtpd\n -o smtpd_client_restrictions=permit_sasl_authenticated,reject" } } (* : is allowed *) let conf4 = "127.0.0.1:10060 inet n n n - 0 spawn user=nobody argv=/usr/sbin/hapolicy -l --default=DEFER " test Postfix_Master.lns get conf4 = { "127.0.0.1:10060" { "type" = "inet" } { "private" = "n" } { "unprivileged" = "n" } { "chroot" = "n" } { "wakeup" = "-" } { "limit" = "0" } { "command" = "spawn user=nobody argv=/usr/sbin/hapolicy -l --default=DEFER" } } (* Spaces are allowed after the first word of the command *) let conf5 = "sympa unix - n n - - pipe \n flags=R user=sympa argv=/home/sympa/bin/queue ${recipient} " test Postfix_Master.lns get conf5 = { "sympa" { "type" = "unix" } { "private" = "-" } { "unprivileged" = "n" } { "chroot" = "n" } { "wakeup" = "-" } { "limit" = "-" } { "command" = "pipe \n flags=R user=sympa argv=/home/sympa/bin/queue ${recipient}" } } (* Arobase is allowed in command *) let conf6 = "sympafamilypfs unix - n n - - pipe flags=R user=sympa argv=/home/sympa/bin/familyqueue ${user}@domain.net pfs " test Postfix_Master.lns get conf6 = { "sympafamilypfs" { "type" = "unix" } { "private" = "-" } { "unprivileged" = "n" } { "chroot" = "n" } { "wakeup" = "-" } { "limit" = "-" } { "command" = "pipe flags=R user=sympa argv=/home/sympa/bin/familyqueue ${user}@domain.net pfs" } } (* Ticket #345 *) let conf7 = "# master.cf submission inet n - n - - smtpd -o mynetworks=127.0.0.1/8,[::1] " test Postfix_Master.lns get conf7 = { "#comment" = "master.cf" } { "submission" { "type" = "inet" } { "private" = "n" } { "unprivileged" = "-" } { "chroot" = "n" } { "wakeup" = "-" } { "limit" = "-" } { "command" = "smtpd\n -o mynetworks=127.0.0.1/8,[::1]" } }