First thanks to all for your support.
I've changed my main.cf configuration in this way:
=================================================
smtpd_sender_restrictions =
        check_policy_service inet:127.0.0.1:10031,
        permit_mynetworks,
        permit
=================================================
But now no email is sended and I get alway relaying denied.

Ps. This should be a sendonly email relaying only specified ip address. I've
not configured any virtual domain on it.

Thanks again
 


Dr. Marcello Anderlini
[email protected]
---------------------------------------------
Database Informatica S.r.l.
Microsoft Certified Partner
Tel.  +39059775070
Fax. +39059779545
http://www.database.it 
http://www.facebook.com/DatabaseInformatica
-----Messaggio originale-----
Da: Users [mailto:[email protected]] Per conto di Nigel Kukard
Inviato: mercoledì 27 febbraio 2013 9.30
A: [email protected]
Oggetto: Re: [policyd-users] Policyd does not work

On 02/26/2013 03:49 PM, Marcello Anderlini wrote:
> modules/CheckSPF (Can't locate Mail/SPF.pm in @INC (@INC contains:
> /usr/local/lib/cbpolicyd-2.1 /usr/lib/cbpolicyd-2.1
/usr/lib64/cbpolicyd-2.1
> awitpt /usr/local/lib64/perl5 /usr/local/share/perl5
> /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5
> /usr/share/perl5 .) at /usr/lib64/cbpolicyd-2.1/cbp/modules/CheckSPF.pm
line
> 30.

You need this module installed on your system.

> smtpd_sender_restrictions =
>          reject_non_fqdn_sender,
>          reject_non_fqdn_recipient,
>          reject_unknown_recipient_domain,
>          permit_mynetworks,
>          check_policy_service inet:127.0.0.1:10031,
>          reject_unauth_destination,
>          reject_unauth_pipelining,
>          reject_unknown_sender_domain,
>          reject_non_fqdn_hostname,
>          reject_invalid_hostname,
>          reject_rbl_client zen.spamhaus.org,
>          permit

check_policy_service inet:127.0.0.1:10031 must be the first item, you are
allowing traffic from mynetworks before checking against policyd







_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org

Reply via email to