/var/qmail/bin/sendmail (addendum)
Also, I tried: echo to:[EMAIL PROTECTED] | /var/qmail/bin/sendmail That gave me these lines in /var/log/maillog: Mar 11 11:23:02 www qmail: 984327782.476368 info msg 2920341: bytes 212 from <[EMAIL PROTECTED]> qp 9916 uid 0 Mar 11 11:23:02 www qmail: 984327782.477601 end msg 2920341 echo to:[EMAIL PROTECTED] | /var/qmail/bin/qmail-inject, however, works just fine. Alex __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
/var/qmail/bin/sendmail
I'm trying to get FormMail.pl to work with qmail, and I'm having quite a time of it. I can't point it towards /usr/local/sendmail, because that doesn't exist on my system (OBSD 2.8). I tried /usr/libexec/sendmail, but that didn't work, either -- nothing showed up in my Apache error logs or /var/log/maillog. FYI, ls -l on /usr/libexec/sendmail shows: -r-sr-xr-x 1 root bin 380928 Nov 6 12:40 sendmail I also tried, as per the suggestion of someone from this list, pointing it at /var/qmail/bin/sendmail. However, this does nothing, either. ls -l shows: -rwxr-xr-x 1 root qmail 16384 Mar 5 00:26 sendmail What could be wrong with this? I need this form ASAP, as I have business customers who will be using it soon. Thanks, Alex Le Fevre __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Re: linking /usr/sbin/sendmail to /var/qmail/bin/sendmail ?
+ "Vegard Hansen" <[EMAIL PROTECTED]>: | but i havent got any sendmail scripts under /var/qmail/bin/... | Is this right? No. Your qmail installation is broken. (BTW /var/qmail/bin/sendmail is a program, not a script.) - Harald
Re: linking /usr/sbin/sendmail to /var/qmail/bin/sendmail ?
> I read in a howto that you should link the old sendmail scripts in > /usr/sbin/sendmail to /var/qmail/bin/sendmail, but i havent got any sendmail > scripts under /var/qmail/bin/... Is this right? Actually, you should have /usr/sbin/sendmail (and, while you are at it /usr/lib/sendmail) both be links to /var/qmail/bin/sendmail. This way, legacy apps and scripts which pipe to sendmail will still work. > I cant get qmail to listen to port 25, even if qmail is running.. Port 110 > is listening but it closed connection after about 5 secs. Qmail needs another tool, such as inetd (ugh) or tcpserver (ucspi-tcp) to listen on port 25. > Is /var/qmail/bin/qmail-inject the script that takes over sendmails old > jobs? Sorta. qmail-inject is called by /var/qmail/bin/sendmail as a local program you pipe outgoing mail to. Sendmail is one big app that can, depending on its mood: * Listen on port 25 * Update the alaias database * Pipe local mail to remote machines * etc. Qmail, on the other hand, is a series of small apps, which makes it a lot leaner, faster, and more secure than sendmail. Very useful if you get the kind of mail traffic, say, egroups gets. - Sam
linking /usr/sbin/sendmail to /var/qmail/bin/sendmail ?
I read in a howto that you should link the old sendmail scripts in /usr/sbin/sendmail to /var/qmail/bin/sendmail, but i havent got any sendmail scripts under /var/qmail/bin/... Is this right? I cant get qmail to listen to port 25, even if qmail is running.. Port 110 is listening but it closed connection after about 5 secs. All the packages are installed and the scripts are running.. Is /var/qmail/bin/qmail-inject the script that takes over sendmails old jobs? Vennlig hilsen Vegard Hansen Systems developer LOGIQ AS Box 268 N-1752 Halden Norway Phone : 69190725 Fax : 69177019 Mobile : 41303033 E-mail : [EMAIL PROTECTED]
RE: using qmail-inject or /var/qmail/bin/sendmail -t and PHP
OK, here goes... $email is from a form, sets to [EMAIL PROTECTED] mail("[EMAIL PROTECTED]","Subscribe","", "From: $email\n"); this is what I get from the subscription request from ezmlm: From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Delivered-To: responder for [EMAIL PROTECTED] Received: (qmail 32636 invoked from network); 28 Jul 2000 03:00:10 - Received: from admin.f-tech.net (208.149.160.30) by mail.f-tech.net with SMTP; 28 Jul 2000 03:00:10 - And when it initailly went out, the envelope says root sent it: Jul 27 22:43:44 admin qmail: 964752224.680032 new msg 85197 Jul 27 22:43:44 admin qmail: 964752224.680211 info msg 85197: bytes 253 from <[EMAIL PROTECTED]> qp 25427 uid 515 Jul 27 22:43:44 admin qmail: 964752224.688182 starting delivery 5864: msg 85197 to remote [EMAIL PROTECTED] Jul 27 22:43:44 admin qmail: 964752224.688317 status: local 0/10 remote 1/20 Jul 27 22:43:44 admin qmail: 964752224.918474 delivery 5864: success: 208.149.160.16_accepted_message./Remote_host_said:_250_ok_964753210_qp_32636/ Jul 27 22:43:44 admin qmail: 964752224.918615 status: local 0/10 remote 0/20 Jul 27 22:43:44 admin qmail: 964752224.918657 end msg 85197 web server is not running as root. Any ideas? Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545 On Fri, 28 Jul 2000, David Harrison wrote: > In your PHP mail call you can just go: > > mail("[EMAIL PROTECTED]", "Subject", "Header", "From: > [EMAIL PROTECTED]\n"); > > This will add a From: header into the email itself. You can add other > headers as necessary in the PHP call. > > Not really the solution to your specific question but should at least allow > you to implement something to get it working. > > Regards, > > --david > > > -Original Message- > > From: Paul Farber [mailto:[EMAIL PROTECTED]] > > Sent: Friday, July 28, 2000 12:27 PM > > To: [EMAIL PROTECTED] > > Subject: using qmail-inject or /var/qmail/bin/sendmail -t and PHP > > > > > > Hello all > > > > I'm trying to use the built in mail function in PHP4.0.1p2 (which is > > expecting sendmail, I have the environment set to use > > /var/qmail/bin/sendmail -t). > > > > I need to set the Reply-To: with a valid e-mail address, yet > > the e-mail is > > using root as the reply to. > > > > How do I get /var/qmail/bin/sendmail to take a Reply-To: > > header without > > environment variables? > > > > Thanks > > > > Paul Farber > > Farber Technology > > [EMAIL PROTECTED] > > Ph 570-628-5303 > > Fax 570-628-5545 > > >
Re: using qmail-inject or /var/qmail/bin/sendmail -t and PHP
I also suggest adding Return-Path: user@host to handle any bounces. On Fri, Jul 28, 2000 at 12:37:40PM +1000, Jason Brooke wrote: > > you don't need to, you can use the 4th argument to Php's mail() function to > add your own reply-to header > > mail($to, $subject, $body, "Reply-to: user@host\n"); > > jason > > > > Hello all > > > > I'm trying to use the built in mail function in PHP4.0.1p2 (which is > > expecting sendmail, I have the environment set to use > > /var/qmail/bin/sendmail -t). > > > > I need to set the Reply-To: with a valid e-mail address, yet the e-mail is > > using root as the reply to. > > > > How do I get /var/qmail/bin/sendmail to take a Reply-To: header without > > environment variables? > > > > Thanks > > -- "Try not the patience of wizards, for they are subtle and quick to anger." --- Elric, Babylon 5 Public PGP Available by Finger: [EMAIL PROTECTED] PGP Fingerprint16 = FC F6 32 8D 9A CC 2A E5 02 FD 54 0F 35 9F 27 C2
Re: using qmail-inject or /var/qmail/bin/sendmail -t and PHP
you don't need to, you can use the 4th argument to Php's mail() function to add your own reply-to header mail($to, $subject, $body, "Reply-to: user@host\n"); jason > Hello all > > I'm trying to use the built in mail function in PHP4.0.1p2 (which is > expecting sendmail, I have the environment set to use > /var/qmail/bin/sendmail -t). > > I need to set the Reply-To: with a valid e-mail address, yet the e-mail is > using root as the reply to. > > How do I get /var/qmail/bin/sendmail to take a Reply-To: header without > environment variables? > > Thanks
RE: using qmail-inject or /var/qmail/bin/sendmail -t and PHP
In your PHP mail call you can just go: mail("[EMAIL PROTECTED]", "Subject", "Header", "From: [EMAIL PROTECTED]\n"); This will add a From: header into the email itself. You can add other headers as necessary in the PHP call. Not really the solution to your specific question but should at least allow you to implement something to get it working. Regards, --david > -Original Message- > From: Paul Farber [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 28, 2000 12:27 PM > To: [EMAIL PROTECTED] > Subject: using qmail-inject or /var/qmail/bin/sendmail -t and PHP > > > Hello all > > I'm trying to use the built in mail function in PHP4.0.1p2 (which is > expecting sendmail, I have the environment set to use > /var/qmail/bin/sendmail -t). > > I need to set the Reply-To: with a valid e-mail address, yet > the e-mail is > using root as the reply to. > > How do I get /var/qmail/bin/sendmail to take a Reply-To: > header without > environment variables? > > Thanks > > Paul Farber > Farber Technology > [EMAIL PROTECTED] > Ph 570-628-5303 > Fax 570-628-5545 >
using qmail-inject or /var/qmail/bin/sendmail -t and PHP
Hello all I'm trying to use the built in mail function in PHP4.0.1p2 (which is expecting sendmail, I have the environment set to use /var/qmail/bin/sendmail -t). I need to set the Reply-To: with a valid e-mail address, yet the e-mail is using root as the reply to. How do I get /var/qmail/bin/sendmail to take a Reply-To: header without environment variables? Thanks Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545