Ok, I used that directive, now my postconf -n is this:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases,ldap:aliases
config_directory = /etc/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 50
double_bounce_sender = postmaster
forward_path = $home/.forward
home_mailbox = Maildir/
inet_interfaces = $myhostname,localhost
local_recipient_maps = unix:passwd.byname
local_transport = local
mail_owner = postfix
mydestination = $myhostname, localhost.localdomain, localhost.localdomain, 
localhost
myhostname = hosting.pippo.it
mynetworks = 127.0.0.0/8, 192.168.1.0/24, 192.168.2.0/24
myorigin = $myhostname
queue_directory = /var/spool/postfix
relayhost = 192.168.1.4
smtpd_recipient_restrictions = check_sender_access 
hash:/etc/postfix/restricted_ senders
smtpd_restriction_classes = local_only
unknown_local_recipient_reject_code = 550
virtual_alias_maps = ldap:aliases
virtual_gid_maps = static:1003
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = ldap:domains
virtual_mailbox_maps = ldap:mailbox
virtual_minimum_uid = 500
virtual_transport = virtual
virtual_uid_maps = static:1002
---------------------------------------------

but this is my error in log file:


daemon started -- version 2.3.8, configuration /etc/postfix
Nov  3 14:05:44 hosting postfix/smtpd[31371]: fatal: parameter 
"smtpd_recipient_restrictions": specify at least one working instance of: 
check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
Nov  3 14:05:45 hosting postfix/master[31350]: warning: process 
/usr/lib/postfix/smtpd pid 31371 exit status 1
Nov  3 14:05:45 hosting postfix/master[31350]: warning: /usr/lib/postfix/smtpd: 
bad command startup -- throttling


I don't understand....



Gabriele Di Giambelardini wrote:
> Ok, excuse me.
> Now I post my postconf -n:
>
>
>
>
> alias_database = hash:/etc/aliases
> alias_maps = hash:/etc/aliases,ldap:aliases
> config_directory = /etc/postfix
> debug_peer_level = 2
> default_destination_concurrency_limit = 50
> double_bounce_sender = postmaster
> forward_path = $home/.forward
> home_mailbox = Maildir/
> inet_interfaces = $myhostname,localhost
> local_recipient_maps = unix:passwd.byname
> local_transport = local
> mail_owner = postfix
> mydestination = $myhostname, localhost.localdomain, localhost.localdomain, 
> localhost
> myhostname = hosting.pippo.it
> mynetworks = 127.0.0.0/8, 192.168.1.0/24, 192.168.2.0/24
> myorigin = $myhostname
> queue_directory = /var/spool/postfix
> relayhost = 192.168.1.4
> smtpd_restriction_classes = local_only
> unknown_local_recipient_reject_code = 550
> virtual_alias_maps = ldap:aliases
> virtual_gid_maps = static:1003
> virtual_mailbox_base = /var/vmail
> virtual_mailbox_domains = ldap:domains
> virtual_mailbox_maps = ldap:mailbox
> virtual_minimum_uid = 500
> virtual_transport = virtual
> virtual_uid_maps = static:1002
>

as you can see, there are no smtpd_*_restrictions, probably because of a
typo in your main.cf (restrictsionS is plural). but don't fix the typo.
use smtpd_sender_restrictions as I suggested.

Reply via email to