- Server operating system version
- AlmaLinux 9.6 (Sage Margay)
- Plesk version and microupdate number
- Plesk Obsidian 18.0.70 Update #1 Web Host Edition
I am sending mail from a Plesk Server using PHPMailer.
I have several domains on this server. I am connecting to the mail server with this code:
$mail->Host = 'localhost';
$mail->SMTPAuth = true;
$mail->Username = '[email protected]';
$mail->Password = 'b';
$mail->SMTPSecure = '';
$mail->Port = 25;
$mail->Sender = '[email protected]';
$mail->setFrom('[email protected]');
Username is an email account on one domain.
In the emails I see this:
Authentication-Results: spf=pass (sender IP is 77.68.123.62)
smtp.mailfrom=domain2.com; dkim=fail (no key for signature)
domain2.com is indeed hosted on the same server. But I want this field to be domain1. I thought it might be to do with using Sender in PHPMailer. But no.
It looks to me like it could be something I need to fix in Plesk.
Does anybody have any ideas?
I have several domains on this server. I am connecting to the mail server with this code:
$mail->Host = 'localhost';
$mail->SMTPAuth = true;
$mail->Username = '[email protected]';
$mail->Password = 'b';
$mail->SMTPSecure = '';
$mail->Port = 25;
$mail->Sender = '[email protected]';
$mail->setFrom('[email protected]');
Username is an email account on one domain.
In the emails I see this:
Authentication-Results: spf=pass (sender IP is 77.68.123.62)
smtp.mailfrom=domain2.com; dkim=fail (no key for signature)
domain2.com is indeed hosted on the same server. But I want this field to be domain1. I thought it might be to do with using Sender in PHPMailer. But no.
It looks to me like it could be something I need to fix in Plesk.
Does anybody have any ideas?