> On Jan 4, 2019, at 4:59 PM, Rafael Azevedo <raf...@gmail.com> wrote:
> 
>>> Jan  4 17:41:54 lab postfix/pipe[2027085]: EE5D013E179F:
>>> to=<mail...@iarn.net>, relay=post_queue_content_filter, delay=1.1,
>>> delays=0.04/0/0/1, dsn=4.3.0, status=deferred (temporary failure.
>>> Command output: postdrop: error: untrusted configuration directory
>>> name: /etc/postfix/ postdrop: fatal: specify
>>> "alternate_config_directories = /etc/postfix/" in /etc/postfix/main.cf
>>> sendmail: warning: command "/usr/sbin/postdrop -r" exited with status
>>> 1 sendmail: fatal: x...@xx.net(5001): unable to execute
>>> /usr/sbin/postdrop -r: Success )
>> 
>> DO NOT set "config_directory = /etc/postfix/" in main.cf.  In fact do
>> do not set it at all.
> 
> In fact I didn't.
> There's no config_directory set in my main.cf file.

The logs don't lie.  Either main.cf has "config_directory = /etc/postfix/"
with a trailing "/", or Postfix was started via "postfix -c /etc/postfix/ start"
or you have enabled multiple instances, and the multi-instance configuration
lists "/etc/postfix/", ... or similar.

By the time "postdrop" is running in your script the "MAIL_CONFIG" environment
variable is set to "/etc/postfix/" rather than just "/etc/postfix".

-- 
        Viktor.

Reply via email to