smtpd_recipient_restriction question

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

smtpd_recipient_restriction question

Alejandro Facultad
Dear all, I have a Postfix supporting a mail domain named
"alejandro.com". I need to block messages from local users to any
@alejandro.com mail account, and I need to allow incoming mails from
Internet to any @alejandro.com mail account. So I put this lines in main.cf:

smtpd_recipient_restrictions =
                check_recipient_access
hash:/etc/postfix/restricted_recipients

and the "restricted_recipients" file contains:

[hidden email]                                        
reject_mynetworks,permit
[hidden email]                                        
reject_mynetworks,permit
[hidden email]                                            
reject_mynetworks,permit
[hidden email]                                    
reject_mynetworks,permit

After that, when I send a message from a local user to any
@alejandro.com mail account, I fail and the mail.log shows the "Server
configuration error" warning.

Is the "reject_mynetworks,permit" rule wrong ??? What can I implement
what I need ???

Thanks a lot,

Alejandro
Reply | Threaded
Open this post in threaded view
|

Re: smtpd_recipient_restriction question

Sahil Tandon
Alejandro Facultad <[hidden email]> wrote:

> Dear all, I have a Postfix supporting a mail domain named "alejandro.com".
> I need to block messages from local users to any @alejandro.com mail
> account, and I need to allow incoming mails from Internet to any
> @alejandro.com mail account. So I put this lines in main.cf:
>
> smtpd_recipient_restrictions =
>                check_recipient_access
> hash:/etc/postfix/restricted_recipients
>
> and the "restricted_recipients" file contains:
>
> [hidden email]                                        
> reject_mynetworks,permit
> [hidden email]                                        
> reject_mynetworks,permit
> [hidden email]                                            
> reject_mynetworks,permit
> [hidden email]                                    
> reject_mynetworks,permit
>
> After that, when I send a message from a local user to any @alejandro.com
> mail account, I fail and the mail.log shows the "Server configuration
> error" warning.
>
> Is the "reject_mynetworks,permit" rule wrong ??? What can I implement what
> I need ???

reject_mynetworks does not exist in Postfix.  You need to read:
http://www.postfix.com/RESTRICTION_CLASS_README.html

--
Sahil Tandon <[hidden email]>