Answer the question
In order to leave comments, you need to log in
send mail
There are 2 servers that were configured in parallel. Including they were installed from the sendmail repository. When you try to send a letter from php through the mail function, letters come.
But, in the letter from the first server in the header:
Return-Path: <[email protected]>
Received: from name.localhost (static.45-15-211-74.clients.your-server. de. [45.15.211.74])
From: "Name.ru" <[email protected]>
And the other one:
Return-Path: <[email protected]>
Received: from Debian-60- squeeze-32-minimal (static.88-118-35-38.clients.your-server.de. [88.118.35.38])
From: "Name2.ru" <[email protected]>
All settings on the servers are basic, why do servers have different header formats and how to change them? One has a Return-Path with domen.localhost and the other is just debian-60-squeeze-32-minimal.
Again, the first server, when sending a letter from a script that contains a normal email [email protected], replaces it with the following combination [email protected]
Please tell me how to reconfigure the first server so that everything works correctly. I think that the problems are in the hostname, but I already registered it, I restarted the services, but the problem does not disappear.
Answer the question
In order to leave comments, you need to log in
correctly expose hostname for each server.
then
cd /etc/mail
make
make install
make restart
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question