I have setup postfix as a local smtp agent, and use maildrop as an MDA. I have set up ddclient to send mail to root when it updates the IP address. Whenever ddclient sends a mail, this mail is refused by maildrop, because ddclient is not a trusted user Reproducible: Always Steps to Reproduce: 1. Set up postfix to deliver local mail via maildrop. The mail system is configured WITHOUT VIRTUAL USERS The relevant lines in /etc/postfix/main.cf are # let the 'local' pass the message to maildrop # Normally maildrop must then be configured to deliver this copy in a 'Sent' folder mailbox_command = /usr/bin/maildrop -d ${USER} 2. start ddclient with configuration to send mail /etc/ddclient/ddclient.conf contains mail=root mail-failure=root 3. When ddclient sends mail about its results, the mail is refused in postfix: <root@mydomain.net>: temporary failure. Command output: /usr/bin/maildrop: You are not a trusted user. recipient=root@mydomain.net original_recipient=root offset=214 status=4.3.0 action=delayed diag_type=x-unix diag_text=/usr/bin/maildrop: You are not a trusted user. reason=temporary failure. Command output: /usr/bin/maildrop: You are not a trusted user. Actual Results: Mail is refused because ddclient is not a trusted user. Trusted users are defined in the ebuild Expected Results: maildrop should accept mail sent by ddclient. this is defined in the ebuild, where the list of trusted users should be extended to include ddclient: mytrustedusers+=" daemon postmaster qmaild mmdf vmail alias" should become mytrustedusers+=" daemon postmaster qmaild mmdf vmail alias ddclient"
Sure, adding ddclient to trusted users will work. But can't you alias ddclient to admin email address and set mail and mail-failure to ddclient in ddclient.conf? We won't be emailing root and no need to add ddclient to trusted users.
Please reopen if aliasing ddclient does not work.