"mandatory" mail account

alessandro123

Verified User
Joined
Sep 11, 2008
Messages
46
Hi, is possible to automatically create some "mandatory" mail account like "abuse", "postmaster" and so on and disabling user capability to delete them?

A sort of read only account.

Thanks.
 
The purpose of that is what? So you can hijack your users domains?
 
I highly doubt that has anything to do with customer domains its only for the main host domain.
 
That's wrong.
As from RFC5321 (SMTP):

Any system that includes an SMTP server supporting mail relaying or
delivery MUST support the reserved mailbox "postmaster" as a case-
insensitive local name. This postmaster address is not strictly
necessary if the server always returns 554 on connection opening (as
described in Section 3.1). The requirement to accept mail for
postmaster implies that RCPT commands that specify a mailbox for
postmaster at any of the domains for which the SMTP server provides
mail service, as well as the special case of "RCPT TO:<Postmaster>"
(with no domain specification), MUST be supported.

So, for every domains that you are offering SMTP delivery service, you have to support a postmaster address.

I think that the same is for "abuse@"

So, should be nice a capability to create and lock some mailboxes with DA.
Customers can access that mailboxes and change their password, but they cannot delete them.
 
I just tested it: with DA-provided exim.conf any email addressed to abuse@ postmaster@ and hostmaster@ automatically create the Maildir structure under ~/imap/<domain> and deliver the email to that directory.

If you want to access them via IMAP or POP3 those accounts can be created, even afterwards. If you want to create them automatically I guess a DA hook script could be written, I suggest you search in this forum and in DA documentation how to do it.
 
I know how to create it automatically.
But I don't know how to set it as read only.
A customers can delete them and I don't want.

Should I create a cronjob that checks every hours the presence of that mailboxes but I think that is not a good solution.

More over, should be nice to have a features that doesn't count that mailboxes as customers mailboxes. For example: a customer will buy a package with 5 mailboxes. postmaster should be the 6°, so customers can create the 5 mailbox as expected and not only 4...
 
I agree :) good luck. It would be nice to post the modified scripts when you are finished.
 
Back
Top