• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

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=<testmail@domain.com>, 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
      example@example.com
      DEBUG setMailboxQuota(..., -1)
      Clean virtual aliasing settings for example@example.com
      Restoring auth settings for example@example.com
      Restoring antivirus settings for example@example.com
      Restoring antispam handlers for example@example.com
      Restoring autoresponder handler for example@example.com
      Restoring autoresponder database settings for
      example@example.com
      Restoring greylist settings for example@example.com
      Restoring virtual aliasing for example@example.com
      Restoring responder attachments info for
      example@example.com
      Restoring antispam settings for example@example.com
      Restoring spamassassin .qmail options
      Restoring outgoing limits for example@example.com
      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