[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] sendmail response is too slow



"Mark Yamamoto" <mark@xxxxxxxxx> writes:

> I have RaQ4 and have some problem with sendmail.
> When I send e-mail from RaQ by using perl script, it takes more than 40
> seconds (sometimes more than 1 minutes!) to send email.
> I use the script line something like:
> open ($MESSAGE, "$SENDMAIL_PATH $ADDRESS");
> Actually it's ok to takes minutes to send it, but I want "open()" returns
> immediately right after its call.

Just use fork() to fork off a new process, that can take of handling
the email.

I would however consider using the Net::SMTP module instead of
sendmail. It seems like a much more clean thing to do (and then, it
would work better on Windows, Mac, etc. too).

> I just wander this problem is because of sendmail configuration or this is
> just normal.

If it takes unusually long time to send an email, you should
doublecheck, that your dns settings are correct (try resolving the
domain names of the sender and receiver, and their respective ip
addresses).

-- 
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx,
http://www.mermaidconsulting.com/