Thanks for all
I have read the document
http://www.postfix.org/RESTRICTION_CLASS_README.html
Maybe it's not what I need to setting. I don't have internal email
distribution list, so do not need to protect it. And I don't want to
restrict any user send mail to off-site destinations.

My customer have the mail system, they send mail via my postfix server.
/etc/postfix/main.cf
        mynetworks = hash:/etc/postfix/mynetworks_table
/etc/postfix/mynetworks_table
        IP    PERMIT

IP is my customer's IP, and they have two domain: customer.domain1,
customer.domain2  My mail system only want these two domain send mail via
my postfix mail system but not any other domain. It's mean only two domains
in this IP can send mail via my server, other domains will be reject by my
server

How can I set in main.cf
Thanks for your time

TOM


2013/5/31 Peter <pe...@pajamian.dhs.org>

> On 05/31/2013 12:34 PM, Noel Jones wrote:
>
>> No, the client is already authorized by IP.  Adding a sender domain
>> check is an additional restriction.  This is also a simple "some
>> trusted IP is sending a bunch of crap" trigger.
>>
>> Good advice, but SASL is not always possible or practical. And
>> solving this with SASL involves reject_sender_login_mismatch, which
>> brings its own complications.
>>
>
> This is all based on an interpretation of the OPs original broken English
> posts, though.  What I was seeing was something akin to, "I need to prevent
> spammers from using my server as a relay, so I'm going to stop anyone who
> doesn't have an authorized domain in the envelope sender."  You probably
> noticed something I didn't in his posts, though.
>
>
> Peter
>

Reply via email to