Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

STMP Setup 1

Status
Not open for further replies.

southbeach

Programmer
Jan 22, 2008
879
US
I am working on a Ubuntu based server and have edited my php.ini file, stopped/started apache2; I then tested a simply PHP script that sends an email out. The script is a tested script and works well on a different server. My Ubuntu server is not sending email at all.

Other than setting the value for SMTP, what must I change?

Regards,




--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
you probably need to install an MTA.

try
Code:
apt-get install postfix

and consider webmin for managing your server.


or use phpmailer which has its own SMTP class.
 
Just tried installing postfix and ran into problems

Code:
Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: fesweb.hsd1.fl.comcast.net.
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: fesweb.hsd1.fl.comcast.net.
dpkg: error processing postfix (--configure):
 subprocess post-installation script returned error exit status 75
dpkg: dependency problems prevent configuration of bsd-mailx:
 bsd-mailx depends on postfix | mail-transport-agent; however:
  Package postfix is not configured yet.
  Package mail-transport-agent is not installed.
  Package postfix which provides mail-transport-agent is not configured yet.
dpkg: error processing bsd-mailx (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mailx:
 mailx depends on bsd-mailx; however:
  Package bsd-mailx is not configured yet.
dpkg: error processing mailx (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc6 ...
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message ind
icates its a followup error from a previous failure.
                                                    ldconfig deferred processing now taking place
Errors were encountered while processing:
 postfix
 bsd-mailx
 mailx
E: Sub-process /usr/bin/dpkg returned an error code (1)

I really do not know what to make of these errors (no experience with postfix)

Regards,


--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
your hostname is not properly specified. use webmin to help you.

but for your current problem, use phpmailer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top