OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
$mynetworks question

From: Amin Astaneh (aastanehcmax2.com)
Date: Fri Jan 06 2006 - 09:56:07 CST


Hello-

I have read the postfix-mysql documentation and I am very aware of how table lookups for $mynetworks work, using a key-arbitrary value combination. However, I was wondering if anyone on the list has ever seen an approach to something I wish to implement.

I use DNS blacklisting for my SMTP servers and I wondering if it is possible to write a whitelist of IP addresses or domainnames for each mail domain or user that I serve which will be placed in a lookup table for mynetworks.
For example- one of our customers recieves a lot of essential customer mail from the bellsouth ISP. Is it possible for postfix to allow these certain machines to connect when a specific 'rcpt to:' is declared, rather than to always allow them?

Clearly postfix connects to the mysql database with the where_field corresponding to the domain name or the IP of the machine that is connecting. Is there any information that postfix can use in the lookups as well? Perhaps the 'rcpt to:'?

Thanks-
Amin Astaneh
Qwik.net Systems, Inc.