Ver Mensaje Individual
  #7 (permalink)  
Antiguo 22/07/2011, 15:08
Avatar de manyblue
manyblue
 
Fecha de Ingreso: marzo-2008
Mensajes: 329
Antigüedad: 16 años, 1 mes
Puntos: 10
Respuesta: Problema Ubuntu Lamp php

La solucion o decision que he tomado es instalar Sendmail en el Ubuntu y he instalado:

# apt-get install sendmail
# apt-get install sendmail-cf

He visto que se creo el script de arranque en /etc/init/sendmail

He variado el php.ini y estas lineas las he dejado asi:

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = info@xxxxx.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = /usr/sbin/sendmail

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = On

; The path to a log file that will log all mail() calls. Log entries include
; the full path of the script, line number, To address and headers.
;mail.log =

En el fichero /etc/mail/local-host-names añadi mi dominio "chingadas.com"

Reinicie el sistema y ya os contare mañana si me envia los email o no XD

Ha se me olvidaba, en el fichero /etc/mail/access no hice nada lo deje como digo yo de fabrica, si quieres lo paso a ver si tambien hay que hacerle algo creo que si pero no se lo e hecho añadir las ips de la red que lo usaran es decir la ip interna del servidor en el que esta. pero bueno veremos a ver si con los valores por defecto esto va.


Con esto creo que se podra solventar el problema de los email.

Si no es asi decidmelo porfavor.

Un saludo y gracias de nuevo porvuestras molestias.
Manyblue