Only 3 Items in postfix Whitelist

General help with the Plesk control panel

Only 3 Items in postfix Whitelist

Postby Alan » Fri Aug 20, 2010 3:31 pm

Plesk version 9.5.x
OS: debian-5-x86_64

How-to reproduce:

add 3 or more IPs on the server:

Quote:
# ifconfig | grep inet
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
inet addr:10.55.62.85 P-t-P:10.55.62.85 Bcast:0.0.0.0 Mask:255.255.255.255
inet addr:10.55.62.83 P-t-P:10.55.62.83 Bcast:0.0.0.0 Mask:255.255.255.255
inet addr:10.55.62.88 P-t-P:10.55.62.88 Bcast:0.0.0.0 Mask:255.255.255.255

Add any IP into whitelist:

Quote:
# /opt/psa/admin/bin/mailmng '--add-whitelist' '--ip-address=100.0.0.1' '--netmask=24'
Reloading Postfix configuration...done.
looks ok:


Quote:
# grep ^mynetworks /etc/postfix/main.cf
mynetworks = 127.0.0.0/8, 10.55.62.85/32, 100.0.0.1/24
however if we add one more IP to whitelist it will overwrite the last value:

Quote:
# /opt/psa/admin/bin/mailmng '--add-whitelist' '--ip-address=200.0.0.1' '--netmask=24'
Reloading Postfix configuration...done.


# grep ^mynetworks /etc/postfix/main.cf
mynetworks = 127.0.0.0/8, 10.55.62.85/32, 200.0.0.1/24
However if a server has 1 IP, the problem is not reproducible:

Quote:
# /opt/psa/admin/bin/mailmng '--add-whitelist' '--ip-address=200.0.0.1' '--netmask=24'

# grep ^mynetworks /etc/postfix/main.cf
mynetworks = 127.0.0.0/8, 10.55.62.85/32, 100.0.0.1/24, 200.0.0.1/24
all 4 IPs are in white list.


SOLUTION:

patched binary mailmng for deb50x64 is attached

Original thread with attachment here:

http://forum.parallels.com/showpost.php ... stcount=63
Alan
 
Posts: 220
Joined: Sat Dec 11, 2004 4:35 pm
Location: Vancouver, BC

Return to General Help

Who is online

Users browsing this forum: No registered users and 3 guests

cron