Hi,
I have set up a second port for postfix to listen on specifically to
bypass the message_size_limit parameter. Basically, we have a couple of
IP segments that have printer scanners and the scanners email the scan
to the user and so I also want to restrict access to the port so that
only devices in the specific IP segments can use it.
This is the configuration for the additional port in the master.cf file:
2526 inet n - n - - smtpd
-o cleanup_service_name=pre-cleanup
-o message_size_limit=10240000
-o smtpd_client_restrictions=check_client_access
hash:/etc/postfix/printer_access
The contents of printer_access is:
10.169 OK
10.219 OK
10 REJECT
I don't think it should matter where the REJECT line is, but I have
tried both in the first and the last position. When I try to telnet to
port 2526 fom a machine with a 10.219/16 address, the connection comes
up momemtarily (i.e., I get the telnet connected response) and that's
followed immediately by Connection closed by foreign host. In the
maillog, I see the connect and disconnect log entries and nothing else.
If I comment out the smtpd_client_restrictions line in master.cf, it
connects just fine.
Any ideas about what I'm doing wrong?
Thanks,
Rob Tanner
Linfield College