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

Nonexisting mailboxes, Undeliverable and bounce emails #556

Open
sel-carlitos opened this issue May 10, 2023 · 1 comment
Open

Nonexisting mailboxes, Undeliverable and bounce emails #556

sel-carlitos opened this issue May 10, 2023 · 1 comment
Assignees
Labels
backport_1_6_x Backport to old bugfixing branch 1.6.x backport_2_0_x Backport to branch 2.0.x enhancement
Milestone

Comments

@sel-carlitos
Copy link

The main page states:

Dgreenmail.auth.disabled = Disables user authentication check, so that any password works. Useful if you do not want to preconfigure user/passwords. GreenMail automatically creates non-existent users.

I am using the docker standalone in docker compose under the services section like so:

  mail:
    container_name: mail
    image: greenmail/standalone:latest
    expose:
      - "25:25"     # SMTP
      - "110:110"   # POP3
      - "143:143"   # IMAP
      - "465:465"   # SMTPS SSL
      - "587:587"   # SMTPS TLS
      - "993:993"   # IMAPS
      - "995:995"   # POP3S
    ports:
      - "8880:8080" # API
    environment:
      - 'GREENMAIL_OPTS=-Dgreenmail.setup.smtp
                        -Dgreenmail.setup.imap
                        -Dgreenmail.setup.api
                        -Dgreenmail.verbose
                        -Dgreenmail.users=user1:[email protected],user2:[email protected]
                        -Dgreenmail.users.login=email
                        -Dgreenmail.hostname=0.0.0.0'

So far so good! But I have a scenario where I need to disable the automatic creation of non-existing users. The reasoning is that [email protected] is sending an email to a non-existing account [email protected]

Ideally, [email protected] would receive a bounce email stating that the email doesn't exist.

Is there a way to set/mock this up?

Thanks!

@marcelmay marcelmay self-assigned this May 11, 2023
@marcelmay marcelmay added this to the 2.1.0-alpha-2 milestone May 11, 2023
@marcelmay marcelmay added backport_1_6_x Backport to old bugfixing branch 1.6.x backport_2_0_x Backport to branch 2.0.x labels May 11, 2023
@marcelmay
Copy link
Member

Hi @sel-carlitos ,

unfortunately this feature does not exist out-of-the-box.

You could implement it via a custom message delivery handler,
but you want it for the standalone mode.

This feature ('configuring bouncing for a email address') would be a nice extension.

@marcelmay marcelmay modified the milestones: 2.1.0-alpha-3, 2.1.0-alpha-4 Nov 4, 2023
@marcelmay marcelmay modified the milestones: 2.1.0-alpha-4, 2.1.0-rc-1 Jan 28, 2024
@marcelmay marcelmay modified the milestones: 2.1.0-rc-1, 2.1 Apr 21, 2024
@marcelmay marcelmay modified the milestones: 2.1.0, 2.1.x Oct 5, 2024
@marcelmay marcelmay modified the milestones: 2.1.1, 2.1.x Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport_1_6_x Backport to old bugfixing branch 1.6.x backport_2_0_x Backport to branch 2.0.x enhancement
Projects
None yet
Development

No branches or pull requests

2 participants