On Saturday 14 June 2003 9:56 am, FX Fraipont wrote:
zentara wrote:
On Sat, 14 Jun 2003 12:32:49 +0200
"Dan Eskildsen"
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)
May I jump into this conversation (not very polite..), not to offer a solution, but because I have this very same problem.
I am on DSL, always on, and my ISP also blocks port 25.
I would very much like to use my own mailserver, and have subscribed a noip.org service that redirects port 25 to another port to fool the ISP. My efforts have not been very successful so far. Where do I need to tell postfix that it should use another port?
I believe it would be in: /etc/postfix/master.cf
Thanks
FXF
-- ______________________ Courtesy of SuSE Linux http://www.nibz.org
-- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 06/14/03 09:51 + +----------------------------------------------------------------------------+ "Some people strengthen the society just by being the kind of people they are." - John W. Gardner