Hello,

I have a complete forward and reverse DNS setup for local.domain.com and I
am trying to restrict all 192.168.x.x addresses.  I am using in main.cf

smtpd_restriction_classes = local_only
local_only = check_recipient_access hash:/etc/postfix/local_only, reject
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_recipient_restrictions = check_sender_access 
hash:/etc/postfix/restricted_senders,
permit_sasl_authenticated,permit_mynetworks,check_relay_domains

and local_only has all 64770 entries below.

192.168.0.1 OK
192.168.0.2 OK
...
192.168.255.253 OK
192.168.255.254 OK

I am seeing in the log.

Aug 22 16:34:57 domain amavis[28466]: (28466-01) Passed CLEAN, [192.168.56.137] 
<[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>, Message-ID: <[EMAIL PROTECTED]>, 
mail_id: 3JJwAafw5Rhl, Hits: -4.147, 6911 ms
Aug 22 16:34:57 domain postfix/smtp[28583]: AAED3A0C9A: to=<[EMAIL PROTECTED]>, 
relay=127.0.0.1[127.0.0.1], delay=8, status=sent (250 2.6.0 Ok, id=28466-01, 
from MTA([127.0.0.1]:10025): 250 Ok: queued as 858ACA0CED)
Aug 22 16:34:57 domain postfix/qmgr[4201]: AAED3A0C9A: removed
Aug 22 16:35:18 domain pop3d: Connection, ip=[::ffff:192.168.56.137]
Aug 22 16:35:19 domain pop3d: LOGIN, user=bk9729, ip=[::ffff:192.168.56.137]
Aug 22 16:35:19 domain pop3d: LOGOUT, user=bk9729, ip=[::ffff:192.168.56.137], 
top=0, retr=0, time=0
Aug 22 16:35:23 domain postfix/smtp[28583]: 858ACA0CED: to=<[EMAIL PROTECTED]>, 
relay=zenez.com[166.70.62.2], delay=26, status=sent (250 2.0.0 Ok: queued as 
B04573F680)
Aug 22 16:35:23 domain postfix/qmgr[4201]: 858ACA0CED: removed
Aug 22 16:35:34 domain pop3d: Connection, ip=[::ffff:192.168.56.137]
Aug 22 16:35:34 domain pop3d: LOGIN, user=bk9729, ip=[::ffff:192.168.56.137]
Aug 22 16:35:34 domain pop3d: LOGOUT, user=bk9729, ip=[::ffff:192.168.56.137], 
top=0, retr=0, time=0
Aug 22 16:38:10 domain postfix/anvil[28580]: statistics: max connection rate 
1/60s for (smtp:192.168.56.137) at Aug 22 16:34:44
Aug 22 16:38:10 domain postfix/anvil[28580]: statistics: max connection count 1 
for (smtp:192.168.56.137) at Aug 22 16:34:44
Aug 22 16:38:10 domain postfix/anvil[28580]: statistics: max cache size 1 at 
Aug 22 16:34:44

So I think the problem is that postfix is comparing ::ffff:192.168.56.137
instead of 192.168.56.137.  Or I may be missing something more.

Any ideas on how to fix this.

Thanks,

--
Boyd Gerber <[EMAIL PROTECTED]>
ZENEZ   1042 East Fort Union #135, Midvale Utah  84047
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to