[Linux-Biella] problema con postfix - relay

Paul TT paultt a bilug.linux.it
Mer 29 Ott 2008 15:36:59 CET


Leonardo Buffa wrote:
> 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)
>   
torniamo a noi da capo: cosi' _tutte_ le mail che riceve le gira al 
10.239.1.7.....
che forse non e' quello che vuoi
anche perche se no a sto punto falle uscire tutte dal xcambio e via.
per quello dovresti usare il transport:
dominio.it   smtp:10.239.1.7
> 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?
posta anche il resto del file o l'output di postconf



-- 
Never go to a porn site where you have to register.



Maggiori informazioni sulla lista Linux