cURL and "Must match sender" #727
Unanswered
sniper9191
asked this question in
Q&A
Replies: 1 comment
-
Hi, Perhaps you made a mistake when you redacted the logs?
This line does not make sense as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I have setup Stalwart mail server, with LDAP authentication - everything works well.
I am using the server as an SMTP relay.
I enabled "Must match sender", and it works well when I use purpose-built tools such as PowerShell's Send-MailMessage cmdlet, or .NET's System.Net.Mail.MailMessage class.
With the above tools, whenever I authenticate to the server and try to get it to relay an email, it works when the from matches the email address of my LDAP user.
However, when I try to do this with cURL --url smtp://, the "Must match sender" does not seem to work correctly.
In my cURL command, the email address is specified using --mail-from [email protected]
I also include via --upload-file \msg.txt, the following -
However, when the email is sent with valid authentication, it prompts me 501 5.5.4 You are not allowed to send from this address.
I am sure, Stalwart's checks are correct (given that it works with PowerShell / .NET).
But could someone point out where I got it wrong, with the cURL command?
In the logs, I see -
I tried playing around with the msg.txt syntax, but none of the following options worked -
Beta Was this translation helpful? Give feedback.
All reactions