Mail for domain cannot be activated.

Refers to:

  • Plesk 11.5 for Linux

Created:

2016-11-16 13:24:41 UTC

Modified:

2016-12-21 20:39:21 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Mail for domain cannot be activated.

Symptoms

"Activate mail service on domain" is greyed out.

Cause

Mail service status is set to 16 in psa.DomainService table.

Resolution

Set the mail status to 0 for the affected domain in psa.DomainServices table and execute the MCHK utility:

  1. Discover the ID of affected domain:

    mysql>  select id,name from Domains where name like '%domain%';
    +------+-------------------+
    | id | name |
    +------+-------------------+
    | 3587 | domain.com |
    | 3599 | domain2.com |
    | 3676 | domain3.com |
    +------+-------------------+
    3 rows in set (0.03 sec)
  2. Check the current status of DomainServices :

    mysql> select * from DomainServices where dom_id=3587;
    +------+--------+------+--------+---------------+----------------+
    | id | dom_id | type | status | parameters_id | ipCollectionId |
    +------+--------+------+--------+---------------+----------------+
    | 8184 | 3587 | mail | 16 | 12939 | 8185 |
    | 8185 | 3587 | web | 0 | 0 | 8186 |
    +------+--------+------+--------+---------------+----------------+
    2 rows in set (0.03 sec)
  3. Update DomainServices status:

    mysql> update DomainServices set status=0 where dom_id=3587 and type='mail';
    Query OK, 1 row affected (0.03 sec)
    Rows matched: 1 Changed: 1 Warnings: 0

    mysql> select * from DomainServices where dom_id=3587;
    +------+--------+------+--------+---------------+----------------+

    | id | dom_id | type | status | parameters_id | ipCollectionId |
    +------+--------+------+--------+---------------+----------------+
    | 8184 | 3587 | mail | 0 | 12939 | 8185 |
    | 8185 | 3587 | web | 0 | 0 | 8186 |
    +------+--------+------+--------+---------------+----------------+
  4. Reconfigure mail settings:

For RedHat-based systems :

# /usr/local/psa/admin/sbin/mchk --with-spam

For Debian-based systems :

# /opt/psa/admin/sbin/mchk --with-spam
Have more questions? Submit a request
Please sign in to leave a comment.