This feature would be better if we will could check email not in texfile but
in the local LDAP tree.

-----Original Message-----
From: Felipe Augusto van de Wiel [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 12, 2007 4:48 PM
To: qmail-ldap@qmail-ldap.org
Cc: Claudio Jeker
Subject: [PATCH] relaymailaddr/relaydomains: RCPT TO CHECK for non local
domains

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi everybody,

        While setting up a Secondary MX for a friend of mine, he asked if it
was possible to take the same approach of postfix, listing valid e-mail
address and dropping connection if the RCPT TO is invalid.

        I checked the mail list archive and found the concerns about how to
properly do that because of the lack of LDAP and the idea that Primary MX
wouldn't be available for a query. So, the idea of this patch is to address
a use case where people want to list valid e-mail address (even with
wildcards) that are accepted.

        It introduces two new control file:

        control/relaydomains:
                List the domains that you want RCPTCHECK

        control/relaymailaddr:
                List valid e-mail addresses for relays


        I changed two files, rcpthosts.c and qmail-smtpd.c based on some
references from other patches, the idea is to check if the domain is listed
in relaydomains then it should check if the RCPT TO exists in relaymailaddr,
it seems to work fine so far.

        I'm not sure if this is suitable for inclusion in qmail-ldap but I
would love to get some feedback from people (and specially qmail-ldap
upstream) about potential problems of the patch and if I should take another
approach.

        I really want to stay with qmail-ldap "pristine" as much as
possible, my other changes in the patch were just to make it easier, so I
added relaydomains.cdb in Makefile.cdb. I hope that there are some interest
from other people, I remember that somebody was using a stock-qmail with
validrcptto and qmail-ldap, I don't know it this patch addresses the same
issue, if it does, hopefully it is easier.

        Patch: qmail-ldap-1.03-relaydomains.patch
        Keywords: Secondary MX, Backup MX, Relay MX
        Description: add support to list valid recipients when
                     acting as a secondary MX, the domain is
                     not listed in control/locals only in
                     control/rcpthosts.

Kind regards,
- --
Felipe Augusto van de Wiel <[EMAIL PROTECTED]> Coordenadoria de
Tecnologia da Informacao (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/           Phone: (+55 41 3350 3300)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHOFmpCj65ZxU4gPQRCJCCAJ9ED7dA0VIimuu9x6TTeqB1ONQHqQCfUYKG
83czkjzrrMB7XCyepsQzR4s=
=2dTd
-----END PGP SIGNATURE-----

Reply via email to