Try removing "reject_unlisted_recipient" from your config.
"reject_unauth_destination" is going to prevent you from becoming an open
relay. Unless you have a specific list of valid recipients, or are doing
some other kind of real time address validation, "reject_unlisted_recipient"
is probably causing your issue.
"permit_mynetworks" authorizes clients listed in mynetworks to relay. Your
postfix server will accept messages from ANY client for a domain specified
in relay_domains. You do not have to add clients who are sending messages
to domains listed in relay_domains to mynetworks.
Hope that helps
David
On 5/9/07, binoy <[EMAIL PROTECTED]> wrote:
that gives me 'Relay Access Denied'. Infact adding permit_mynetworks
in any order except as the first option gives the same error.
any other way to setup the IP restriction other than adding it in
my_networks ?
On 5/9/07, John Beaver <[EMAIL PROTECTED]> wrote:
> binoy wrote:
> > hi,
> > my first message to the list. This might be RTFM but here goes.
> >
> > I'm setting up a postfix smtp only server. I wanted to restrict
> > 1. IP's that can send through the server.
> > 2. the number of emails that can be sent via a Ip per hour.
> >
> > for (1) I added the allowed IP's to mynetworks and it kinda works,
> > sending from other ip's gives a relay error
> >
> > for (2) I decided to implement policyd. the service is running on the
> > port, however i am lost at the configuration of postfix. README
> > mentions the following
> > smtpd_recipient_restrictions =
> > reject_unauth_destination
> > reject_unlisted_recipient
> > check_policy_service inet:127.0.0.1:10031
>
> Add permit_mynetworks after this line.
> This will allow all emails to be checked by the policy server first,
> then allowed to send by the permit_mynetworks.
>
> smtpd_recipient_restrictions =
> reject_unauth_destination
> reject_unlisted_recipient
> check_policy_service inet:127.0.0.1:10031
> permit_mynetworks
>
>
> john beaver
>
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> policyd-users mailing list
> policyd-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/policyd-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users
--
David DeFranco
Wolf in Sheeple's clothing
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users