Mihanja80

Рейтинг
29
Регистрация
18.09.2011

Так точно, сори, не указал :(

МХ записи на скриншотах... Цитата с яндекса...

Нужно чтобы письма отправлялись с Яндекса...

Для меня "обычная" sendmail через форму обратной

связи ,отправляет и автоматом на яндекс и пытается (при включенном чекбоксе) отправить копию отправителю (указываю гугл почту) на гугл.

Я не админ, много не понимаю в сервере.

Мне нужно smtp чтоб с почты Яндекса письма отправлялись...

sendmail через форму обратной связи отправляет, на яндексе письмо появляется. на gmail копия не доходит, IP в спам листах. Я думаю что с яндекса дошлоб...

я так думаю что проблема аналогична єтой: /ru/forum/785589

Как я понял проблема связана с тем, что для сервера, на котором расположен сайт, домен является локальным, поэтому сервер пытается отправить письма во внутреннюю директорию не смотря на MX записи.

Мне тут смотреть?:

/etc/exim/exim.conf

PROCMAIL_ENABLE = yes
SPAMCBIN=__ISP_SPAMCBIN__
EXIMBIN=/usr/sbin/exim
log_selector = \
+all_parents \
+lost_incoming_connection \
+received_sender \
+received_recipients \
+tls_cipher +tls_peerdn \
+smtp_confirmation \
+smtp_syntax_error \
+smtp_protocol_error

# CONFDIR=__ISP_CONFDIR__
# daemon_smtp_port = 25:465
# tls_certificate = CONFDIR/certificate.crt
# tls_privatekey = CONFDIR/certificate.key
# tls_on_connect_ports = 465

.ifdef MAILMAN_ENABLE
MAILMAN_HOME=__MAILMAN_HOME__
MAILMAN_WRAP=__MAILMAN_WRAP__
MAILMAN_USER=__MAILMAN_USER__
MAILMAN_GROUP=__MAILMAN_GROUP__
.endif

trusted_groups = mgrsecure
trusted_users = apache

domainlist local_domains = lsearch;/etc/exim/domains
domainlist dummy_domains =
hostlist relay_from_hosts = 127.0.0.1 : 78.47.176.56

domainlist relay_to_domains = lsearch;/etc/exim/domains
exim_user = exim
exim_group = exim
**** *** **

что на что менять?

PHP Mail - письмо на яндексе (регистрировал пользователя на сайте с почтой gmail)

Mail delivery failed: returning message to sender Распечатать
сегодня в 10:47
Mail Delivery System <Mailer-Daemon@mihanja80.com>

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

c****hamiha@gmail.com
SMTP error from remote mail server after end of data:
host gmail-smtp-in.l.google.com [173.194.70.26]:
550-5.7.1 [78.47.176.56 1] Our system has detected an unusual rate of
550-5.7.1 unsolicited mail originating from your IP address. To protect our
550-5.7.1 users from spam, mail sent from your IP address has been blocked.
550-5.7.1 Please visit http://www.google.com/mail/help/bulk_mail.html to review
550 5.7.1 our Bulk Email Senders Guidelines. r4si7163415eem.15 - gsmtp

------ This is a copy of the message, including all the headers. ------

Return-path: <a***n@videorip.info>
Received: from mihanja80 by mihanja80.com with local (Exim 4.63)
(envelope-from <a***n@videorip.info>)
id 1UWMK6-0000SB-NS
for c****miha@gmail.com; Sun, 28 Apr 2013 09:47:02 +0200
To: c*****miha@gmail.com
Subject: =?utf-8?B?0J/QsNGA0LDQvNC10YLRgNGLINGD0YfQtdGC0L3QvtC5INC30LDQv9C40YE=?= =?utf-8?B?0Lgg0LTQu9GPIGFhYWFhINC90LAg0YHQsNC50YLQtSDQnNC10LHQtdC7?= =?utf-8?B?0Ywg0LIg0JrQvtCy0LXQu9C1?=
Date: Sun, 28 Apr 2013 10:47:02 +0300
From: =?utf-8?B?0JzQtdCx0LXQu9GMINCyINCa0L7QstC10LvQtQ==?= <a***n@videorip.info>
Reply-to: =?utf-8?B?0JzQtdCx0LXQu9GMINCyINCa0L7QstC10LvQtQ==?= <a***n@videorip.info>
Message-ID: <275784605fe1769e72e353ac15dfbee7@ko***bel.com.ua>
X-Priority: 3
X-Mailer: PHPMailer 5.2 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="utf-8"

Здравствуйте, *****,

Благодарим вас за регистрацию на сайте *****

взломали сайт, рассилали спам. письмо идет с моего IP?

Нужен админ :(

Тест (limit_conn cglob 20; в nginx. Joomla session -> Xcache):

[****@mihanja80 ~]# ab -n 1000 -c 50 http://www.videorip.info/index.php

This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.videorip.info (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests


Server Software: nginx/1.0.2
Server Hostname: www.videorip.info
Server Port: 80

Document Path: /index.php
Document Length: 212 bytes

Concurrency Level: 50
Time taken for tests: 1.312426 seconds
Complete requests: 1000
Failed requests: 10
(Connect: 0, Length: 10, Exceptions: 0)
Write errors: 0
Non-2xx responses: 990
Total transferred: 939023 bytes
HTML transferred: 765433 bytes
Requests per second: 761.95 [#/sec] (mean)
Time per request: 65.621 [ms] (mean)
Time per request: 1.312 [ms] (mean, across all concurrent requests)
Transfer rate: 698.71 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 1.9 1 11
Processing: 0 10 88.6 2 1304
Waiting: 0 9 88.6 1 1303
Total: 2 12 89.0 3 1310

Percentage of the requests served within a certain time (ms)
50% 3
66% 4
75% 4
80% 5
90% 5
95% 6
98% 12
99% 383
100% 1310 (longest request)

Тест (limit_conn cglob 25; в nginx. Joomla session -> Xcache):

[****@mihanja80 ~]# ab -n 1000 -c 50 http://www.videorip.info/index.pxp

This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.videorip.info (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests


Server Software: nginx/1.0.2
Server Hostname: www.videorip.info
Server Port: 80

Document Path: /index.pxp
Document Length: 289 bytes

Concurrency Level: 50
Time taken for tests: 0.407189 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1000
Total transferred: 458000 bytes
HTML transferred: 289000 bytes
Requests per second: 2455.86 [#/sec] (mean)
Time per request: 20.359 [ms] (mean)
Time per request: 0.407 [ms] (mean, across all concurrent requests)
Transfer rate: 1097.77 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 9 5.8 9 21
Processing: 1 10 4.4 10 19
Waiting: 0 8 5.1 8 18
Total: 17 19 1.8 20 25

Percentage of the requests served within a certain time (ms)
50% 20
66% 21
75% 21
80% 21
90% 22
95% 22
98% 23
99% 24
100% 25 (longest request)

Тест (limit_conn cglob 25; в nginx. Joomla session -> database):

[root@mihanja80 ~]# ab -n 1000 -c 50 http://www.videorip.info/index.php

This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.videorip.info (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests


Server Software: nginx/1.0.2
Server Hostname: www.videorip.info
Server Port: 80

Document Path: /index.php
Document Length: 212 bytes

Concurrency Level: 50
Time taken for tests: 3.551755 seconds
Complete requests: 1000
Failed requests: 25
(Connect: 0, Length: 25, Exceptions: 0)
Write errors: 0
Non-2xx responses: 975
Total transferred: 1773330 bytes
HTML transferred: 1595855 bytes
Requests per second: 281.55 [#/sec] (mean)
Time per request: 177.588 [ms] (mean)
Time per request: 3.552 [ms] (mean, across all concurrent requests)
Transfer rate: 487.36 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 2.9 0 15
Processing: 2 60 374.9 3 3538
Waiting: 2 60 374.8 3 3538
Total: 2 61 376.5 3 3549

Percentage of the requests served within a certain time (ms)
50% 3
66% 3
75% 3
80% 5
90% 14
95% 26
98% 1393
99% 2636
100% 3549 (longest request)

Скажите, пожалуйста, это нормальный результат?

была замечена периодичная проблема в полночь по Киеву длительностью в 4-6 минут. Сервер зависал. Написал хостеру, вот ответ:

Hello, it look like a high IO load at your
host machine. We can offer you to
migrate your server to another host
machine. This will be a live migration
and your server will be running and
reachable in this time. Should we migrate your VQ server to another
host? Best Regards

Жду переноса...

Mihanja80 добавил 20.09.2011 в 02:31

Перенесли быстро.

Проблема действительно была (MySQL через некоторое время совсем упал):

[***@mihanja80 ~]# df -h

Filesystem Size Used Avail Use% Mounted on
/dev/hda3 18G 17G 0 100% /
/dev/hda2 251M 29M 210M 12% /boot

Почистил логи и бекапы.

Теперь веселее работает 🍻

Огромное спасибо всем откликнувшимся!

Andreyka:
Храни сессии в мемкеше

Andreyka, спасибо за подсказку.

Мемкеша нет, есть xcache. Попробовать в xcache хранить сессии?

Pilat, я просто не знаю как бороться...

When you see Warning: Invalid argument supplied for foreach() in /home/yourdom/public_html/libraries/joomla/database/database/mysqli.php on line 391 it means the host has run out of disk space on the tmp folder used for sessions and other temporary files. http://www.martynwalker.com/2011/08/21/invalid-argument-supplied-foreach-mysqliphp-line-391/

Сессии хранятся в базе данных

+

[Mon Sep 19 05:24:45 2011] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Mon Sep 19 05:24:45 2011] [error] [client **.**.17.78] Premature end of script headers: index.php, referer: http

Вот прогнал ночью легкий тест:

Ничего не понял в результате Может кто найдет немного времени и хоть поверхностно объяснит...

1 23
Всего: 30