• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved MSMTP Relay only some adress

Aude

New Pleskian
First : Happy new year ;)

My problem is on fresh install, i don't want to have email and dns server, i delegate this to my provider.
So i desactivate dns server et install MSMTP (relay only)
i use [email protected] on relay smtp (OVH.com)

when i use this adress [email protected] via "normal client" , no problem

When i send email to test with setting / stats / report in plesk panel, green box with succefull sent message.

but i only receive mail when adress are account@gmail, [email protected]
if it's domain name (redirection) [email protected] i never receive mail ?

when i check mail /var/log/mail log all is success (smtp=250)

Do you have an idea ?

sorry formy bad english.

Thanks you.
 
Nobody ? i try to resolve this with support.. but not seem to be ok...

i need to use another "from" adress in mstmp with real adress mail.

maillog is ok

Jan 9 11:26:59 nomboutique msmtp: host=ssl0.ovh.net tls=on auth=on [email protected] from=psaadm@localhost [email protected] mailsize=4120 smtpstatus=250 smtpmsg='250 2.0.0 Ok: queued as 38D9660008E' exitcode=EX_OK

support tell me to add mail.force_extra_parameters = "-f [email protected]" in php.ini but no effect

how can i change this from ?
 
As an alternative you can add the "-f [email protected]" as a fifth parameter in PHP's mail command that is sending the mail in question. However, I have doubts that this will solve the issue. A mail with an invalid sender domain should not be queued to begin with, so it's probably not the reason for the problem. Have you tested with realdomain.com or with different domains on different other servers, too?
 
Thanks for your reply.
i try "-f [email protected]" but not solve my problem

as you can see msmtp relay my mails with success to smtp relay, but it's not sending process directly concern, "just" informations of sending "from".
Because recipient server check (probably from spam) if sender exist and psaadm@localhost not exist

 
The site parameter cannot be changed??? If there is such a parameter in a configuration file, it will normally occupy the fifth parameter of the PHP mail() function, setting "-f ...@localhost" as sender. Have you tried to change your website configuration to reflect your real sender address?
 
after 8 hours of team viewer support,2 emails, ... :

modify /etc/msmtprc
auto_from off
from [email protected]

restart service

bad new is this file is auto-generate, so it can be overwrite.
 
Back
Top