|Main Archive Page > Month Archives > postfix-users archives|
Le 14/10/2010 00:07, John Swift a écrit :
> Your solution worked, thank you! Now what I'm wondering is this: How can I add specific IPs to be able to send off-site? Essentially, I'd like two access lists for sending off-site: One for sender email addresses and one for host IPs. If you belong in either one you can send offsite.
just add a check_client_access before the check_sender_access:
#or for the full 192.0.2.0-192.0.2.255 range:
> Is it possible to implement this? Can I use smtpd_client_restrictions in conjunction with what I have without messing up internal facing mail?
> Thank you.
> --- On Tue, 10/12/10, mouss<email@example.com> wrote:
>> From: mouss<firstname.lastname@example.org>
>> Subject: Re: Block all but a few from sending mail offsite
>> To: email@example.com
>> Date: Tuesday, October 12, 2010, 2:16 PM
>> Le 12/10/2010 01:45, John Swift a
>> écrit :
>>> For my Postfix web server, I was able to get the
>> example working that was at the bottom of the web page here:
>> In that section of the web page, it says "It is left as an
>> exercise for the reader to change this into a scheme where
>> only some users have permission to send mail to off-site
>> destinations, and where most users are restricted." I've
>> tried many many different things but have been unable
>> to change the scheme where some users have permission to
>> send mail offsite and most users are restricted. Can I get a
>> little help with this? I'm guessing this is a small config
>> change that I'm completely missing.
>> can you explain your need clearly?
>> with the following:
>> smtpd_sender_restrictions =
>> == access_sender
>> joe@example OK
>> joe and jim can send "offsite", while other *example.com
>> can only send to "managed" domains (mydestination, relay
>> domains, virtual mailbox domains, virtual alias domains).