Josh Cason a écrit :
> I have three servers that need to send me e-mail. Two of the servers
> won't send say avast reports and what not. I get the following error
> 
> From one server:
> 
> warning: 71.39.113.15: address not listed for hostname sbs.rtgis.com
> 
> From the other server:
> 
>  NOQUEUE: reject: RCPT from unknown[71.39.117.85]: 554 5.7.1 Client host
> rejed: cannot find your hostname
> 
> 
> But this is a static ip number and the mail server it is using is mine.
> These are customers of ours that we monitor our servers. Now If I put
> the extact ip address into mynetworks. It works. But I don't think that
> is proper. Is there another override I can use based on there ip numbers?
> 

if you add the IP to mynetworks, it will be able to relay (that is: not
only send you mail, but also send mail to anywhere via your server). if
that's your goal, then that's ok. (an alternative is to use the
submission port instead of port 25. The idea is to separate the MX role
and other roles).

if you only want to allow it to send you mail (but not relay through
your server), then do something like this:

smtpd_recipient_restrictions =
        permit_mynetworks
        reject_unauth_destination
        check_client_access cidr:/etc/postfix/client_whitelist.cidr
        #then you ant-spam checks after this

== client_whiltelist.cidr:
71.39.113.15    OK

Reply via email to