On Sat, 14 Jun 2003 12:32:49 +0200 "Dan Eskildsen" <netops@tdcadsl.dk> wrote:
Sorry if this is a stupid question, I'm a real newbie ;-)
Not a stupid question.
I have a suse 8.2 linux box I use to run apache/php/mysql My ISP has blocked port 25 because they say "customers have been abused through this port". I don't really need / want a mail server but what I would like to do is send email from a php program that I am writing.
Will I be able to do this? I assume that I will need to have postfix or sendmail running to send mail from php, right? Which is better/more secure, Postfix or sendmail?
You havn't said what sort of connection you have. Are you just on a dialup, dsl, cable modem? When you send mail from your php script, it uses the sendmail running on your machine, and it will get put in /var/mail/mqueue (or in clientmqueue if your sendmail isn't running). Then when you go to send the mail with "sendmail -q", it should send all the outgoing mail to the ISP's smtp server, if you have that configured in yast.
When I send mail from my email client I use my ISP's smtp server.
So all you need to do is setup your sendmail configuration to use your ISP's smtp server for out going mail. The actual places for these changes is /etc/sysconfig/sendmail (or postfix); where they will be called "SENDMAIL_SMARTHOST or POSTFIX_RELAYHOST" ( but yast will do this for you under mail configuration) -- use Perl; #powerful programmable prestidigitation