Add mail user disable sending option

Discussion in 'Developers' Forum' started by basmevissen, Mar 7, 2012.

  1. basmevissen

    basmevissen New Member


    I was looking for a way to disable smtp access (to send e-mail over the server) from the control panel. There is a field "disablesmtp" in the mail_user table already.

    This field needs to be added to the sasl2 sql query as well:
    File /etc/postfix/sasl2/smtpd.conf:
    sql_select: select password from mail_user where email = '%u@%r' [b]and disablesmtp = 'n'[/b]
    For now, this option needs to be set in the database directly using for example phpmyadmin.

Share This Page