Viktor Dukhovni:
> 
> 
> > On Oct 24, 2017, at 2:41 AM, Ulrich Zehl <ulrich-post...@topfen.net> wrote:
> > 
> > root@zwirn:~# find / -name sendmail -ls
> >    19874      0 lrwxrwxrwx   1 root     root           16 Sep 27 06:56 
> > /usr/lib/sendmail -> ../sbin/sendmail
> >    19767     28 -rwxr-xr-x   1 root     root        26776 Sep 27 06:56 
> > /usr/sbin/sendmail
> 
> When dynamic map support was added to Postfix 3.0, the call to
> mail_dict_init() which loads the dynamic map table was added to
> postdrop(1), but not sendmail(1).  However sendmail(1) also checks
> the submit ACL to make a friendlier error message:

Viktor, thanks for finding that omission.

        Wietse

diff -cr /var/tmp/postfix-3.3-20171009/src/sendmail/sendmail.c 
./src/sendmail/sendmail.c
*** /var/tmp/postfix-3.3-20171009/src/sendmail/sendmail.c       2017-02-05 
19:05:04.000000000 -0500
--- ./src/sendmail/sendmail.c   2017-10-24 10:35:52.000000000 -0400
***************
*** 495,500 ****
--- 495,501 ----
  #include <deliver_request.h>
  #include <mime_state.h>
  #include <header_opts.h>
+ #include <mail_dict.h>
  #include <user_acl.h>
  #include <dsn_mask.h>
  #include <mail_parm_split.h>
***************
*** 1114,1119 ****
--- 1115,1122 ----
      msg_syslog_init(mail_task("sendmail"), LOG_PID, LOG_FACILITY);
      get_mail_conf_str_table(str_table);
  
+     mail_dict_init();
+ 
      if (chdir(var_queue_dir))
        msg_fatal_status(EX_UNAVAILABLE, "chdir %s: %m", var_queue_dir);
  

Reply via email to