Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411017 - mail-filter/maildrop doesn't allow mail from net-dns/ddclient
Summary: mail-filter/maildrop doesn't allow mail from net-dns/ddclient
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-06 11:26 UTC by jan vereecke
Modified: 2012-04-26 07:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jan vereecke 2012-04-06 11:26:03 UTC
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"
Comment 1 Eray Aslan gentoo-dev 2012-04-10 05:29:07 UTC
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.
Comment 2 Eray Aslan gentoo-dev 2012-04-26 07:50:04 UTC
Please reopen if aliasing ddclient does not work.