Hello all,
This is my first message here, let me make some introductions, please. I’m planning to migrate my mail server, which I’ve set up manually (using Postfix, Dovecot, Mailscanner, Snappymail webmail, MySQL, Postfixadmin, etc.). My current setup is maintained and up-to-date. I’m looking for similar custom configurations, if possible, to evaluate my potential migration.
In Postfixadmin, I had added a custom table to the user database, called “restriction”. This table had the following fields: Local, National, Custom, and International. These restrictive rules work as follows:
smtpd_restriction_classes = National, International, Local, Others
National= check_recipient_access regexp:/etc/postfix/rules/National, reject
International= check_sender_access regexp:/etc/postfix/rules/International, reject
Local = check_recipient_access regexp:/etc/postfix/rules/Local , reject
Others = check_recipient_access regexp:/etc/postfix/rules/Others, reject

As you know, in the SMTP phases, the smtpd_recipient_restrictions and smtpd_sender_restrictions are used to apply restrictions. I can make this statically in Mailcow, but the goal is to have the ability to manage this through the web admin page and delegate actions to the support team without touching files and configuration.
The million-dollar question is: Can you add custom fields to the database and have them appear on the web page? Or can you call them by label, tag, custom attribute, or anything else? This is crucial because you want to group users by departments and use these custom fields to apply rules, such as message size restrictions, where some users can send messages up to 5 MB, while others can send up to 10 or 20 MB. You want to be able to control all of this using these custom characteristics.

  • Hi,

    this sounds like a more complex feature request. So I would suggest you talk to folks behind mailcow, that is the company Tinc, you can contact then via info@servercow.de

Hi,

this sounds like a more complex feature request. So I would suggest you talk to folks behind mailcow, that is the company Tinc, you can contact then via info@servercow.de

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

4 months later

There is a tab called Custom Attributes on each mailbox. Not sure but maybe this can help to fit your needs?

    12 days later

    apio-sys yes i sow but i’m not sure if i can make a query like:
    query = SELECT x_restriction FROM mailbox WHERE username=‘%s’ AND active = 1
    i need call these custom attribute from a query to group and make more complex rules set, this cam be made using mysql or via files, but in a big setup sql are better i will take a look to these custom attributes thanks

    4 months later

    apio-sys
    Yes, i recently played with Custom attributes and checking behind web ui in mysql database, and yes i think it will be work and fit my needs, i will test soon. thanks!

    No one is typing