[GH-ISSUE #1616] Mails are not relayed if there is a local user #1271

Open
opened 2026-02-27 11:16:13 +03:00 by kerem · 4 comments
Owner

Originally created by @Clevero on GitHub (Nov 15, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1616

Impacted versions

  • Modoboa: 1.12.2
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

Current behavior

Expected behavior

All emails are being relayed for a relay domain, if they are CLEAN, wether their is a user on modoboa or not

I'm currently setting up modoboa as a mail gateway with spam and malware filtering. All mails should be relayed if they are CLEAN and if not stored in the amavis quarantine. A user itself should be able to release mails out of his own quarantine if needed. So I created an user alice@mydomain.net and tested the filtering process.
Currently we do not need local mailboxes because a Microsoft Exchange Server is our actual mail server.

According to a comment in an issue:
So, if you create a user with a mailbox for your domain, it means it won't be routed.
https://github.com/modoboa/modoboa/issues/1131#issuecomment-305484450
Is there any workaround for this? Can I force relaying mails?

I'm not 100% sure if I understood it correctly, but would the SMTP auth plugin like described in https://github.com/modoboa/modoboa/issues/986 solve my problem?

Originally created by @Clevero on GitHub (Nov 15, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1616 # Impacted versions * Modoboa: 1.12.2 * installer used: Yes * Webserver: Nginx # Steps to reproduce * Create a relay domain mydomain.net * create a normal user alice@mydomain.net * send a mail to alice@mydomain.net and bob@mydomain.net (who has not an user on modoboa) # Current behavior * Mail is not relayed to alice@mydomain.net but stored in his local mailbox (according to webmail) * Mail is relayed to bob@mydomain.net # Expected behavior All emails are being relayed for a relay domain, if they are CLEAN, wether their is a user on modoboa or not I'm currently setting up modoboa as a mail gateway with spam and malware filtering. All mails should be relayed if they are CLEAN and if not stored in the amavis quarantine. A user itself should be able to release mails out of his own quarantine if needed. So I created an user alice@mydomain.net and tested the filtering process. Currently we do not need local mailboxes because a Microsoft Exchange Server is our actual mail server. According to a comment in an issue: ```So, if you create a user with a mailbox for your domain, it means it won't be routed.``` https://github.com/modoboa/modoboa/issues/1131#issuecomment-305484450 Is there any workaround for this? Can I force relaying mails? I'm not 100% sure if I understood it correctly, but would the SMTP auth plugin like described in https://github.com/modoboa/modoboa/issues/986 solve my problem?
Author
Owner

@tonioo commented on GitHub (Nov 15, 2018):

@Clevero Indeed, modoboa allows the creation of accounts on a relay domain for "splitted domain" situations, for example when you migrate a domain to a new server. SMTP plugin won't solve your issue since it will create local accounts, which leads to the same configuration.
Looks like the proper way to fix this would be to allow the creation of a SimplerUser without a mailbox... Need to think about it a bit more.

<!-- gh-comment-id:439036765 --> @tonioo commented on GitHub (Nov 15, 2018): @Clevero Indeed, modoboa allows the creation of accounts on a relay domain for "splitted domain" situations, for example when you migrate a domain to a new server. SMTP plugin won't solve your issue since it will create local accounts, which leads to the same configuration. Looks like the proper way to fix this would be to allow the creation of a SimplerUser without a mailbox... Need to think about it a bit more.
Author
Owner

@stale[bot] commented on GitHub (Oct 23, 2020):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:715534874 --> @stale[bot] commented on GitHub (Oct 23, 2020): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Dec 22, 2020):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:749749872 --> @stale[bot] commented on GitHub (Dec 22, 2020): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Author
Owner

@kytv76 commented on GitHub (Feb 28, 2023):

Is there any solution for this by now? I would need this too.
Cheers,
rasibo

<!-- gh-comment-id:1448315878 --> @kytv76 commented on GitHub (Feb 28, 2023): > Is there any solution for this by now? I would need this too. Cheers, rasibo
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1271
No description provided.