Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send mail for alias addresses #581

Open
Infern1 opened this issue Jun 17, 2024 · 2 comments
Open

Send mail for alias addresses #581

Infern1 opened this issue Jun 17, 2024 · 2 comments

Comments

@Infern1
Copy link
Collaborator

Infern1 commented Jun 17, 2024

I recently updated Haraka and found that sending mail for alias isn't working anymore.

Say I login to roundcube via user@email.com and I send a mail for alias@differentdomain.com it is not working anymore

([7E4999FB-B6E@haraka] Envelope domain 'differentdomain.com' doesn't match AUTH domain 'email.com').

So with some research I found that this is a result of: haraka/Haraka#3265

So I added constrain_sender=false and it is working again.

I understand the function, however can we however make the check not so restrictive?

@msimerson
Copy link
Owner

msimerson commented Jun 18, 2024

#worksAsDesigned

The "still works" way to send mail from user@differentdomain is to log into roundcube with a username within differentdomain.

I have witnessed (and cleaned up) systems that end up with millions of emails injected into their queues within hours of an email account getting brute forced. There is off-the-shelf software that takes advantage of this weakness in most SMTP servers and then injects spam from many not-local domains into the queue (aka: Joe job attack). That gets your mail server instantly black listed for provable impersonation. This prevents that consequence.

In so doing, this change greatly reduces the collateral damage inflicted on mail systems when an email account is brute-forced. Most attempted spam injections are rejected before being queued.

Perhaps an option that added an option like constrain_sender=local would do what you want?

@Infern1
Copy link
Collaborator Author

Infern1 commented Jun 18, 2024

Yes I 100% agree that it is a good addition and work as intented

However I cannot login in Roundcube with user@differentdomain since this is just an redirect in vpopmail. Since mail send to: user@differentdomain ends up in my main mailbox: user@email

So the option constrain_sender=local would be a good function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants