HI. Sorry if this is a stupid question, I'm a real newbie ;-) 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? When I send mail from my email client I use my ISP's smtp server. Regards, Dan Eskildsen
On Sat, 14 Jun 2003 12:32:49 +0200
"Dan Eskildsen"
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
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? Thanks FXF -- ______________________ Courtesy of SuSE Linux http://www.nibz.org
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
I have my own unique IP address but the ISP still blocks port 25
traffic. :-(
Is there maybe a way to edit the DNS file so that the MX record points
to another port?
Dan.
----- Original Message -----
From: "illustre"
solution, but because I have this very same problem.
I am on DSL, always on, and my ISP also blocks port 25.
but if you have your own ip your not using there port, you are using you own, is this correct?
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Sat, 2003-06-14 at 11:46, Dan Eskildsen wrote:
I have my own unique IP address but the ISP still blocks port 25 traffic. :-(
Is there maybe a way to edit the DNS file so that the MX record points to another port?
Dan.
DNS does not direct connections to ports, only addresses. A firewall can redirect to another port. Ken
On Sat, Jun 14, 2003 at 11:55:23AM -0400, Ken Schneider wrote:
On Sat, 2003-06-14 at 11:46, Dan Eskildsen wrote:
I have my own unique IP address but the ISP still blocks port 25 traffic. :-(
O.K. so you're on some kind of DSL, right? If I understand you correctly, then what you want is to have your PHP-script send mail? Basically there should be no problem. Especially if you want to use your ISP's mailserver as relay. In fact, this is no different than what you do when *you* send mail, using your favourite email client. What your ISP is blocking is port 25 *downstream*. If they were blocking port 25 *upstream* you wouldn't be able to send mail at all. At a later stage you might want to consider having sendmail/postfix connect directly to the destination mailserver, but for now just use your ISP as relay. Someone already mentioned the place in YaST where you set it up. Keep it simple. Use Postfix. It's SuSE's default MTA, and for what you want to do, the YaST module for setting it up should get you where you want to be with the least hassle. One thing you might want to look into, is masquerading. You might run into the situation that your ISP's mailserver will reject mail from your PHP, because the "From:" could be something like wwwrun@linux.local. In which case you can set up masquerading with YaST, so the From: gets changed to something your ISP mailserver accepts. While you're testing, open up a terminal and run tail -f /var/log/mail That way you get immediate feedback, whether the mail gets accepted...
Is there maybe a way to edit the DNS file so that the MX record points to another port?
Dan.
DNS does not direct connections to ports, only addresses. A firewall can redirect to another port.
Indeed. In this context, however, the point is moot. HTH Jon Clausen -- If we can't be free, at least we can be cheap!
participants (7)
-
Bruce Marshall
-
Dan Eskildsen
-
FX Fraipont
-
illustre
-
Jon Clausen
-
Ken Schneider
-
zentara