Branch: refs/heads/master
Home:   http://github.com/smtpd/qpsmtpd

Commit: 803a320127f372fa1b6333155da7134a8efef619
    
http://github.com/smtpd/qpsmtpd/commit/803a320127f372fa1b6333155da7134a8efef619
Author: Robert <[email protected]>
Date:   2010-07-25 (Sun, 25 Jul 2010)

Changed paths:
  M Changes
  M plugins/require_resolvable_fromhost

Log Message:
-----------
ignore search path in DNS lookups

       2.  If the name doesn't end in a dot then append each item in the search 
list to the name.
           This is only done if dnsrch is true.

triggered by..

From: Charlie Brady <[email protected]>
Subject: [BUG] Default search path used in require_resolvable_fromhost
Date: Sat, 17 Jul 2010 16:24:42 -0400 (EDT)
Message-ID:
 <[email protected]>

http://bugs.contribs.org/show_bug.cgi?id=5808

 Jesper Knudsen      2010-03-01 01:29:10 MST

When using the require_resolvable_fromhost plugin for qpsmtpd I noticed
that mails from [email protected] was actually getting through
this filter. I finally found out that the plugin has a bug that causes it
to insert default search path if it cannot find the domain. This means in
my case that localhost.localdomain was then tried resolved as
localhost.localdomain.swerts-knudsen.dk and since I have a wilcard CNAME
was resolved as my public IP.

Since this plugin is only enabled for public interface the fix is to set
the "dnsrch" flag when creating the Net::DNS object.

In require_resolvable_fromhost:
my $res = Net::DNS::Resolver->new (
                                   dnsrch => 0
                                   );


Commit: 9348539ed7aa03b438905f953771db14fcb4c1ea
    
http://github.com/smtpd/qpsmtpd/commit/9348539ed7aa03b438905f953771db14fcb4c1ea
Author: Robert <[email protected]>
Date:   2010-07-25 (Sun, 25 Jul 2010)

Changed paths:
  M packaging/rpm/qpsmtpd.spec.in

Log Message:
-----------
don't create homedir in RPM

based on..

From: Charlie Brady <[email protected]>
Subject: rpm packaging bug - smtpd user created with shell not /bin/false
Date: Sat, 17 Jul 2010 18:17:49 -0400 (EDT)
Message-ID:
 <[email protected]>

http://bugs.contribs.org/show_bug.cgi?id=6025

if ! id smtpd >/dev/null 2>&1
then
    # need to create smtpd user.
    if perl -e 'exit ! defined(getgrnam("postdrop"))'
    then
    # if postfix is installed, we will probably use
    # queue/postfix, which will need this:
        supp="-G postdrop"
    fi
    useradd -r -m $supp smtpd
fi

qpsmtpd needs a user "smtpd", but should not create a home directory or
give access to a shell.


Reply via email to