[PHP] php mail() sendmail hanging freebsd 4.10

2004-11-21 Thread Thomas S. Crum
When hitting php pages that use the mail() function, I get a 5 second hang
in the browser.  The mail is then being delivered fine.

Many of the same scripts that use this mail function ran fine with ½ sec. or
less delay on my old redhat box.

Any ideas how to make it run quicker would be greatly appreciated. I've
included the sendmail.mc and php.ini files below.

Best,
 
Thomas S. Crum

# Sendmail .mc file
divert(-1)
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.19 2003/12/31
17:42:16 gshapiro Exp $')
OSTYPE(freebsd4)
DOMAIN(generic)

FEATURE(access_db, `hash -o -TTMPF /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable') FEATURE(virtusertable,
`hash -o /etc/mail/virtusertable')

FEATURE(use_cw_file)
dnl set SASL options
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confDEF_AUTH_INFO', `/etc/mail/auth-info')dnl

dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl   your permission.
dnl FEATURE(relay_based_on_MX)

dnl DNS based black hole lists
dnl 
dnl DNS based black hole lists come and go on a regular basis dnl so this
file will not serve as a database of the available servers. dnl For that,
visit dnl
http://directory.google.com/Top/Computers/Internet/Abuse/Spam/Blacklists/

dnl Uncomment to activate Realtime Blackhole List
dnl information available at http://www.mail-abuse.com/
dnl NOTE: This is a subscription service as of July 31, 2001 dnl
FEATURE(dnsbl) dnl Alternatively, you can provide your own server and
rejection message: dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `550
Mail from  ${client_addr}  rejected, see
http://mail-abuse.org/cgi-bin/lookup?; ${client_addr}')

dnl Dialup users should uncomment and define this appropriately dnl
define(`SMART_HOST', `your.isp.mail.server')

dnl Uncomment the first line to change the location of the default dnl
/etc/mail/local-host-names and comment out the second line. dnl
define(`confCW_FILE', `-o /etc/mail/sendmail.cw') define(`confCW_FILE', `-o
/etc/mail/local-host-names')

dnl Enable for both IPv4 and IPv6 (optional) DAEMON_OPTIONS(`Name=IPv4,
Family=inet') dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')

define(`confBIND_OPTS', `WorkAroundBroken') define(`confNO_RCPT_ACTION',
`add-to-undisclosed') define(`confPRIVACY_FLAGS',
`authwarnings,noexpn,novrfy')
MAILER(local)
MAILER(smtp)

# php.ini

; Language Options ;


; Enable the PHP scripting language engine under Apache.
engine = On

; Allow the ? tag.  Otherwise, only ?php and script tags are recognized.

; NOTE: Using short tags should be avoided when developing applications or ;
libraries that are meant for redistribution, or deployment on PHP ; servers
which are not under your control, because short tags may not ; be supported
on the target server. For portable, redistributable code, ; be sure not to
use short tags. short_open_tag = On

; Allow ASP-style % % tags.
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
precision=  14

; Enforce year 2000 compliance (will cause problems with non-compliant
browsers) y2k_compliance = On

; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit.  You can enable output buffering during runtime by calling the output
; buffering functions.  You can also enable output buffering for all files
by ; setting this directive to On.  If you wish to limit the size of the
buffer ; to a certain size - you can use a maximum number of bytes instead
of 'On', as ; a value for this directive (e.g., output_buffering=4096).
output_buffering = 4096

; You can redirect all of the output of your scripts to a function.  For ;
example, if you set output_handler to mb_output_handler, character ;
encoding will be transparently converted to the specified encoding. ;
Setting any output handler automatically turns on output buffering. ; Note:
People who wrote portable scripts should not depend on this ini
;   directive. Instead, explicitly set the output handler using
ob_start().
;   Using this ini directive may cause problems unless you know what
script 
;   is doing.
; Note: You cannot use both mb_output_handler with ob_iconv_handler
;   and you cannot use both ob_gzhandler and
zlib.output_compression. 
;output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size ;
to be used for compression (default is 4KB) ; Note: Resulting chunk size may
vary due to nature of compression. PHP 
;   outputs chunks that are few handreds bytes each as a result of
compression. 
;   If you want larger chunk 

[PHP] mail - sendmail

2001-08-04 Thread Michael Mehlmann

Hi!

I wanted to use the full SMTP-Protocol including MAIL FROM: and RCPT
TO:, and therefore I can't use mail().
I have written a perl-script, I call from PHP, that connects to the
SMTP-server directly and this worked fine - until a server went down, and my
ISP's-SMTP-Server told my perl-script, that the emailaddress is not routable.
If the mail had been in a mailqueue, no problem - after a few hours it would
be up again!

So is there a way to combine these 2 features?
1. give the mail not directly to the SMTP-Server, but to the mailqueue
2. use the full SMTP-Protocol:
for example:
--
MAIL FROM: [EMAIL PROTECTED]
RCPT TO: [EMAIL PROTECTED]

From: Newsletter [EMAIL PROTECTED]
To: Newsletter-List [EMAIL PROTECTED]
Subject: blabla

BODY ...
--

thanks
Michi

-- 
Aufgepasst - jetzt viele 11 New WebHosting Pakete ohne
Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung!
http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a


-- 
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] mail/sendmail lmitations?

2001-02-07 Thread Steve Werby

"Dave VanAuken" [EMAIL PROTECTED] wrote:
 anyone have an idea what the limit either in addresses or string
 length that sendmail can handle in a to, cc, or bcc field?

I think the total message header length can have a max byte size in sendmail
(I think primarily as a crude anti-spam method), but I'm not certain b/c I
quickly looked and couldn't find it.  Check sendmail.cf.  I don't think
there are specific limits for the fields you listed, but I could be wrong.

--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/


-- 
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]