HI guys,

I've been struggling with a configuration for ip access, i cannot set any REJECT or PERMIT, because it's appearing a newline in the end.

hexdump always tell's me there's a newline, and the PERMIT doesn't work, it keeps checking the next evaluations.

any ideia? not even my cousion (chatgpt :) ) has been helping me much.

root@fastmail:/etc/postfix# postmap -q 188.250.172.222 mysql:/etc/postfix/mysql-client-ip-access.cf | hexdump -C
00000000 50 45 52 4d 49 54 0a |PERMIT.|
00000007
root@fastmail:/etc/postfix#

My configuration is:

mtpd_client_restrictions = permit_mynetworks, check_client_access mysql:/etc/postfix/mysql-client-ip-access.cf, permit_sasl_authenticated, reject_unknown_reverse_client_hostname, reject_unknown_client_hostname, permit_dnswl_client krn.korumail.com, permit_dnswl_client list.dnswl.org, permit_dnswl_client wl.mailspike.net, permit_dnswl_client rep.mailspike.net, permit_dnswl_client dnswl.spfbl.net, permit_dnswl_client wl.rb.............

user = postfix_usr
password = postfix_pwd_mail
hosts = 127.0.0.1
dbname = postfix
query = SELECT action
FROM postfix_ip_access
WHERE ip_address = '%s'

My table structure:

CREATE TABLE `postfix_ip_access` (
`ip_address` varchar(45) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL, `action` varchar(20) CHARACTER SET ascii COLLATE ascii_general_ci DEFAULT NULL, `comment` varchar(255) CHARACTER SET ascii COLLATE ascii_general_ci DEFAULT NULL,
PRIMARY KEY (`ip_address`)
) ENGINE=MyISAM DEFAULT CHARSET=ascii
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to