RE: [PHP] PHP sendmail configuration
The problem you are having took me a while to grasp. Basically, what happens is that sendmail sends the mail as the user php/apache was installed as (usually nobody@ or apache@ yourdomain.com). Setting the Return-Path does not work, as you cannot override the Return-Path set by the server in this way, that's why messages bounce to your root account when sent with a php mail() function. If you only host one domain on a server, you can fix this by editing the sendmail.cf file and setting the Return-Path: to something more meaningful: However, most people don't have the luxury of having a "one domain" hosting solution. Your only other option is to invoke sendmail with the -f switch: sendmail -f sender@address recipient@address richard check your php.ini & the mail stuff in there .. it's most likely > using the address either there or ur web server config file > > > -Original Message- > > From: Richard Baskett [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, 7 January 2003 10:49 AM > > To: PHP General > > Subject: [PHP] PHP sendmail configuration > > > > > > Ok I know it's off topic, but I've been working on this for over > > 5 hours now > > and I almost have it configured, but something is definitely wrong! > > Basically I can send email using sendmail by this command: > > > > echo "Just a test" | mail -s "test" [EMAIL PROTECTED] > > > > Now [EMAIL PROTECTED] receives the email, but the From address is > > [EMAIL PROTECTED] and I have no idea where it is getting that > > address from! Does anyone know how I can change that from address? > > > > And what would stop the above command from delivering to certain > > valid email > > addresses? > > > > This is definitely causing problems with my php server also when trying to > > send emails... > > > > Rick > > > > "Only a life lived for others is worth living." - Albert Einstein > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP sendmail configuration
richard check your php.ini & the mail stuff in there .. it's most likely using the address either there or ur web server config file > -Original Message- > From: Richard Baskett [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 7 January 2003 10:49 AM > To: PHP General > Subject: [PHP] PHP sendmail configuration > > > Ok I know it's off topic, but I've been working on this for over > 5 hours now > and I almost have it configured, but something is definitely wrong! > Basically I can send email using sendmail by this command: > > echo "Just a test" | mail -s "test" [EMAIL PROTECTED] > > Now [EMAIL PROTECTED] receives the email, but the From address is > [EMAIL PROTECTED] and I have no idea where it is getting that > address from! Does anyone know how I can change that from address? > > And what would stop the above command from delivering to certain > valid email > addresses? > > This is definitely causing problems with my php server also when trying to > send emails... > > Rick > > "Only a life lived for others is worth living." - Albert Einstein > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails
For perl look at http://www.cpan.org/modules/by-category/19_Mail_and_Usenet_News/Mail/Mail-Ch eckUser-1.02.readme As for php you would need to open a socket connection.. My advice would be to use the perl module and call a perl script from php. Regards Jon -- Jon Farmer Õ¿Õ¬ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -Original Message- From: Sebastian Stadtlich [mailto:[EMAIL PROTECTED]] Sent: 28 August 2001 15:26 To: 'Php-General (E-Mail) Subject: AW: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails any hint where to find the perl mod or some php-code that contacts mailservers like you described? > -Ursprüngliche Nachricht- > Von: Jon Farmer [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 28. August 2001 16:14 > An: Sebastian Stadtlich; 'Php-General (E-Mail) > Betreff: RE: [PHP] PHP/Sendmail interaction : how to get rid of wrong > emails > > > Well on submission of the email you could try contacting > their mail server > and pretend to a have a mail for them using SMTP. > > If you get a "recipient ok" or similar message.. ,thre is a > code for it, > then at least the server accepts mail for that address. You > might be better > off croning this rather than have the user wait on a http request. > Alternatively there is a perl mod that does this as well. > > Secondly you could write a script that downloads the mail > from root and > deletes out the database anything that bounces. You could > even delete these > messages from the root account once done > > HTH > > Regards > > Jon > > > -- > Jon Farmer Õ¿Õ¬ > Systems Programmer, Entanet www.enta.net > Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 > PGP Key available, send blank email to [EMAIL PROTECTED] > > -Original Message- > From: Sebastian Stadtlich [mailto:[EMAIL PROTECTED]] > Sent: 28 August 2001 15:08 > To: 'Php-General (E-Mail) > Subject: [PHP] PHP/Sendmail interaction : how to get rid of > wrong emails > > > Hi all > > I'm facing the Problem that lots of my users are too stupid to write > their email correct. > When i mail them with php a return email is send to me by their > mailserver, which > results in LOTS of mail for the root account. > Can i get sendmail to put the returned emails in a file? so that i can > check that file with php > and delete those mails from my DB ? > or is there a way to check the email when they enter it in a form > (online versus their mailserver)? > i already check for wrong email syntax, but that does not solve the > problem... > > Sebastian > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails
Well on submission of the email you could try contacting their mail server and pretend to a have a mail for them using SMTP. If you get a "recipient ok" or similar message.. ,thre is a code for it, then at least the server accepts mail for that address. You might be better off croning this rather than have the user wait on a http request. Alternatively there is a perl mod that does this as well. Secondly you could write a script that downloads the mail from root and deletes out the database anything that bounces. You could even delete these messages from the root account once done HTH Regards Jon -- Jon Farmer տլ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -Original Message- From: Sebastian Stadtlich [mailto:[EMAIL PROTECTED]] Sent: 28 August 2001 15:08 To: 'Php-General (E-Mail) Subject: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails Hi all I'm facing the Problem that lots of my users are too stupid to write their email correct. When i mail them with php a return email is send to me by their mailserver, which results in LOTS of mail for the root account. Can i get sendmail to put the returned emails in a file? so that i can check that file with php and delete those mails from my DB ? or is there a way to check the email when they enter it in a form (online versus their mailserver)? i already check for wrong email syntax, but that does not solve the problem... Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP & sendmail
"Juraj Hasko" <[EMAIL PROTECTED]> wrote in message 007c01c12ca3$c2ae51a0$ec01db0a@HASKO">news:007c01c12ca3$c2ae51a0$ec01db0a@HASKO... > Mail-Gear hasn't sendmail wrapper. > How about nullmailer? It has sendmail wrapper and could send message to any smtp or qmqp servers. http://untroubled.org/nullmailer/ -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP & sendmail
Mail-Gear hasn't sendmail wrapper. Juraj >Juraj Hasko wrote: >> >> Hi, >> >> I would like to know if PHP on *nix system can use another >SMTP mailer than sendmail. On WinNT is PHP indipendent on >concrete mail-server. In our company we >> use Symantec's Mail-Gear on Linux (Slackware) and I'd like >to setup PHP use it. Is it posible ? > >http://www.php.net/manual/en/configuration.php#ini.sendmail-path > >-- >Pavel a.k.a. Papi
Re: [PHP] PHP & sendmail
Juraj Hasko wrote: > > Hi, > > I would like to know if PHP on *nix system can use another SMTP mailer than >sendmail. On WinNT is PHP indipendent on concrete mail-server. In our company we > use Symantec's Mail-Gear on Linux (Slackware) and I'd like to setup PHP use it. Is >it posible ? http://www.php.net/manual/en/configuration.php#ini.sendmail-path -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP & sendmail
Yup, try qmail: www.qmail.org You need to adjust the setting in your php.ini as well. HTH Jon -Original Message- From: Juraj Hasko [mailto:[EMAIL PROTECTED]] Sent: 24 August 2001 14:19 To: [EMAIL PROTECTED] Subject: [PHP] PHP & sendmail Hi, I would like to know if PHP on *nix system can use another SMTP mailer than sendmail. On WinNT is PHP indipendent on concrete mail-server. In our company we use Symantec's Mail-Gear on Linux (Slackware) and I'd like to setup PHP use it. Is it posible ? Thanks in advance, Juraj Haško System Administrator CAC LEASING Slovakia, a.s. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]