Plesk 11.x / Linux :: How To Auto-empty Specific Mailbox Daily
Dec 4, 2013Is 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 RepliesIs 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 RepliesWhen I create Mailbox for customer, spamassassin have status (default):
HTML:
Status false
The score that a message must
receive to qualify as spam
What to do with spam mail move
Add the following text to the true
beginning of subject of each
message recognized as spam
Modify spam mail subject text ***SPAM***
Black list
================================
Server-wide black list:
User's black list:
White list
================================
Server-wide white list:
User's white list:
But i want it:
HTML:
Status false
The score that a message must 7
receive to qualify as spam
What to do with spam mail text
Add the following text to the true
beginning of subject of each
message recognized as spam
Modify spam mail subject text ***SPAM***
Black list
================================
Server-wide black list:
User's black list:
White list
================================
Server-wide white list:
User's white list:
Not Move, it only text at "What to do with spam mail text"
How i can do it ?
How to set up cron job auto empty a table of an database at specify time.
OS: Centos 5 64 bit , Cpanel: cPanel 11.24.4-R32486 - WHM 11.24.2 - X 3.9
My POP services keep failed daily between 10am-4pm central time. Rather strange.
However, sometimes some people can't access pop services, while others still can.
I thought it was a SpamAssassin issue as it was overloading a little bit due to corrupt files. Fixed that, and problem persists.
CentOS 4.x
cPanel 11.x
SpamAssassin 3.2.x
why my maillog is empty. I have checked both locations below but result remain the same:
/usr/local/psa/var/log/maillog
/var/log/maillog
I'm running this Plesk inside OpenVZ container (using centos-7-x86_64-minimal template)
I installed new Plesk in new VPS with Centos 7 (Virtuozzo - former PCS)... One domain is running, but when reboot the server, maillog stopped.
Last lines of the login are:
Jul 23 13:45:08 server dovecot: service=pop3, user=xxxxxxx@xxxx.com.ar, ip=[190.X.XX.XXX]. Server shutting down. rcvd=3270, sent=23925997, top=0/0, retr=327/23659830, del=0/594, size=40888121
Jul 23 13:45:08 server dovecot: anvil: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Jul 23 13:45:08 server dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Jul 23 13:45:08 server spamd[3369]: spamd: server killed by SIGTERM, shutting down
Jul 23 13:45:08 server postfix/postfix-script[4396]: stopping the Postfix mail system
Jul 23 13:45:08 server postfix/master[31144]: terminating on signal 15
Jul 23 13:45:08 server /usr/lib64/plesk-9.0/psa-pc-remote[2587]: PleskFilter: private data not NULL
Jul 23 13:45:08 server /usr/lib64/plesk-9.0/psa-pc-remote[2587]: PleskFilter: private data not NULL
Jul 23 13:45:08 server postfix/postfix-script[4404]: waiting for the Postfix mail system to terminate
Jul 23 13:45:13 server /usr/lib64/plesk-9.0/psa-pc-remote[2587]: PleskFilter: mi_stop=1
I can reproduce this problem, but cannot fix it....
$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.
Plesk 12 on Centos 6.5
I added the following to my /etc/logrotate.conf
/var/log/modsec_audit.log {
missingok
daily
rotate 4
compress
}
I'm not exactly sure if the above is the correct syntax, but the result was that two days later my current modsec_audit.log was Gzipped and a new modsec_audit.log was created.
The problem is that nothing was logged to this new file.
From the Plesk 12 control panel I turned off mod security and then turned it back on again and hey presto, the new logfile started to log events.
This leaves the problem of why nothing was recorded when the file was created.
I have restore my Plesk 12.0.18 Backup after new installed Server from Ubuntu Server 12 to Ubuntu Server 14.
The Backup is from Plesk 12.0.18 under Ubuntu Server 12!
After restore all Mailboxes are available and work they, but all Mailboxes are empty. No contents are restored.
New try to restore Mail Account only have no Result.
I have downloaded my backup file to local Computer and extract.
In file backup_mydomain_mn_1409281400.tgz are all Messages encrypt available. But Not restored.
Why????
In the fail2ban module of plesk is a tab for "logs".
Here you can view Fail2ban logs.
No items found.Click to expand...
When I log into plesk (service provider view) and click on the Domains link on the left, I get an empty page. It isn't blank like there is an error, it has some instructions at the top about creating a customer etc. It just doesn't list any of the domains that are setup on the server. There are several reseller accounts with several domains under each. I've even tried setting up a new customer and adding a domain under the new customer. Still nothing shows up.
I have several other VPS accounts running Plesk 12 with several domains under different customer accounts and the domains all show up on those.
I'm testing Plesk 12.1 and noticed after enabling ModSecurity, the modsec_audit log file is empty.
I'm running CentOS7.1 w/Plesk 12.1.23
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.
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.
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...
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.
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 ..) ?
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?
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.
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?
Our Server doesn't show the Traffic History under "Tools & Settings -> Summary Report -> View Traffic History", but for every Domain it runs.
We Migrate this Server from a Dedicated to an OpenVZ Server - on another Server with OpenVZ its running without Problems, but this one we don't migrate.
I'm just wondering how I can start logging activity in Fail2Ban. I've got the following line in the "logs" tab in "IP Address Banning" in the Plesk UI:
/var/log/fail2ban.log
However when I check this it states "The file is empty".
I'm assuming there will be a setting somewhere that tells fail2ban to log to that file but I'm not sure where/what it is?
I know for sure that I've had IP's banned but they just don't appear to be logged.
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.
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.
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
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.
When running the repair function to convert mailboxes to lowercase, I immediately receive the following error:
/usr/local/psa/bin/repair --convert-mailboxes-to-lowercase
2014-10-30T00:11:09+01:00 ERR (3) [util_exec]: proc_close() failed
What does this "[util_exec]: proc_close() failed" means and how can I fix this error?
In plesk9 my customers had the option to send daily usage reports by e-mail. Only certain clients like this option. Using plesk11 I cannot find this option if I log in as a client. Has this feature been removed? And if so, can the administrator enable this option only for 1 or 2 clients?
View 2 Replies View RelatedI get these emails every day, sometimes less warnings, but today there are plenty again:
Subject: Cron <root@plesk01> /opt/psa/admin/bin/php -c '/opt/psa/admin/conf/php.ini' -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/servershield/scripts/aggregate-stats.php'
Code:
PHP Notice: Undefined property: stdClass::$response; File: /opt/psa/admin/plib/modules/servershield/scripts/aggregate-stats.php, Line: 21
PHP Notice: Trying to get property of non-object; File: /opt/psa/admin/plib/modules/servershield/scripts/aggregate-stats.php, Line: 21
[Code] .....
They started showing up when I upgraded to Plesk 12 and activated the server shield extension. The server is an Ubuntu 12.04 LTS.