> 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:

https://github.com/vdukhovni/postfix/blame/19b6598b23b8c2558e7df1117d58c2329743bb4f/postfix/src/sendmail/sendmail.c#L646

Therefore, it would seem that we also need a call to mail_dict_init()
in sendmail(1), just like the one added to postdrop(1) circa 2.12-20140530:

https://github.com/vdukhovni/postfix/blame/master/postfix/src/postdrop/postdrop.c#L322

https://github.com/vdukhovni/postfix/commit/b2a51a4b94ca3789b6f3c18cc52ecb655b2aefc2#diff-19f9c3891ec565fc1b353a064407477fR19730

+20140505
+
+       Bugfix: the postdrop authorized_submit_users feature requires
+       that lookup table support is initialized so that it can use
+       libglobal or dynamicmaps maps.  File: postdrop/postdrop.c.

-- 
        Viktor.

Reply via email to