Well, you can't do that now, so why would putting in place more restrictive rules let you do that?
I can do that now. I can put
[email protected] into my
From field of my desktop email client, and I can send the email through my webhosting provider (which happens to be me).
In fact I was quite embarrassed quite a few years ago (probably last century) when I showed someone how easy it was to do by sending him an email doing exactly that, using my then ISP (ibm.net, no longer in the ISP business). Then I forgot to change it back, and later that day sent an email to my account rep at Waggener Edstrom (Microsoft's PR company). I noticed it as it was going out and I immediately called her to let her know. Fortunately she had a great sense of humor.
In spite of the risks, the RFCs require it. Not that I'd object to changing it if it appeared reasonable, but my problem is still the support issues it would engender when my clients want to send email from, for example,
[email protected].
Did you know that Squirrelmail allows it (
Options : Advanced Identities), probably other webmail clients as well.
What we need is to enforce a rule that says that you can only send an email from *@domain1.com if you're logged in as
[email protected]
Maybe I'm missing the concept of
logged in as. What do you mean by that?
If your clients have more than one domain, simply educate them and explain to them that they wouldn't appreciate it if
[email protected] could send emails looking to be sent from their domain1.com domain.
But from most email accounts, they can.
I'm sure they would make the effort of configuring their email client properly so that they use one SMTP account per domain.
But that doesn't fix it; you can easily have microsoft.com as a domain on the server.
I think the best solution would be to check if the domain is owned by the same user. That way everybody is happy. Clients can use one account for all their local domains and abusers cannot use someone else's domains.
And it wouldn't help at all if they wanted to use
[email protected].
I believe the best way to handle it would be to create a system whereby if the email were sent to a DirectAdmin SMTP server it were bounced with a message including a clickable link for the user to prove the email address is his/hers, by getting a special email to the from address which needs to be vetted, and having to reply to allow it.
All that automation is well beyond the scope of what I want to do, but if you do it, I'll consider adding it to my exim.conf code base.
Jeff