Allow relaying just for ip that match domain?

This is a discussion on Allow relaying just for ip that match domain? within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; hello, i need to make postfix to allow relaying just for ip that match and ip address and domain, i ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 4 Weeks Ago
Milan Cvejic
 
Posts: n/a
Default Allow relaying just for ip that match domain?

hello, i need to make postfix to allow relaying just for ip that match
and ip address and domain, i managed to do
part with relaying by using mynetworks like this:

mynetworks = proxy:mysql:/etc/postfix/mysql_mynetworks.cf

and content of mysql_mynetworks.cf:

user = user
password = pass
dbname = database
table = allowed_hosts
select_field = IP
where_field = IP
hosts = 127.0.0.1
additional_conditions = and active='1'


but i need to allow relaying for domain example.com only if domain
example.com matches ip 10.0.0.1.

this is how currently table allowed_hosts look like:

active enum('1','0')
IP varchar(15)
Client varchar(128)
Comments text


fields Client and Comments are for me to know which client is and
notes for that client... but i need to add domain
check...

Any help is preciated...


Thanks...

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:05 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0