mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 09:26:00 +03:00
[GH-ISSUE #1131] Use as relay without Dovecot #934
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#934
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ursweiss on GitHub (May 31, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1131
We want to use Modoboa as a gateway only without any local mailboxes, and therefore i didn't install dovecot (Installer cfg: enabled = false). But now i get the following message:
Do we need to have Dovecot installed, even we don't use it? The type of the domain is set to "Relay domain" and "Relay settings >> Service" to relay.
Installed extensions: modoboa-amavis modoboa-stats modoboa-dmarc
Thank you,
Urs
@tonioo commented on GitHub (May 31, 2017):
I guess you installed Modoboa with the installer?
Anyway, you just have to disable the postfix config related to dovecot and it should be enough.
@ursweiss commented on GitHub (May 31, 2017):
Yes, i used the installer.
The dovecot part was already disabled by the installer:
That's why i'm a bit confused.
My full postfix config: https://pastebin.com/2ee0TR7U
@tonioo commented on GitHub (Jun 1, 2017):
Can you try to comment the
reject_unverified_recipientline and reload postfix?@ursweiss commented on GitHub (Jun 1, 2017):
That's one thing i tried yesterday already. The only thing that changes is that the email is accepted, but kept in the local queue instead of the senders queue with the same error.
My config of the domain:


@tonioo commented on GitHub (Jun 1, 2017):
How did you create your relay domain in modoboa?
On 01/06/2017 12:08, Urs wrote:
@ursweiss commented on GitHub (Jun 1, 2017):
Hmmm... After reading your answer i thought "let me try to recreate the relay domain". And bam, it works...
I will try to reproduce it now.
@ursweiss commented on GitHub (Jun 1, 2017):
OK, i got it.
If i create the relay domain AND also create a "domain administrator" during the "New domain" wizard, which has the same name as the recipient i try to send mails to later (recipient@otherdomain.com in my example above), it fails with the error.
But:
If i create the domain without a domain administrator, it works. It still works if i create the domain and afterwards create an domain administrator identity with the same name as before during the wizard (recipient@...). Permissions for the domain assigned too of course.
@tonioo commented on GitHub (Jun 1, 2017):
Actually, Modoboa allows the creation of local mailboxes for a relay domain. This can be useful when you want to migrate a domain to another server. So, if you create a user with a mailbox for your domain, it means it won't be routed. You can still create a domain administrator, just let the mail part empty.
@ursweiss commented on GitHub (Jun 2, 2017):
OK, could make sense is some special cases. But in most cases, if you create a relay domain, you want it to relay mails (obviously). I cannot give a tool with such a default behavior to a customer/reseller, because we will get flooded with support requests because of that.
Within the domain wizard there is no option to not create a mailbox. If you select the checkbox to create a domain admin, it also creates an eMail address/mailbox. If you create the identity manually, you can select if you want to add an eMail address/mailbox.
Next, if i enable "Verify recipients" during the wizard, but don't add an domain admin/mailbox, it fails with the same error message. I think on a relay it should try to verify the eMail address by SMTP and not locally.
Finally, is there a way to send you a donation? I like the product and want to support it with some
, or maybe an Amazon wishlist?Thanks for your great and fast support. I appreciate that a lot!
@tonioo commented on GitHub (Jun 3, 2017):
@ursweiss I guess we could add an option to allow the creation of local mailboxes for a relay domain.
The domain wizard is just a shortcut to get a prefilled domain, I could add a flag to create a mailbox or not but I don't want to introduce too much complexity on this part.
About the verify recipients option, I think your issues might be related to postfix verify cache (http://www.postfix.org/ADDRESS_VERIFICATION_README.html). What you can try is to remove this file and let postfix recreate it. Then, try your tests again.
About donation, there is a system available on the official website where you can finance features (https://modoboa.org/en/sponsor/). You can also use paypal to send me a donation directly.
As you prefer ;)
@tonioo commented on GitHub (Jun 16, 2017):
@ursweiss Could you please explain me the "verify recipient" issue a bit more?
@tonioo commented on GitHub (Jun 22, 2017):
@ursweiss ping
@ursweiss commented on GitHub (Jun 27, 2017):
Sorry, was quite busy the last few weeks. Tried it again today and i cannot reproduce it at the moment. No idea what i did back then.
@tonioo commented on GitHub (Jun 28, 2017):
Ok, so I think it was related to the verify cache. Thanks for your
donation btw ;-)
On 27/06/2017 10:14, Urs wrote: