Hello Alec!
Thanks for the amazingly fast response.
We performed quite a few tests and here our results.
The original situation of the config.inc.php file was allow_envelope_sender and default_envelope_sender commented.
No bounce address was defined in Step 1 of the Journal Config.
Our email sending process was the following:
Log in as the journal manager (with an institutional email from a different domain).
Enter the user list, select our user and send a basic email, adding other recipients (gmail, hotmail and our local domain).
We also tested sending message to the same user logged in.
We added another recipient with a local domain address to view the message headers.
All GMAIL messages were received without problems so far.
Hotmail and our local domain send messages to the SPAM box depending on the situation.
Our
first test was to keep everything as default.
- Sending email from a user to himself causes the message to go to the SPAM box in Hotmail.
- Our local domain sends emails from the admin user to his account at the local domain end up in the SPAM box with a ****SPAM*** in the subject.
- Sending from one user to the admin and another recipient has no problems.
- Return path is the sender's email
Our
second was to enable and set the allow_envelope_sender to Off, leaving default_envelope_sender commented.
- Sending email from a user to himself the message is received fine in Hotmail.
- Our local domain sends emails from the admin user to his account at the local domain end up in the SPAM box with a ****SPAM*** in the subject.
- Sending from one user to another has no problems.
- Return path is the sender's email
Our
third test was to keep allow_envelope_sender to Off and enable the default_envelope_sender with a local domain address
- Sending email from a user to himself the message is received fine in Hotmail.
- Our local domain sends emails from the admin user to his account at the local domain end up in the SPAM box with a ****SPAM*** in the subject.
- Sending from one user to another has no problems.
- Return path is the sender's email
Our
fourth test was to enable and set keep allow_envelope_sender to On and comment default_envelope_sender
- Sending email from a user to himself the message is received fine in Hotmail.
- Our local domain sends emails from the admin user to his account at the local domain end up in the SPAM box with a ****SPAM*** in the subject.
- Sending from one user to another has no problems.
- Return path is the sender's email
Our
fifth test was to enable and set keep allow_envelope_sender to On and enable and set default_envelope_sender to a local domain
- Sending email from a user to himself the message is received fine in Hotmail.
- Our local domain sends emails from the admin user to his account at the local domain end up in the SPAM box with a ****SPAM*** in the subject.
- Sending from one user to another has no problems.
- Return path is the default_envelope_sender
Our
sixth test was to enable and set keep allow_envelope_sender to On and enable and set default_envelope_sender to a foreign domain
- Sending email from a user to himself the message is received fine in Hotmail.
- Our local domain sends emails from the admin user to his account at the local domain end up in the SPAM box with a ****SPAM*** in the subject.
- Sending from one user to another has no problems.
- Return path is the default_envelope_sender
Since we started testing, the return path has been either the sender or the default_envelope_sender as far as we can understand.
Setting allow_envelope_sender to On seems to fix the problem of messages being received in the SPAM box when sent from the same user, when sending to Hotmail.
Any ideas to what further testing can we do, or what configuration to define in the config.inc.php?