• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved 5.7.0 The message could not be sent. You are not allowed to use sendmail utility. 4.2.1 Message can not be delivered at this time

Josch

New Pleskian
Plesk Obsidian 18.0.25
Ubuntu 16.04.6 LTS

Hi,

I've got a problem with "forwarding only" emails with outgoing mail control on one domain:

When I'm trying to send an email to one of this email addresses with mail forwarding I get this in the maillog:

Code:
Mar 20 15:56:13 mail postfix/pipe[742]: 86FAC1004D2: to=<[email protected]>, relay=plesk_virtual, delay=529, delays=527/0.01/0/2.8, dsn=4.3.0, status=deferred (temporary failure. Command output: Mail handler 'limit-out' said: REPLY:554:5.7.0 The message could not be sent. You are not allowed to use sendmail utility. 4.2.1 Message can not be delivered at this time )


I found this: Mails from contact form or after scheduling tasks are not getting delivered: You are not allowed to use sendmail utility but sendmail is enabled Server-Wide:

Tools & Settings > Mail Server Settings > Allow users and scripts to use Sendmail - enabled

and Tools & Settings > Outgoing Mail Control> Subscription > domain.com > Change Limit from the corresponding domain "Sendmail Usage Policy" is set to "Default server-wide settings (Sendmail is allowed)".

I've tested some other forwarding only email addresses on other subscriptions and these seem to work. They are sent correctly. That is very strange. Any hints, what I can do/search/control next?

I've looked in the plesk database table "mail" but couldn't found differences between the problematic and the non-problematic email addresses.

Any help is appreciated :)

Thanks a lot in advance and best wishes,

Joska
 
Hmmm, may be a bug. This domain seemed to be missing in the plesk outgoing mail limits database.

After I added the domain with

Code:
/usr/local/psa/admin/sbin/mailmng-outgoing --add-subscription --main-domain-name=domain.com

the emails for that domain addresses went through.

Here is someone with a similar problem:


And that is EXACTLY what I did with that problematic domain - I moved it to another subscription and after that it seems to be deleted out of the plesk outgoing mail limits database.

Is that repairable? If not - where should i report that bug?

Best wishes,

Joska
 
Thanks, you solved my problem.

Plesk Obsidian Versión 18.0.34
CentOS Linux 7.9.2009 (Core)

Code:
[root@server /]# plesk repair mail example.com

Repairing the mail server configuration
    Reconfiguring the settings of domains: example.com ........... [OK]
    Reconfiguring the mailboxes ..................................... [2021-03-23 11:34:34.524] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/mailname_repair'] with exit code [1]
[FAILED]
    - mailname_repair failed: Restoring mailbox settings for
      [email protected]
      DEBUG setMailboxQuota(..., -1)
      Clean virtual aliasing settings for [email protected]
      Restoring auth settings for [email protected]
      Restoring antivirus settings for [email protected]
      Restoring antispam handlers for [email protected]
      Restoring autoresponder handler for [email protected]
      Restoring autoresponder database settings for
      [email protected]
      Restoring greylist settings for [email protected]
      Restoring virtual aliasing for [email protected]
      Restoring responder attachments info for
      [email protected]
      Restoring antispam settings for [email protected]
      Restoring spamassassin .qmail options
      Restoring outgoing limits for [email protected]
      mails.domain_id may not be NULL
      ERROR:__main__:This exception happened at:
      Traceback (most recent call last):
        File
      "/usr/local/psa/admin/sbin/mailname_repair/mailname_repair.py",
      line 55, in main
        File
      "/usr/local/psa/admin/sbin/mailname_repair/mailname_repair.py",
      line 18, in restore_outgoing_limits
          sys.stderr.write('Could not launch python executable!\n')
        File
      "/usr/local/psa/admin/sbin/mailname_repair/plesk_outgoing_mail_db.py",
      line 320, in create_mailname
          mail_name, domain_name).rowcount
        File
      "/usr/local/psa/admin/sbin/mailname_repair/plesk_sqlite3_db.py",
      line 139, in run
          return conn.execute(query, params)
      IntegrityError: mails.domain_id may not be NULL

Error messages: 0; Warnings: 0; Errors resolved: 0


exit status 1
[root@server /]# /usr/local/psa/admin/sbin/mailmng-outgoing --add-domain --domain-name=example.com --main-domain-name=maindomain.com
[root@server /]# plesk repair mail example.com

Repairing the mail server configuration
    Reconfiguring the settings of domains: example.com ........... [OK]
    Reconfiguring the mailboxes ..................................... [OK]

Error messages: 0; Warnings: 0; Errors resolved: 0

[root@server /]#
 
Thank you Josch, I followed the steps you provided, and after a while the problem was solved, it turned out that I didn't check this "Allow users and scripts to use Sendmail - enabled"
 
Back
Top