[Linux-Biella] problema con postfix - relay

Leonardo Buffa leonardo.buffa a bilug.it
Lun 27 Ott 2008 10:15:24 CET


ciao
ho un serverillo con postfix che vorrei utilizzare come macchina
pubblica per consegnare le mail al exchange interno
il relay ha il suo bell'IP pubblico
l'exchange ha 10.239.1.7/22

il main.cf presenta quindi (oltre alle altre cose):

relayhost = 10.239.1.7
relay_domains = DOMINIO.it
mynetworks = 10.239.0.0/22, IPPUBBLICI, IPPUBBLICINAT


questo dovrebbe far si che le mail che vengono ricevute dal postfix
verso indirizzi @DOMINIO.it vengono automaticamente rimandate al sig.
10.239.1.7 (e infatti cosi' e' stato verificato funzionare
correttamente)

il problema e' che se io poi dal sig. 10.239.1.7 cerco di inviare mail
(da lui come da tutta la rete 10.239.0.0/22) ho aggiunto pure gli
ip pubblici con i quali viene nattato il exchange ma nulla: ottengo un
bel relay deined :(

questo e' il messaggio a colpi di telnet sulla 25:

papertop a milintranet:~$ telnet RELAYPOSTFIX 25
Trying ...
Connected to .
Escape character is '^]'.
220 DOMINIO ESMTP
helo DOMINIO.it
250 milcrelay.DOMINIO.it
mail from: IO a DOMINIO.it
250 2.1.0 Ok
rcpt to: indirizzo.esterno a bilug.linux.it
554 5.7.1 <indirizzo.esterno a bilug.linux.com>: Relay access denied
quit
221 2.0.0 Bye
Connection closed by foreign host.


invece questo e' il log del postfix (mail.log)

Oct 27 17:20:45 milcrelay postfix/smtpd[3308]: warning: IPPUBBLICONAT:
hostname internal0.BLABLABLA.intra verification failed: Name or
service not known Oct 27 17:20:45 milcrelay postfix/smtpd[3308]:
connect from unknown[IPPUBBLICONAT] Oct 27 17:20:53 milcrelay
postfix/smtpd[3308]: NOQUEUE: reject: RCPT from unknown[IPPUBBLICONAT]:
554 5.7.1 <indirizzo.esterno a bilug.linux.it>: Relay access denied;
from=<IO a DOMINIO.it> to=<indirizzo.esterno a bilug.linux.it>
proto=SMTP helo=<DOMINIO.it>



dove sbaglio? qualcuno ha idee/consigli?


ciao, leo

-- 
leonardo 'LeOS' buffa
IT security consultant

human knowledge belongs to the world
------------------------------
Linux Registered User: #135079
------------------------------


Maggiori informazioni sulla lista Linux