Proftpd

2007-05-15 Conversa Ramon Cuñé

He instal·lat en un Debian etch un servidor ftp (Proftpd) que dona
servei pel port 1021. Desde la red interna no tinc cap problema, i tot
funciona correctament. En canvi desde fora (tinc una adsl amb ip fixa)
em dona el següent error:

$ ftp
ftp open ftp-public..com 1021
Connected to ftp-public..com
220 ProFTPD 1.3.0 Server (Debian) [:::10.10.4.5]
Name (ftp-public..com:usuari): ftp2
331 Password required for ftp2.
Password:
230 User ftp2 logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp ls
500 Illegal PORT command
ftp: bind: Address already in use

Algú sap d'on pot venir aquest error?

Gràcies!



Re: Proftpd

2007-05-15 Conversa Jaume Sabater
L'FTP usa els ports 21 i 20, el 21 per control i el 20 per enviar dades. Tu 
li has posat el 21 al 1021, però del 20 re de re.

Hauràs de fer ftp's passius si vols que les dades s'envïin pel port 1021 (el 
de control).

Sinó, et tocarà obrir els ports alts amb tcp syn des del port 20, o posar 
un modul ftp per a les iptables, que t'obri les peticions procedents de 20 
quan estableixes una connexió.

El Tuesday 15 May 2007 10:22, Ramon Cuñé va escriure:
 He instal·lat en un Debian etch un servidor ftp (Proftpd) que dona
 servei pel port 1021. Desde la red interna no tinc cap problema, i tot
 funciona correctament. En canvi desde fora (tinc una adsl amb ip fixa)
 em dona el següent error:

 $ ftp
 ftp open ftp-public..com 1021
 Connected to ftp-public..com
 220 ProFTPD 1.3.0 Server (Debian) [:::10.10.4.5]
 Name (ftp-public..com:usuari): ftp2
 331 Password required for ftp2.
 Password:
 230 User ftp2 logged in.
 Remote system type is UNIX.
 Using binary mode to transfer files.
 ftp ls
 500 Illegal PORT command
 ftp: bind: Address already in use

 Algú sap d'on pot venir aquest error?

 Gràcies!

-- 
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: 
:: Jaume Sabater
:: administrador de sistemes
:: [EMAIL PROTECTED]

  argus.net TECNOLOGIA CREATIVA 
  creant en la web des de 1995

  www.argus.net | tel: 932 92 41 00 | fax: 932 92 42 25 | [EMAIL PROTECTED]
  Avgda. Marquès de Comillas, 13 (Poble Espanyol) | 08038 | Barcelona


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problemes amb Postfix

2007-05-15 Conversa Jaume Sabater
Hauries de mirar el /var/log/mail.log a veure què hi diu...

El Tuesday 15 May 2007 12:47, Roger Pueyo Centelles va escriure:
 Hola,

 Estic instal·lant una Debian Etch per substituir una Woody que fa temps que
 va fer-se vella. Aquest

 Ara mateix tinc problemes amb el Postfix, no hi ha manera que entrin
 missatges al servidor, així que he enviat un mail a pic i pala, per telnet:



 [EMAIL PROTECTED]:~$ telnet casal9.aaa.es 25

 Trying aaa.bbb.ccc.ddd...
 Connected to casal9.aaa.es
 Escape character is '^]'.

 220 casal9.aaa.es ESMTP Postfix (Debian/GNU)

 ehlo celtic

 250-casal9.aaa.es
 250-PIPELINING
 250-SIZE 10485760
 250-ETRN
 250-ENHANCEDSTATUSCODES
 250-8BITMIME
 250 DSN
 MAIL FROM:[EMAIL PROTECTED]
 250 2.1.0 Ok
 RCPT TO:[EMAIL PROTECTED]



 I aquí mor la conversa. Al cap d'una estona, surt session closed by remote
 host, i si torno a fer-li un telnet, quan li envio un EHLO ja ni em
 respon.

 Què pot ser això?

 Moltes gràcies

-- 
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: 
:: Jaume Sabater
:: administrador de sistemes
:: [EMAIL PROTECTED]

  argus.net TECNOLOGIA CREATIVA 
  creant en la web des de 1995

  www.argus.net | tel: 932 92 41 00 | fax: 932 92 42 25 | [EMAIL PROTECTED]
  Avgda. Marquès de Comillas, 13 (Poble Espanyol) | 08038 | Barcelona


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problemes amb Postfix

2007-05-15 Conversa Roger Pueyo Centelles

Al /var/log/mail.log surt:

May 15 21:19:01 casal9 postfix/smtpd[10015]: connect from celtic.aaa.es[
123.456.789.012]
May 15 21:19:53 casal9 postfix/cleanup[10019]: fatal: trace: remove
DD4EB3103B7 log: Permission denied
May 15 21:19:53 casal9 postfix/cleanup[10020]: fatal: trace: remove
E8D0E3103B8 log: Permission denied
May 15 21:19:54 casal9 postfix/pickup[10004]: warning: premature
end-of-input on public/cleanup socket while reading input attribute name
May 15 21:19:54 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/cleanup pid 10019 exit status 1
May 15 21:19:54 casal9 postfix/master[9998]: warning:
/usr/lib/postfix/cleanup: bad command startup -- throttling
May 15 21:19:54 casal9 postfix/cleanup[10021]: fatal: trace: remove
E95493103B7 log: Permission denied
May 15 21:19:54 casal9 postfix/smtpd[10015]: warning: premature end-of-input
on public/cleanup socket while reading input attribute name
May 15 21:19:54 casal9 postfix/smtpd[10015]: fatal: unable to connect to the
public cleanup service
May 15 21:19:54 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/cleanup pid 10020 exit status 1
May 15 21:19:55 casal9 postfix/pickup[10004]: warning: premature
end-of-input on public/cleanup socket while reading input attribute name
May 15 21:19:55 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/cleanup pid 10021 exit status 1
May 15 21:19:55 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/smtpd pid 10015 exit status 1
May 15 21:19:55 casal9 postfix/master[9998]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling



A /var/log/mail.err

May 15 21:19:53 casal9 postfix/cleanup[10019]: fatal: trace: remove
DD4EB3103B7 log: Permission denied
May 15 21:19:53 casal9 postfix/cleanup[10020]: fatal: trace: remove
E8D0E3103B8 log: Permission denied
May 15 21:19:54 casal9 postfix/cleanup[10021]: fatal: trace: remove
E95493103B7 log: Permission denied
May 15 21:19:54 casal9 postfix/smtpd[10015]: fatal: unable to connect to the
public cleanup service
May 15 21:20:55 casal9 postfix/cleanup[10023]: fatal: trace: remove
03C5E3103B7 log: Permission denied


/var/log/mail.info

May 15 21:19:01 casal9 postfix/smtpd[10015]: connect from celtic.upc.es[
147.83.205.48]
May 15 21:19:53 casal9 postfix/cleanup[10019]: fatal: trace: remove
DD4EB3103B7 log: Permission denied
May 15 21:19:53 casal9 postfix/cleanup[10020]: fatal: trace: remove
E8D0E3103B8 log: Permission denied
May 15 21:19:54 casal9 postfix/pickup[10004]: warning: premature
end-of-input on public/cleanup socket while reading input attribute name
May 15 21:19:54 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/cleanup pid 10019 exit status 1
May 15 21:19:54 casal9 postfix/master[9998]: warning:
/usr/lib/postfix/cleanup: bad command startup -- throttling
May 15 21:19:54 casal9 postfix/cleanup[10021]: fatal: trace: remove
E95493103B7 log: Permission denied
May 15 21:19:54 casal9 postfix/smtpd[10015]: warning: premature end-of-input
on public/cleanup socket while reading input attribute name
May 15 21:19:54 casal9 postfix/smtpd[10015]: fatal: unable to connect to the
public cleanup service
May 15 21:19:54 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/cleanup pid 10020 exit status 1
May 15 21:19:55 casal9 postfix/pickup[10004]: warning: premature
end-of-input on public/cleanup socket while reading input attribute name
May 15 21:19:55 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/cleanup pid 10021 exit status 1
May 15 21:19:55 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/smtpd pid 10015 exit status 1
May 15 21:19:55 casal9 postfix/master[9998]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling


Està clar que hi ha quelcom que falla... Vaig a veure això de que no pugui
esborrar el log, que tampoc entenc ben bé perquè ho ha de fer.

Salutacions,

Roger

El 15/05/07, Jaume Sabater [EMAIL PROTECTED] ha escrit:


Hauries de mirar el /var/log/mail.log a veure què hi diu...

El Tuesday 15 May 2007 12:47, Roger Pueyo Centelles va escriure:
 Hola,

 Estic instal·lant una Debian Etch per substituir una Woody que fa temps
que
 va fer-se vella. Aquest

 Ara mateix tinc problemes amb el Postfix, no hi ha manera que entrin
 missatges al servidor, així que he enviat un mail a pic i pala, per
telnet:



 [EMAIL PROTECTED]:~$ telnet casal9.aaa.es 25

 Trying aaa.bbb.ccc.ddd...
 Connected to casal9.aaa.es
 Escape character is '^]'.

 220 casal9.aaa.es ESMTP Postfix (Debian/GNU)

 ehlo celtic

 250-casal9.aaa.es
 250-PIPELINING
 250-SIZE 10485760
 250-ETRN
 250-ENHANCEDSTATUSCODES
 250-8BITMIME
 250 DSN
 MAIL FROM:[EMAIL PROTECTED]
 250 2.1.0 Ok
 RCPT TO:[EMAIL PROTECTED]



 I aquí mor la conversa. Al cap d'una estona, surt session closed by
remote
 host, i si torno a fer-li un telnet, quan li envio un EHLO ja ni em
 respon.

 Què pot ser això?

 Moltes gràcies

--
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
:: Jaume Sabater
:: 

Re: Problemes amb Postfix

2007-05-15 Conversa Roger Pueyo Centelles

També veig que si poso un usuari que no existeix, no l'accepta.

RCPT TO:sdaflkdhkjhjhgt
550 5.1.1 sdaflkdhkjhjhgt: Recipient address rejected: User unknown in
local recipient table

Salut!

2007/5/15, Roger Pueyo Centelles [EMAIL PROTECTED]:


Al /var/log/mail.log surt:

May 15 21:19:01 casal9 postfix/smtpd[10015]: connect from celtic.aaa.es[
123.456.789.012]
May 15 21:19:53 casal9 postfix/cleanup[10019]: fatal: trace: remove
DD4EB3103B7 log: Permission denied
May 15 21:19:53 casal9 postfix/cleanup[10020]: fatal: trace: remove
E8D0E3103B8 log: Permission denied
May 15 21:19:54 casal9 postfix/pickup[10004]: warning: premature
end-of-input on public/cleanup socket while reading input attribute name
May 15 21:19:54 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/cleanup pid 10019 exit status 1
May 15 21:19:54 casal9 postfix/master[9998]: warning:
/usr/lib/postfix/cleanup: bad command startup -- throttling
May 15 21:19:54 casal9 postfix/cleanup[10021]: fatal: trace: remove
E95493103B7 log: Permission denied
May 15 21:19:54 casal9 postfix/smtpd[10015]: warning: premature
end-of-input on public/cleanup socket while reading input attribute name
May 15 21:19:54 casal9 postfix/smtpd[10015]: fatal: unable to connect to
the public cleanup service
May 15 21:19:54 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/cleanup pid 10020 exit status 1
May 15 21:19:55 casal9 postfix/pickup[10004]: warning: premature
end-of-input on public/cleanup socket while reading input attribute name
May 15 21:19:55 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/cleanup pid 10021 exit status 1
May 15 21:19:55 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/smtpd pid 10015 exit status 1
May 15 21:19:55 casal9 postfix/master[9998]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling



A /var/log/mail.err

May 15 21:19:53 casal9 postfix/cleanup[10019]: fatal: trace: remove
DD4EB3103B7 log: Permission denied
May 15 21:19:53 casal9 postfix/cleanup[10020]: fatal: trace: remove
E8D0E3103B8 log: Permission denied
May 15 21:19:54 casal9 postfix/cleanup[10021]: fatal: trace: remove
E95493103B7 log: Permission denied
May 15 21:19:54 casal9 postfix/smtpd[10015]: fatal: unable to connect to
the public cleanup service
May 15 21:20:55 casal9 postfix/cleanup[10023]: fatal: trace: remove
03C5E3103B7 log: Permission denied


/var/log/mail.info

May 15 21:19:01 casal9 postfix/smtpd[10015]: connect from celtic.upc.es[
147.83.205.48]
May 15 21:19:53 casal9 postfix/cleanup[10019]: fatal: trace: remove
DD4EB3103B7 log: Permission denied
May 15 21:19:53 casal9 postfix/cleanup[10020]: fatal: trace: remove
E8D0E3103B8 log: Permission denied
May 15 21:19:54 casal9 postfix/pickup[10004]: warning: premature
end-of-input on public/cleanup socket while reading input attribute name
May 15 21:19:54 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/cleanup pid 10019 exit status 1
May 15 21:19:54 casal9 postfix/master[9998]: warning:
/usr/lib/postfix/cleanup: bad command startup -- throttling
May 15 21:19:54 casal9 postfix/cleanup[10021]: fatal: trace: remove
E95493103B7 log: Permission denied
May 15 21:19:54 casal9 postfix/smtpd[10015]: warning: premature
end-of-input on public/cleanup socket while reading input attribute name
May 15 21:19:54 casal9 postfix/smtpd[10015]: fatal: unable to connect to
the public cleanup service
May 15 21:19:54 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/cleanup pid 10020 exit status 1
May 15 21:19:55 casal9 postfix/pickup[10004]: warning: premature
end-of-input on public/cleanup socket while reading input attribute name
May 15 21:19:55 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/cleanup pid 10021 exit status 1
May 15 21:19:55 casal9 postfix/master[9998]: warning: process
/usr/lib/postfix/smtpd pid 10015 exit status 1
May 15 21:19:55 casal9 postfix/master[9998]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling


Està clar que hi ha quelcom que falla... Vaig a veure això de que no pugui
esborrar el log, que tampoc entenc ben bé perquè ho ha de fer.

Salutacions,

Roger

El 15/05/07, Jaume Sabater [EMAIL PROTECTED] ha escrit:

 Hauries de mirar el /var/log/mail.log a veure què hi diu...

 El Tuesday 15 May 2007 12:47, Roger Pueyo Centelles va escriure:
  Hola,
 
  Estic instal·lant una Debian Etch per substituir una Woody que fa
 temps que
  va fer-se vella. Aquest
 
  Ara mateix tinc problemes amb el Postfix, no hi ha manera que entrin
  missatges al servidor, així que he enviat un mail a pic i pala, per
 telnet:
 
 
 
  [EMAIL PROTECTED]:~$ telnet casal9.aaa.es 25
 
  Trying aaa.bbb.ccc.ddd...
  Connected to casal9.aaa.es
  Escape character is '^]'.
 
  220 casal9.aaa.es ESMTP Postfix (Debian/GNU)
 
  ehlo celtic
 
  250-casal9.aaa.es
  250-PIPELINING
  250-SIZE 10485760
  250-ETRN
  250-ENHANCEDSTATUSCODES
  250-8BITMIME
  250 DSN
  MAIL FROM:[EMAIL PROTECTED]
  250 2.1.0 Ok
  RCPT TO:[EMAIL