Server Slow After Using Mail Function

Apr 20, 2008

I used the mail function in php to send mails to my 25000 members in a loop..

After using it my server has gone very slow.. Load has increased a lot from 2 to around 20.. Major load is taken by sql and then httpd (both have increased)..

I had restarted mysql and httpd.. even reinstalled apache but no help..

View 14 Replies


ADVERTISEMENT

Setting Up PHP Mail() Function On New Server

Jan 12, 2007

how to set up the mail () function in my PHP.ini on a Linux server.

Is there a generic path that I need to use in order to allow the mail function to work in the scripts?

We do have a mail server set up, the address of which being "mail.companyname.com" ... do I need to insert that into the ini file somwhere instead?

View 0 Replies View Related

[cPanel] Function Mail(); And Fowarders E-mail - Not Working

Jul 24, 2007

I have problem:
1. Function mail(); not working

2. osCommerce e-mail error:

Code:
Gid 32157 is not permitted to relay mail, or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail.

3. Fowarders working only on internal accounts e-mail
fowarder@mydomain.com --> email@mydomain.com - working
fowarder@mydomain.com --> my-emiail123@mail.pl - not working

This is VPS cPanel (OpenVZ) on my dedicated server.

View 3 Replies View Related

Disable Mail Function

May 21, 2008

I am starting to webhosting company in it I have included a package will be free and add supported and also I want to disable some functions like mail() ..........I mean I want to disable SMTP services anyone have idea how can I do that.

View 14 Replies View Related

Mail Function Not Work

Apr 5, 2008

the php mail function not work on my server!

when I run this function not show any error too.

for example I run this code:

<?php
echo "ok";
$to = 'myemail@mydomain.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: test@domainname.com' . "
" .
'Reply-To:test@test@domainname.com' . "
" .
'X-Mailer: PHP/' . phpversion();

if(mail($to, $subject, $message, $headers)){

echo "sent";

}else{

echo "notsent";
}
?>

View 14 Replies View Related

PHP Mail() Function Not Working

Dec 10, 2007

I have just changed servers and uploaded a mail() script which was working on my previous config but does not work on the new server config. What is stopping the emails from being delivered, is there something new in WHM that I need to do?

Here are my WHM and cPanel details:

WHM 11.11.0 cPanel 11.15.0-R18264
REDHAT 4 i686 on standard - WHM X v3.1.0

View 13 Replies View Related

PHP Mail() Function Does Not Work

Jul 25, 2007

I just re-installed PHP4, Apache, and MySQL and now the "mail" function in PHP will not work. Is there a way to correct this? Is there some configuration value in Apache or PHP I must change?

View 2 Replies View Related

How Much Can Php's Mail Function Really Handle

Apr 15, 2007

I have mixed feelings on the mail() function in php. I've seen it send out amazing numbers of emails and yet I keep reading that it is prone to problems. I'm wondering if someone can put an approximation on what you could/would send out in say 60 seconds. I know that there are tonnes of variables, so i'll try and remove a few:

- server hardware is typical of a cpanel/WHM shared hosting environment
- running apache/linux
- email is say 20kb HTML format
- mail is sent in a php script loop, one by one; alternatively, mail() could be called in clusters of x emails - like send 5 emails at once
- there are 400 recipients

View 7 Replies View Related

How To Enable/disable Mail() Function

Feb 16, 2009

how to know if mail() function is enabled or disabled on my server? how to enable/disable it?

can it be done via server control panel or is there a shell command for it?

one more thing, where to get/edit the SMTP data for my server?

View 14 Replies View Related

PHP Mail() Function Stopped Working

May 10, 2008

I have a dedicated that suddenly stop php mail() function to work.

Very strange because if I run php script with mail() function as root on command line all working fine.

But If I run php script with mail() function in my browser so not work. Seems that only ROOT can run mail() function.

View 3 Replies View Related

PHP Mail() Function Not Working With Lighttpd

May 10, 2007

I recently started using lighttpd + with PHP using Fast-CGI on a server hosting 14 blogs powered by WordPress, the server works great and this change reduced server load in about 50% which is nice for us, considering some of our blogs have a very high visitor traffic.

Our only problem so far is that since we switched to lighttpd the PHP's mail() function is just not working. I have compiled and re-compiled PHP and Lighttpd without any effects. I have a test site still working with Apache and PHP scripts can send mail without problems.

I've searched forums and Google for some kind of answer but none whatsoever maybe someone can give me pointers on how to solve this. Thanks a lot!!

Server details:

Lighttpd version: 1.4.15
PHP version: 4.4.4
Kernel: 2.6.9-42.0.3.ELsmp
Server has cPanel/WHM installed

PHP configure options:

--prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --with-imap=/usr/local/imap-2004g --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes --with-mysqli --with-mysql=/usr --with-openssl --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --with-xmlrpc --with-zlib --with-kerberos --with-imap-ssl --enable-fastcgi --enable-force-redirect

View 5 Replies View Related

Configure Webserver So That The Php Scripts To Be Able To Use The Mail() Function

Mar 12, 2009

I just purchased a vps from rapidswitch, installed lamp, webmin, etc. All is working fine, with one exception. I can't send mail via mail() function.

I have set the MX so that my email addresses are handled by google for domains so i can send and receive mails without problems.

What i cant do, is for example to install a cms and make it send emails for the new registered users, etc.

I have installed postfix via yum, and i've tried to configure it.. but i kind of give up after a few hours of trying.

Someone could point me to the right direction on how to configure postfix for just this ? to be able to send mails via php.

I don't care if it's postfix, qmail, etc.

View 2 Replies View Related

Plesk 12.x / Windows :: PHP Mail Function Not Work

Aug 13, 2014

PHP Mail Function not work and i cant fix it :/

i dont know whats the problem, but php.ini is right.

i also test email-function here: [URL]

View 2 Replies View Related

Plesk 12.x / Linux :: From Header In Php Mail Function Being Overwritten

Feb 23, 2015

I'm trying to send email from a domain using code like this:

$email = "me@domain.com";
$from = "From: $email
";
mail($receiver, $subject, $message, $from);

But i see in the mail logs that from address is being overwritten using the default user for the domain. Is there anyway to configure plesk or postfix to respect those headers?

View 5 Replies View Related

Plesk 11.x / Linux :: Php Mail Function Don't Work And No Configuration Menu?

Mar 9, 2014

I'm experiencing some issue with the php function mail(). No mails can get out and no errors from php. Is there any menu where we can parameter this php function ? Do I need to check up some services ?

CentOS 6.5 with Plesk 11.5
Fresh install

View 15 Replies View Related

Plesk 12.x / Linux :: Outgoing Mail Control For Subdomains Does Not Function

Apr 7, 2015

Plesk 12.0.18 Update #38
Cloudlinux 6.6

Outgoing mail control functions properly for domains, but it does not count or limit subdomains.

For example, if you have a subdomain like:
sub.domain.tld

And an email account on that subdomain, like:
info@sub.domain.tld

Then outgoing mail limits are not applied to that subscription/domain/mail account. You are able to send more emails than the limit.

Also, if you go to:
-> Tools and Settings
-> Outgoing mail control

And try to see statistics for that subscription/domain/mail account, it shows that there are not sent emails, even if you have sent emails. Of course I checked it many hours after sending, or even the next days.

View 2 Replies View Related

Email Function Not Working (MS Window Server 2003)

May 23, 2008

We have a MS Window server 2003 with SP2, currently there is a website running, the webiste is desgined by using asp.net 2.0 c#.

We reinstalled the window server 2003 last week, and we found the email functions not working any more(users in the website can't receive email each other).

I have spent days and trying to figure out, but no luck, I have tried to reset the IIS settings, SMTP Virtual settings, and add/remove windows componets settings...

View 6 Replies View Related

VPS Incredibly Slow, Huge Numbers Of Slow MySQL Queries For Plesk/Watchdog

Nov 11, 2008

I've got 25 domains on a Virtuozzo/Plesk8.6/CentOS5 VPS. Each domain has one up-to-date install of WordPress, most have very little traffic (average 200mb per month), maybe 2 domains get 5-7gb traffic per month.

I monitor port 80 connections and rarely see more than 10 at a time.
That should in my opinion be no problem at all for a VPS with 768mb guaranteed ram and 2.4ghz cpu. I've got 30gb hard drive spare too.

But.... about 8 or 10 times a day it grinds to a complete halt: server load at 500-1000%, sites timing out, plesk takes 3mins to load, often I can't even connect with SSH, and the plesk web server, apache

INSERT INTO module_watchdog_sys_stat (time, type, value, service_id) VALUES(FROM_UNIXTIME(1226404705), 'MAINMEM_USAGE', 17472, 11);

80 seconds sounds like a huge amount of time for a MySQL insert to me! Does anyone know if this is likely to be the cause of my trouble? Some problem with Plesk and the database? Or could it be something else?

View 3 Replies View Related

Server Too Slow

Apr 9, 2007

this is my server and i host only one site as upload image but it is too slow and usully apache down

how i can optimize this server please
Processor Information

Processor #1 Vendor: GenuineIntel
Processor #1 Name: Intel(R) Pentium(R) 4 CPU 2.26GHz
Processor #1 speed: 2262.422 MHz
Processor #1 cache size: 512 KB

Memory Information

Memory: 1002104k/1015744k available (2150k kernel code, 12844k reserved, 716k data, 164k init, 98240k highmem)

System Information

Linux 2.6.9-42.0.3.EL #1 Fri Oct 6 05:59:54 CDT 2006 i686 i686 i386 GNU/Linux

Physcial Disks

Current Memory Usage

total used free shared buffers cached
Mem: 1003164 976220 26944 0 102932 471740
-/+ buffers/cache: 401548 601616
Swap: 1052216 171412 880804
Total: 2055380 1147632 907748

View 4 Replies View Related

Slow Server ...

Jan 6, 2008

frends now iam haveing dedicated server with pentium-4 and RAM is 2GB,my site online members is more than 100 members,now i feel slow in server,what i have add extra RAM or any chage in server

View 5 Replies View Related

Server Is Slow

Jun 19, 2007

Why is my hosting server usually slow and down?
CPU Usage : 100%
Main : >3GB (total physical memory: 3GB)

i dont know Do user access to website that are hosted on my server too crowded make server slow while bandwidth only have 4MB.

View 9 Replies View Related

Slow Server

Sep 7, 2007

Server is dead slow. Its 3.0 1GB Ram Plesk Lniux Red Hat E4 machine. The top -c result is as below.

197 total, 6 running, 191 sleeping, 0 stopped, 0 zombie
Cpu(s): 4.0% us, 1.7% sy, 0.3% ni, 0.0% id, 94.0% wa, 0.0% hi, 0.0% si
Mem: 1027556k total, 953880k used, 73676k free, 23604k buffers
Swap: 2040244k total, 102308k used, 1937936k free, 87872k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3167 mysql 15 0 288m 67m 4336 S 0.8 6.8 40:37.97 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --
3247 apache 18 0 125m 75m 4344 D 0.7 7.5 0:00.34 /usr/sbin/httpd
3039 root 26 10 13628 5808 2656 S 0.3 0.6 0:00.69 mytop
3250 apache 16 0 121m 71m 4520 R 0.3 7.1 0:00.35 /usr/sbin/httpd
4671 apache 15 0 141m 89m 6512 S 0.2 9.0 0:57.54 /usr/sbin/httpd
1882 popuser 15 0 4176 700 564 S 0.2 0.1 0:00.17 /usr/bin/pop3d Maildir
2111 popuser 15 0 4036 712 564 S 0.2 0.1 0:00.47 /usr/bin/pop3d Maildir
3327 apache 17 0 124m 73m 5556 R 0.2 7.3 0:00.50 /usr/sbin/httpd
1 root 16 0 3580 484 456 S 0.0 0.0 0:02.11 init [3]
2 root 34 19 0 0 0 S 0.0 0.0 0:14.01 [ksoftirqd/0]
3 root 5 -10 0 0 0 S 0.0 0.0 0:00.56 [events/0]
4 root 9 -10 0 0 0 S 0.0 0.0 0:00.00 [khelper]
5 root 15 -10 0 0 0 S 0.0 0.0 0:00.00 [kacpid]
19 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 [kblockd/0]
40 root 10 -10 0 0 0 S 0.0 0.0 0:00.00 [aio/0]
20 root 15 0 0 0 0 S 0.0 0.0 0:00.00 [khubd]
39 root 15 0 0 0 0 S 0.0 0.0 4:09.01 [kswapd0]
186 root 25 0 0 0 0 S 0.0 0.0 0:00.00 [kseriod]
295 root 15 0 0 0 0 D 0.0 0.0 2:29.80 [kjournald]
1373 root 6 -10 2272 376 372 S 0.0 0.0 0:00.02 udevd
1606 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 [kauditd]
1648 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 [kmirrord]
1672 root 15 0 0 0 0 S 0.0 0.0 0:00.00 [kjournald]
1673 root 19 0 0 0 0 S 0.0 0.0 0:00.00 [kjournald]
2443 root 15 0 1608 528 456 D 0.0 0.1 2:14.13 syslogd -m 0
2447 root 16 0 2696 368 316 S 0.0 0.0 0:00.00 klogd -x
2474 rpc 15 0 3304 404 400 S 0.0 0.0 0:00.00 portmap
2493 rpcuser 18 0 2648 528 524 S 0.0 0.1 0:00.00 rpc.statd
2519 root 16 0 4672 188 152 S 0.0 0.0 0:00.10 rpc.idmapd
2590 root 15 0 1952 436 284 S 0.0 0.0 0:00.07 /usr/sbin/smartd
2599 root 19 0 1940 356 352 S 0.0 0.0 0:00.00 /usr/sbin/acpid
2659 named 16 0 43736 7664 1884 S 0.0 0.7 12:22.15 /usr/sbin/named -u named -c /etc/named.conf -u named -t /var/name
2702 root 16 0 4956 912 792 S 0.0 0.1 0:03.86 /usr/sbin/sshd
2715 root 16 0 3104 712 620 S 0.0 0.1 1:02.87 xinetd -stayalive -pidfile /var/run/xinetd.pid
2869 postgres 16 0 19772 1440 1332 S 0.0 0.1 0:00.08 /usr/bin/postmaster -p 5432 -D /var/lib/pgsql/data
2873 postgres 18 0 10572 216 176 S 0.0 0.0 0:00.00 postgres: stats buffer

View 6 Replies View Related

Server Is So Slow

Mar 5, 2007

My server is so slow I don’t know where the problem is

Server Load from 2 to 8 Monthly bandwidth 1300 GB Unique visitor 4000 - 5000 daily Page loads 13.000 – 20.000

This is current server features
Intel Pentium 4 2.8Ghz 1024MB RAM Bandwidth: 1500GB

View 6 Replies View Related

Server Slow To Load

May 14, 2009

I dont know much about what could be cuasing this so i come to you for advice, i am currently at wired tree on their VPS384 package with 348MB of ram and my site is really slow to load [url]sometimes it is so embaressing to show people i just dont bother, i am sure this is deferring visitors from my content how can i speed this up?

I can add more ram but it will push the price and if the price goes too high i might aswell move to a Hybrid with wiredtree.

View 13 Replies View Related

Server Network Very Slow

Jun 22, 2009

problem with my server running CentOS 5.3.

I noticed that there are huge pings to my server from time to time, example:

------------------
64 bytes from HOSTNAME (server-IP): icmp_seq=0 ttl=60 time=2.93 ms
64 bytes from HOSTNAME (server-IP): icmp_seq=1 ttl=60 time=2.70 ms
64 bytes from HOSTNAME (server-IP): icmp_seq=2 ttl=60 time=1901 ms
64 bytes from HOSTNAME (server-IP): icmp_seq=3 ttl=60 time=899 ms
64 bytes from HOSTNAME (server-IP): icmp_seq=5 ttl=60 time=2.69 ms
64 bytes from HOSTNAME (server-IP): icmp_seq=6 ttl=60 time=2.62 ms
64 bytes from HOSTNAME (server-IP): icmp_seq=4 ttl=60 time=2132 ms
64 bytes from HOSTNAME (server-IP): icmp_seq=8 ttl=60 time=2.57 ms
64 bytes from HOSTNAME (server-IP): icmp_seq=7 ttl=60 time=1190 ms
64 bytes from HOSTNAME (server-IP): icmp_seq=10 ttl=60 time=2.65 ms
64 bytes from HOSTNAME (server-IP): icmp_seq=9 ttl=60 time=1048 ms
64 bytes from HOSTNAME (server-IP): icmp_seq=12 ttl=60 time=2.74 ms
64 bytes from HOSTNAME (server-IP): icmp_seq=11 ttl=60 time=1205 ms
------------------

First I thought that it is network related, but most strange for me was that I did not have any packets lose.

Then I tried to ping from my server to other hosts - situation was the same - some ping were good and some were huge (700ms, 800ms, even 2000ms)

I checked:
cat /proc/sys/net/ipv4/netfilter/ip_conntrack_max
and it was 65536

Then I checked:
cat /proc/sys/net/ipv4/netfilter/ip_conntrack_count
and it was ~1600 so normal.

dmesg was showing such errors:

conntrack_ftp: partial 227 3331059707+13

Then I checked ifconfig, here is the output:

------------------
eth0 Link encap:Ethernet HWaddr 00:24:21:57:2B:6F
inet addr:MAIN=IP Bcast:BCAST=IP Mask:255.255.255.192
inet6 addr: fe80::224:21ff:fe57:2b6f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:170557113 errors:0 dropped:2421127049 overruns:0 frame:0
TX packets:182047660 errors:0 dropped:46 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2756835074 (2.5 GiB) TX bytes:79640621 (75.9 MiB)
Interrupt:82 Base address:0xe000
------------------

Strange for me was:

RX packets [...] dropped:2421127049
TX packets [...] dropped:46

I did not have such dropped information on all my other servers. Dropped counter for RX was constatnly increasing.

So I decided to restart all services on the server. After restarting network and ipaliases - problem disappeared. RX dropped counter is still rising, but I do not have any slowdowns on the server and pings are normal.

My question is - does anyone could have any idea what can casue my problem and how can I prevent this in the future?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved