HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Postfix restriction problem (http://www.howtoforge.com/forums/showthread.php?t=28519)

gianni21 7th November 2008 23:06

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

falko 8th November 2008 14:53

Any errors in your mail log?

Did you run
Code:

postmap /etc/postfix/access
?

Can you try this in your main.cf?
Code:

smtpd_recipient_restrictions = reject_invalid_hostname, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access hash:/etc/postfix/access, permit

gianni21 8th November 2008 15:28

yes i've run postmap /etc/postfix/access

i'll try:
smtpd_recipient_restrictions = reject_invalid_hostname, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access hash:/etc/postfix/access, permit

but what does it means?


All times are GMT +2. The time now is 03:27.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.