Brian Clark wrote:
> I'd love to be able to do this too. I posted a message similar to this a
> while ago to the list and didn't get anything. Anyone have any ideas on
> how to do this?
> 
> Brian!
> 
> 
> Michael Fuller said:

If you're versed and have plenty of time for C, you shouldn't have too
many problems adding this functionality for IP address ranges. 
Modify qmail-smptd to check for an environment variables such as "$RELAYTYPE".
You can set RELAYTYPE or others with TCP rules. TCP rules would be edited by an
external process. This process would be responsible for reading groups 
information from the LDAP directory. Another way is to modify qmail-smtpd
to do this directly from LDAP, but do we really want to bloat up qmail-smtpd?
A trick would be to have a complete qmail-smtpd replacement. If
written with the tinyldap API, wouldn't be much larger. You really don't
want to add OpenLDAP bloat to qmail-smtpd for busy servers.

This is somewhat related. One good way to selectively relay is by
knowing IP address ranges of the SMTP clients. We update our TCP rules for
qmail-smtpd from the SQL database (trigger) which is being written to by our
RADIUS server (for those email users who are coming from our dial-up; our dial-up
provider doesn't update us on their network changes). If there's an IP address
range we don't know about, it will be added to TCP rules automatically.

Reply via email to