Newsgroup: it.comp.os.linux.sys
Titolo: Postfix + Amavis - abilitare relay interno

Ciao, premetto che non sono un esperto di postfix,
ho sempre usato Qmail ma da un po' di tempo sono "costretto"
ad aggiornarmi pure io ;-) ..
Ho una macchina debian lenny con Ispcp Omega
con Postfix + Amavis.
Va tutto bene fuorchè il relay interno,
nel senso che sul server ci sono dei siti e non spediscono senza 
autenticazione.
Il log che mi da è questo:
postfix/qmgr[27229]: 983141A61FB: to=<te...@xxxxx.cxm>, relay=none, 
delay=0.02, delays=0.02/0/0/0, dsn=4.3.0, status=deferred (mail 
transport unavailable)
-----------------------------------
questo è il postconf:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_at_myorigin = yes
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
inet_interfaces = all
local_destination_recipient_limit = 1
local_recipient_maps = unix:passwd.byname $alias_database
local_transport = local
mail_spool_directory = /var/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
message_size_limit = 0
mydestination = $myhostname, $mydomain
mydomain = ns1.xxx.net.local
myhostname = 
ns1.xxx.net
mynetworks = 
127.0.0.0/8,IP_DEL_SERVER,IP_DEL_SERVER
mynetworks_style = host
myorigin = $myhostname
recipient_delimiter = +
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP ispCP 1.0.6 OMEGA Managed
smtpd_data_restrictions = reject_multi_recipient_bounce, 
reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, 
permit_sasl_authenticated, reject_invalid_helo_hostname, 
reject_non_fqdn_helo_hostname
smtpd_recipient_restrictions = reject_non_fqdn_recipient, 
   reject_unknown_recipient_domain,         permit_mynetworks, 
permit_sasl_authenticated, reject_unauth_destination, 
reject_unlisted_recipient, reject_rbl_client 
sbl.spamhaus.org
, 
reject_rbl_client 
xbl.spamhaus.org
, reject_rbl_client 
multi.surbl.org
, 
reject_rbl_client 
dnsbl.sorbs.net
   permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = reject_non_fqdn_sender, 
reject_unknown_sender_domain, permit_mynetworks, 
        permit_sasl_authenticated
transport_maps = hash:/etc/postfix/ispcp/transport
virtual_alias_maps = hash:/etc/postfix/ispcp/aliases
virtual_gid_maps = static:8
virtual_mailbox_base = /var/mail/virtual
virtual_mailbox_domains = hash:/etc/postfix/ispcp/domains
virtual_mailbox_limit = 0
virtual_mailbox_maps = hash:/etc/postfix/ispcp/mailboxes
virtual_minimum_uid = 1001
virtual_transport = virtual
virtual_uid_maps = static:1001
------------------------------------------------------
master.cf
:
smtp      inet  n       -       -       -       -       smtpd
     -o smtpd_proxy_filter=localhost:10024
     -o content_filter=
localhost:10025 inet n  -       n       -       -       smtpd
     -o content_filter=
     -o smtpd_proxy_filter=
     -o smtpd_authorized_xforward_hosts=
127.0.0.0/8,xxx.xxx.xxx.xxx
     -o smtpd_client_restrictions=
     -o smtpd_helo_restrictions=
     -o smtpd_sender_restrictions=
     -o smtpd_recipient_restrictions=permit_mynetworks,reject
     -o smtpd_data_restrictions=
     -o mynetworks=
127.0.0.0/8,xxx.xxx.xxx.xxx
     -o reveive_override_options=no_unknown_recipient_checks
587       inet  n       -       -       -       -       smtpd
         -o 
smtpd_client_restrictions=permit_sasl_authenticated,reject_unauth_destination
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
         -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
----------------------------------------------------------------------
Pensavo fosse il parametro mynetworks ... ma nada..
Aiutoooooooooo!!!
-- Yena --

 autenticazione.
Ho risolto eliminando la direttiva:
content_filter = amavis:[127.0.0.1]:10024
dal 
main.cf
in modo da non far processare ad Amavis le mail inviate dal server stesso.
Spero sia la soluzione corretta :-)
-- Yena --