Informacje nagłówka Sendmail dla wielu wirtualnych hostów Centos Apache
Na przykład Centos 6.8, IP serwera 1.2.3.4 i jakaś domena dodana wewnątrz
vhost.conf
NameVirtualHost *:80<VirtualHost *:80>
ServerAdmin email@example_1.com
ServerName example_1.com
ServerAlias www.example_1.com
DocumentRoot/srv/www/example_1.com/public_html/
ErrorLog/srv/www/example_1.com/logs/error.log
CustomLog/srv/www/example_1.com/logs/access.log combined
</VirtualHost><VirtualHost *:80>
ServerAdmin email@example_2.com
ServerName example_2.com
ServerAlias www.example_2.com
DocumentRoot/srv/www/example_2.com/public_html/
ErrorLog/srv/www/example_2.com/logs/error.log
CustomLog/srv/www/example_2.com/logs/access.log combined
</VirtualHost>
I
etc/hostsplik
127.0.0.1 localhost.localdomain localhost
1.2.3.4 example_1.example_1.com example_1::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Na przykład, jeśli wyślę e-mail z adresu
example_2.comdo
example@gmail.com, wyślij oryginał e-mailem pokaż wiele informacji na temat
example_1.com.
Return-Path: <no-reply@example_2.com>
Received: from example_1.example_1.com (example_1.com. [...])
by mx.google.com with ESMTPS id ...
for <example@gmail.com>
...
...
Received-SPF: pass (google.com: domain of no-reply@example_2.com designates ... as permitted sender) client-ip=...;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of no-reply@example_2.com designates ... as permitted sender) smtp.mailfrom=no-reply@example_2.com;
dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Received: by example_1.example_1.com (...) with ESMTP id ...;
Received: (from apache@localhost) by example_1.example_1.com ...
X-Authentication-Warning: example_1.example_1.com: apache set sender to no-reply@example_2.com using -f
Jak mogę zmienić informacje w nagłówku ze wszystkich
example_1.comdo
example_2.comkiedy wysyłam e-mail z
example_2.com?
Próbowałem się zmienić
vhost.confjak pokazano poniżej, ale nadal nie działa.
<VirtualHost *:80>
ServerAdmin email@example_2.com
ServerName example_2.com
ServerAlias www.example_2.com
DocumentRoot/srv/www/example_2.com/public_html/
ErrorLog/srv/www/example_2.com/logs/error.log
CustomLog/srv/www/example_2.com/logs/access.log combined <Directory/srv/www/example_2.com/public_html/>
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fno-reply@example_2.com"
</Directory>
</VirtualHost>
Nie znaleziono powiązanych wyników
Zaproszony:
Aby odpowiedzieć na pytania, Zaloguj się lub Zarejestruj się
1 odpowiedzi
Anonimowy użytkownik
Potwierdzenie od:
który kieruje wiadomości, działa w tle. W
mówi tylko, jak apache/php wysyła wiadomości do rzeczywistego tła
Problemem jest
nie może dynamicznie używać wielu nazw hostów. Jeśli chcesz usunąć example_1 z
nagłówki i tym podobne, masz następujące alternatywne ścieżki:
Upewnij się również
nie
użyj podkreślenia nazw domen
postać.