Plesk 11.x / Linux :: New Mailbox Variable From (Mail Account Updated) Event

Jan 15, 2015

PRODUCT, VERSION, MICROUPDATE, OPERATING SYSTEM, ARCHITECTURE
Parallels Plesk, 11.5, .30_build115130819.13, Debian 7.0, Intel 64bit

PROBLEM DESCRIPTION
When triggering the events 'Mail account created' or 'Mail account modified' the returned variable NEW_MAILBOX will always state TRUE regardless of the mailbox option being ticked or not ticked on the 'New mail account' option located on the 'Mail' tab of a subscription.

STEPS TO REPRODUCE
1: Log in to plesk.
2. Select 'Tools & Settings'
3: Select 'Event Manager'
4: Select 'Add New Event Handler'
5: Select Event 'Mail account updated'
6: Enter in '/usr/bin/php /root/scripts/dbmail/mail_mod.php' to the Command box.

[Code] ....

ACTUAL RESULT

[NEW_MAILBOX] => true

EXPECTED RESULT

[NEW_MAILBOX] => false

ANY ADDITIONAL INFORMATION

I submitted this with parallels support and they stated that the variable NEW_MAILBOX will always return as TRUE regardless of if the mailbox option is ticked or not. They also stated the NEW_MAILBOX variable will be true regardless of any action taken on the panel with mail accounts.
The actual documentation on this variable is very sparse

Component name/description Old component value New component value
Mailbox old_mailbox new_mailbox

We previously had some code that would trigger on this variable and would create a mail account on our mail server with or without a mailbox.

if (!strcmp(getenv('NEW_MAILBOX'),"true") && !strcmp(getenv('OLD_MAILBOX'),"false")){
//Create a mailbox on the external mail service
}
if (!strcmp(getenv('NEW_MAILBOX'),"false") && !strcmp(getenv('OLD_MAILBOX'),"true")){
//Create a mail forwarder on the external mail service
}

At some point this variable has stopped working with newer versions of plesk. Having a variable that is always true regardless of what is done when creating a mail account seems pointless and requesting a new feature that was already there in older versions doesnt seem like something that should be requested on a new feature request.

QUESTION: Is there anyway to get this functionality restored other than requesting it gets re added via [URL] ....

View 2 Replies


ADVERTISEMENT

Plesk 11.x / Linux :: Cannot Authenticate Via SMTP For Mail-users With Mailbox Off And Forwarding On

Apr 9, 2013

I have mail-addresses with mailbox turned OFF and Forwarding switched ON.

The user can receive emails but can't use SMTP to send email. I expect that users without mailboxes can send messages, like in Plesk 9.5.

Error: No such user 'info@example.com' in mail authorization database

CentOS 6.4 + Plesk 11.0.9 Update #45

View 9 Replies View Related

Plesk 11.x / Windows :: Event New Subscription Created / Delete On Event Manager

Apr 17, 2014

How can I create new action when new subscription was created/deleted?

View 1 Replies View Related

Plesk 12.x / Linux :: Doesn't Want To Be Updated

Jan 27, 2015

When loggin into the Plesk, it says:Failed to update Plesk. To solve this problem, you can send the update log to Parallels support.View the update logs (Jan 23, 2015).Copy the logs to your computer before you close this message. To close this message, clickhere.How to proceed with that? Whom should I send this log-file?

View 8 Replies View Related

Plesk 11.x / Linux :: Event Handler For Subscription Created

Apr 25, 2014

Which Event Handler gets fired when a subscription is created? I've tried both "Hosting settings created" and "Default domain (the first domain added to a subscription/webspace) created" but those don't seem to be firing when I create a new subscription. After creating the Event Handler the psa service was restarted each time. I have a script setup to just log the NEW_DOMAIN_NAME to a file, but that isn't happening.

View 3 Replies View Related

Plesk 12.x / Linux :: Event Manager Commands - Where Does STDOUT Go

Mar 5, 2015

If a shell script is run via the Plesk Events Manager, where does STDOUT & STDERR go? (assuming that nothing in the script itself is redirecting it)

Does it get automatically sent to /dev/null?

Does it get written to a file somewhere?

Is having a script produce output when run from Plesk Event Manager likely to cause any problems?

View 3 Replies View Related

Plesk 12.x / Linux :: MySQL Tmpdir Is Read Only Variable Error

Mar 23, 2015

I want to move mysql tmpdir to /ramdisk but when i am setting it, mysql errors: tmpdir is read only variable.

View 3 Replies View Related

Plesk 11.x / Linux :: Configure Event To Monitor Email Queue?

May 19, 2014

How can I configure an event so when the number of emails in the queue exceeds a certain number then I am notified on the Mobile Plesk Server Monitor?

View 7 Replies View Related

Plesk 12.x / Linux :: Updated From 11.5 - Outgoing Spam Not Working

Jul 2, 2014

I just did the update to 12.0.18 #6 and everything seemed to go pretty well. One feature we were really interested in was the Outgoing Spam Filter. Unfortunately, the error I see when I go to that feature reads, "Protection : Not active. There are some problems that prevent the service from being started."

When I Google that error, I'm brought to some KB articles but they are all for the older Outgoing Spam Filter that you need a license key for. I don't believe that is the case any more - if it is, I don't know where to get the key. I will say point out I'm a bit of a Linux novice (we are running CentOS 6.5 on this server), so I'm not really sure where to look....

View 4 Replies View Related

Plesk 11.x / Linux :: Running Script From Event (Hosting Settings Created)

Jun 10, 2014

I'm trying to run a simple bash script when a new account is created, because I need to move some files automatically. So what I did:

I have created a simple bash script for testing if Plesk run it, called move_some_files.sh under /var/www

Code:

#!/bin/bash
echo "${NEW_SYSTEM_USER} ${NEW_DOMAIN_NAME}" >> move_some_files.log

I created this file as root and did chmod +x.

I created a new 'Hosting settings created' event running as root and with the highest priority with this command: /var/www/move_some_files.sh

I created a new customer with to test it

But, is not running the script! If I try some command directly on the event like 'touch /var/www/new_file' it's created, so the event is running, but not my script.

View 1 Replies View Related

Plesk 12.x / Linux :: How To Disable Xcache Being Installed Or Updated Automatically

Apr 29, 2015

I wanted to permanently get rid of xcache from my Plesk 12 as some softwares we are using crashes if xcache is installed or enabled on server.

At present I am doing yum remove to remove xcache php extension from server which is allowing our software to work but after couple of days, its coming back again.

I found traces in autoinstaller log, but I am not sure how to completely disable only xcache for all php versions installed on server i.e. PHP 5.3, 5.4, 5.5

View 6 Replies View Related

Plesk 11.x / Linux :: Event Handler To Change Default Permissions Of Skeleton Site

Mar 1, 2015

I am running Plesk 11.5.30 on CentOS and trying to change the default permissions of the /httpdocs folder and the skeleton site that is in .skel/0/httpdocs that appears when a domain is created. I have failed to find the event that I need to use to trigger the command.

#!/bin/bash
chmod -R g+rwx "/var/www/vhosts/${NEW_DOMAIN_NAME}/httpdocs"​

Some research suggested using the 'physical hosting created' but there is no option for this in 11.5.30.

View 3 Replies View Related

Plesk 11.x / Linux :: Exporting Emails From Mail Account

May 29, 2014

One of my domains has been moved to another hosting company, and now I need to export all emails from the mail account in Plesk in order to import them to the new mail system. I figured the easiest way to IMPORT is to access the new mailbox via Outlook, and import as a .csv file. But I need exporting all the emails from the inbox and sent folder into a .csv file.

I've found the location of the mail box (var/qmail/mailnames/domain.com/user/maildir) but now I'm stuck and don't know how to proceed. Is there an easy way to export all emails?

I've tried through webmail (Roundcube) and there is a "download mail" feature that downloads the message in eml format, but that doesn't work on bulk, only for one mail at a time (and this isn't an option for me since we are talking +1000 emails). Also I'm a bit usure on how to import eml files to outlook (drag'n'drop doesn't work), so a csv option would be perfect.

View 5 Replies View Related

Plesk 11.x / Linux :: No Mailbox Created

May 24, 2014

$request = <<<EOF
<packet version="1.6.5.0">
<mail>
<create>
<filter>
<site-id>34</site-id>
<mailname>
<name>$username</name>
<mailbox>
<enabled>true</enabled>
<quota>1024000</quota>
</mailbox>

[code]....

I write this code for creating mail box, but I get "No mailbox" message in plesk panel. I need to create mailbox.

View 2 Replies View Related

Plesk 11.x / Linux :: Unable To Setup Apple Mail Email Account

Mar 3, 2014

I registered a domain name and setup a Linux server on GoDaddy, choosing Plesk panel with Power Pack. Inside the panel I created an email address, which I can access from the webmail interface without problems. I decided to setup my clients as well, using the IMAP configuration, as I'm using multiple devices.

I followed the instructions for Outlook express and I was able to setup the account on my virtual machine, with Windows 7 and Windows Live Mail.Though, speaking of the host machine, a MacBook Pro, I normally use Apple Mail that comes with MacOS. Instructions for setting up Mail are updated back to Snow Leopard at least and they do not work properly. I tried various configurations, but I was only able to receive mail on the account, while sending won't work at all.

I'd like Parallels to update the guide or, at least, to open a KB page with the solution(s) to this issue: I googled it and found out that it is a common issue.

View 3 Replies View Related

Plesk 12.x / Linux :: Create Mail Account For Subdomain - Unable To Set Password

Feb 2, 2015

In Plesk (V. 12.0.18) there is no possibility to create mail accounts for subdomains via web interface. The KB article [URL] ..... describes this problem. The article suggests two possible ways.

I don´t want to use option 1 (create subdomain as additional domain) because a subdomain as domain wastes a domain in the license model.

Instead of that I tried the second way (command line interface). I can execute the first command without problems. When I try to execute the second command, I get the following error: "An error occured during mailname creation: Unable to set password: Domain of type subdomain selected".

View 3 Replies View Related

Plesk 12.x / Linux :: New Email Address With NO Mailbox

Jun 20, 2014

Since upgrading to 12.0.18 Update #5 i have picked up a strange problem when creating a new email account.

When I try setup and new email account on any domain, I get teh following error message.

Code:

Error: mailmng-outgoing failed: ERROR:outgoing:mails.domain_id may not be NULL

If i click OK, I get the following error message

The specified email address is already in use.

I have to click cancel to return to the email address list, which shows the new email address with NO mailbox.

I then have to open the email address and check the Mailbox option to activate it.

Now the email account is configured correctly.

View 5 Replies View Related

Plesk 11.x / Linux :: Email Mailbox Restoration

Oct 28, 2014

I have an individual that has moved there "sent box" to the deleted items and yes, has deleted them.

I have not used the restoration feature of plesk so i have a couple of questions before proceeding.

1. Can I restore a specific mail box folder "sent items"

2. If so will it overwrite all the items and only restore whats on the backup, because he has only just noticed and he has about 500 emails from the point he deleted it? or will it merge the items - e.g the 500 he has now + all the others from the back up.

3. If i cant restore a specific folder, does it overwrite all of the current mail from the backup.

View 1 Replies View Related

Plesk 12.x / Linux :: Spam Sent From Limited Mailbox?

Apr 3, 2015

Today in a plesk 12 with mail control (20 mails per hour per mailbox) a spammer stole a password of a mailbox and send nearly 1000 mails in two hours.

How can it is possible? Also in the stats I see 0 mails sent. In the logs (var/log/mail.log) I see the spam wast sent from a mailbox...

View 8 Replies View Related

Plesk 12.x / Linux :: One Mailbox Cannot Send Mails?

Jul 14, 2014

i have one Mailbox on my server, which i cannot sending mails. I tested it with Outlook and Horde.

For Example, i see this error at the Maillog:

Code:

Jul 14 22:12:13 gaius postfix/cleanup[12194]: 2F653402A6: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 5.7.0 The message could not be sent. You are not allowed to use sendmail utility.; from=<user@server1.local> to=<user2@server.local> proto=ESMTP helo=<gaius.stefanshome.com>

I delete this Mailbox, but after a time, i have the same problem again. On the Plesk Webinterface there is no problem logging with the outgoing spam protection.

View 2 Replies View Related

Plesk 12.x / Linux :: Mailbox Quota In Web App Edition

Oct 20, 2014

how to adjust the mailbox sizes.

i imported ~15 email account during a cPanel migration/transfer done with the manager. mails are there but mailboxes, that had an unlimited quota, are now set to 350MB.

i tried a bunch of stuff, from searching the whole webinterface, changing db entries up to postfix main.cf.

i'm just restoring yesterdays backup. i already lost hours, and now am loosing nerves ..

where can I find this setting, or how can i set it in the DB (chancing max_box and mbox_size did not work, changes in the mail table were reflected on the UI, but not for postifx ..) ?

View 10 Replies View Related

Plesk 12.x / Linux :: Mailbox Usage Display?

Jul 1, 2015

On the page /smb/email-addresses/list (for each domain) there is a list of email addresses with a usage bar graph on each line.

Last week, all mail was deleted from some of the accounts, but the bar grpah has not updated.

One of the mailboxes shows 495mb, but du on the qmail directory shows it has only 9.

How can I get the Usage column to report correct data?

View 1 Replies View Related

Plesk 12.x / Linux :: Set All Mailbox Quotas Under A Domain?

Feb 11, 2015

Plesk 12.x
CentOS 6.6, 64-bit

Is there a way to set the mailbox quotas for all of the mailboxes on a domain, at once? When I set the default, it doesn't change the quotas for existing mailboxes.

View 3 Replies View Related

Plesk 11.x / Linux :: How To Get Mailbox Limits From Database

May 21, 2014

I have a script which checks the mailboxes of all clients to notify them when they're reaching capacity.

This does so by checking the psa database for their set limit and matching that to the maildirsize file within the user's Maildir directory.

After upgrading, though, my SQL query no longer works - it was:

Code:
SELECT clients.email as owner_email, domains.id, domains.name, Limits.value AS domain_quota, mail.mail_name, mail.mbox_quota from Limits, clients, domains, mail WHERE mail.postbox='true' AND limit_name = 'mbox_quota' AND domains.limits_id = Limits.id AND mail.dom_id = domains.id AND clients.id = domains.cl_id ORDER BY domains.name ASC

However, on closer inspection, all values in the domains table for limit_id are NULL.

Has this changed in 11.5? Is there an alternative way to quickly get all limits for domains?

View 4 Replies View Related

Plesk 11.x / Linux :: Add Mailbox - Invalid Parameter Number

Jul 25, 2014

After upgrading from 9.5 to 11.5.30 update #47 (CentOS 5.8 (Final) 32bit) i'm getting error when trying to add an email box:

Internal error: SQLSTATE[HY093]: Invalid parameter number: no parameters were bound MessageSQLSTATE[HY093]: Invalid parameter number: no parameters were bound
File Pdo.php
Line234
TypeZend_Db_Statement_Exception

mysql request "select objectId from Configurations where status='error';" gives nothing.

View 1 Replies View Related

Plesk 11.x / Linux :: 4.4.2 Mailbox Full But Quota Is Not Exceeded

Sep 18, 2014

we have a Problem with one of our customers there hosted by Plesk 11.5.30 Update #47.

If a mail was sent to the mail address from our customer, postfix log the following entry:

Code:

/usr/lib/plesk-9.0/psa-pc-remote[28391]: handlers_stderr: DATA Mailbox full#015#012DEFER
/usr/lib/plesk-9.0/psa-pc-remote[28391]: DEFER during call 'check-quota' handler
/usr/lib/plesk-9.0/psa-pc-remote[28391]: Message aborted

The mail Sender will receive a Information with the error message 4.2.2 Mailbox full

But the quota is not exceeded. The quota is 3GB and the assignment is perhaps 20 percent.

We have configured, that we became a mail if the quota from our customer is oversized. But we also become no mail that the quota is oversized.

View 2 Replies View Related

Plesk 11.x / Linux :: Service Is Used For Changing Mailbox Passwords

Feb 20, 2015

I am having a Plesk server and when I scanned it with tools like OpenVas, It detected the following vulnerabilities with CVE acronym. As the corresponding ports and services are being controlled by Plesk, I require to patch it.URL....As you can see this vulnerability has been hit on port 106. I checked the Plesk server and found the port 106 being used by service "poppassd". This was nothing I installed and came along with the Plesk installation. Hence just wanted to make sure whether it has a patch from Parallels. As per my investigation this service is used for changing mailbox passwords and I am currently using Roundcube client. How to patch this vulnerability.

As per the solution in pic, the vulnerability "SMTP antivirus scanner DoS" can be resolved by upgrading or installing anti virus for Plesk mail server. I am ready to buy Dr.Web or Kaspersky from Parallels. But wanted to make sure whether any of the above antivirus can resolve the vulnerability.

cat /usr/local/psa/version
11.0.9 CentOS 6 110120608.16

View 1 Replies View Related

Plesk 11.x / Linux :: How To Auto-empty Specific Mailbox Daily

Dec 4, 2013

Is there any way to auto-delete all the messages in a specific mailbox on a specify domain on a daily basis? Using Postfix.

View 4 Replies View Related

Plesk 11.x / Linux :: Mailbox Disabled - Email Accepted And Not Bouncing

Jul 4, 2014

I have Plesk 11.5.30 Update #47, Centos OS 6.5 x64, MTA Qmail 1.03

Today I encountered a estrange thing, a disabled mailbox was accepting mail but not bouncing it.

In the panel the "user@tld.com" mailbox is disabled, if a email is sent to that address Qmail accepts it:

Jul 4 17:51:35 mx3 qmail-queue-handlers[27432]: Handlers Filter before-queue for qmail started ...
Jul 4 17:51:36 mx3 qmail-queue-handlers[27432]: from=root@mx3
Jul 4 17:51:36 mx3 qmail-queue-handlers[27432]: to=user@tld.com
Jul 4 17:51:36 mx3 qmail-queue-handlers[27432]: handlers_stderr: SKIP

[Code] ....

No mail is bounced, nothing, the message is not in the mailbox.

Tested in several accounts the result is the same, even in a new created account.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved