View Single Post
  #1  
Old 8th November 2008, 00:06
gianni21 gianni21 is offline
Junior Member
 
Join Date: Nov 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix restriction problem

Hi i'm giovanni, i've a mailserver with postfix (relase 2001) and i've added an alias all@domain.it that point to all the mailbox of my domain, so now i've a big problem, this alias is shooted by spammers and i want to restrict the policy and allows to use it only if the sender is logged on my domain. Well, i've find this official tutorial:
/etc/postfix/main.cf:
smtpd_recipient_restrictions =
check_recipient_access hash:/etc/postfix/access

/etc/postfix/access:
all@my.domain permit_mynetworks,reject
all@my.hostname permit_mynetworks,reject
--------
so i've applied it to my config. files:

/etc/postfix/main.cf:
smtpd_recipient_restrictions =

check_recipient_access hash:/etc/postfix/access

/etc/postfix/access:
all@domain.it permit_mynetworks,reject
------
so at the end i've given these command:
postmap /etc/postfix/access
postfix reload

The result isn't good, when any mail client try to send an email the mail client software give a timeout and it's impossible to reach the addressee.
When i clean up the access file and main.cf all returns like before...(the clients can send emails and everyone can send email at all@domain.it)
maybe with this tutorial i've cancelled part of the default configuration and therefore doesn't it work ?
Thanks a lot
Reply With Quote
Sponsored Links