Plesk 12.x / Linux :: Mail Folder Accessible To Each User
Nov 26, 2014
I would like my Plesk users to each have access to the mail folder for their domain. cPanel appears to do this by default by creating a folder named /home/user/mail which contains a subfolder for each domain name. Plesk, however, places all email folders together in the /var/qmail/mailnames folder. I would like to end up with a structure similar to how cPanel does it, but it looks like there are at least a couple of ways to accomplish that and I'm not sure what would be the most safe, reliable way to do it.
One way I can think to do it would be to override the Plesk dovecot config by adding a new config file to /etc/dovecot/conf.d. I think changing the values for mail_home and mail_location as follows would possibly work.
Old values:
mail_home = /var/qmail/mailnames/%Ld/%Ln
mail_location = maildir:/var/qmail/mailnames/%Ld/%Ln/Maildir
New values:
mail_home = /var/www/vhosts/%Ld/mail/%Ld/%Ln
mail_location = maildir:/var/www/vhosts/%Ld/mail/%Ld/%LnMaildir
I see a potential issue with this solution; the %Ld for an add-on domain will probably be the add-on domain, and there will not be a folder within /vhosts/ with that name. Perhaps there is another variable for the primary domain that I could use there.
A second way I can think to do it would be to add a symlink in /var/www/vhosts/domain/ named "mail" that points to the actual mail folder for a domain. Again, issues would probably occur here with add-on domains, and I also can't see a way to automate this. I also predict permissions issues with this solution.
after creating a new cron job, when i try to open Scheduled Tasks i get this error :Internal error: DateTime::__construct(): Failed to parse time string (2015-05-28 0.12:0:37) at position 17 ): Unexpected character
Message DateTime::__construct(): Failed to parse time string (2015-05-28 0.12:0:37) at position 17 ): Unexpected character File Helper.php Line 143 Type Exception
I'm just testing Plesk 12 on CentOs 7 and after installation is succesfully completed, I cant access [URL]
This is the environment and steps which I taken: * Fresh CentOs 7 iso * Windows 2008 R2 Hyper-v hypervisor
1) Installation of the CentOs successfully completed 2) Yum update 3) Download auto-installer 4) Run auto-installer 5) process successfully completed 6) NOW I CAN'T access the url ...
After upgrading to plesk 12 over the weekend. None of my mail users can authenticate.I'm receiving quite a few error messages such as this for my ipmap users
authpsa[3822]: No such user 'bstewart@mwfbooks.com' in mail authorization database courier-imapd: LOGIN FAILED, user=bstewart@mwfbooks.com, ip=[::ffff:69.176.116.106]
I've tried running mchk --with-spam command. But it hangs at the mail_auth_dump for several hours. Checking the cpu on that command and it is sitting idle.I've tried running the mail_auth_dump.worker manually and no better luck. Still nothing on the screen just hangs as if it's asleep.
Two days ago we have upgrade a Plesk Panel 11.5 to 12.0.18. It have been working properly until today. Lots of mailboxes doesn't work with the error
Jun 24 13:30:12 hosting2 plesk_saslauthd[19704]: No such user 'mailbox@domain.tld' in mail authorization database Jun 24 13:30:12 hosting2 plesk_saslauthd[19704]: failed mail authenticatication attempt for user 'mailbox@domain.tld' (password len=10)
The /usr/local/psa/admin/bin/mail_auth_view show only a few mailboxes. The /usr/local/psa/admin/sbin/mchk --with-spam does´t fix the problem.
If we change the password of one of the crashed mailbox, it works until the /usr/local/psa/admin/sbin/mchk command is executed.
If we try to clear a new mailbox in one of the domains that doesn't work, we adquire the error "mailmng-outgoing failed"...
I thought I knew enough about my .htaccess stuff to do this, but I can't seem to work it out. What I want to do is if a user visits domain.com/folder, we check to see if the folder exists. If so, show as normal (IE domain.com/support)
If a user visits domain.com/dynamicusername (dynamicusername is not a physical folder), redirect to dynamicusername.domain.com
Are some days that in the root of my server there is a folder without a name. I think it is fail2ban to create this folder? Only I have access to the server.
The server authenticates the FTP login, Plesk Panel shows the session, but none of the FTP's display the folder. Whats the command to reset FTP connections.
CentOS 7 + Parallels 12.0.18 I've found articles for older versions or CentOS 6, but those commands no longer work...
So yesterday I tried to follow along with http://www.eth0.us/tmp to secure m /tmp folder. It broke. I have since fixed the issues (chmod 1777 and not 0777) but I still have a second tmp mount point that I can't get rid of.
/dev/tmpMnt on /tmp type ext2 (rw,noexec,nosuid,loop=/dev/loop0) tmpfs on /dev/shm type tmpfs (rw,noexec,nosuid,nodev) /tmp on /tmp type none (rw,noexec,nosuid,nodev,bind)
My Plesk Panel 11.0.9 Update #26 is running on a dedicated Debian 6.0.6 server and works all fine, but I'm having some issues with the backups. I'm doing backups using the standard build in GUI backup manager. Everything works fine, even the cron job which copies the backup files every night to a second location. The problem I'm having is, that I can't specify folders to exclude from the backup. The reason why I need this is, that I have a 24TB RAID mounted in the /var/www/vhosts/mydomain.com folder and this will be a problem once the RAID is filling up.
I'm trying to copy a backup from the FTP server to the production server but I don't have enough space in the tmp folder.
There is a way to change where the backups are temporary until the hole backup is on the server? In case the only thing to do is to change where the tmp folder is mounted. This is a production server, I won't like to do it without knowing all the steps.
the problem is very big since backup procedure not backup all files and folder. I have a lot of Wordpress installations (some of that made with App Installer and others made by hand).
Into all the above installations, files and folder created by Wordpress, like plugin installed or image, uploaded are not backup!
I have seen that all this files come with www-data:www-data user and group but with read permissions for owner, group and others, so i not able to understand why they are not inside my backups. If i change user and group all works fine.
Check your Wordpress backup and verify the presence of plugin and images (miniature of images are still present since they are created with different user and group)...
I'm having a problem when copying folders into another folder using the same name.e.g. there's a folder called css in httpdocs/backup/css and also httpdocs/css. However, I'm trying to restore the backup and actually copy the /css dir from httpdocs/backup to httpdocs. Plesk should overwrite the existing target css dir (and its content/files) in httpdocs/css. However, Plesk creates a new css dir inside httpdocs/css so I have the "original" httpdocs/css dir content intact and also the css dir (from httpdocs/backup/css) copied into httpdocs/css so the full path is httpdocs/css/css
I'm highlighting the httpdocs (not /css dir) in the File manager - Copy Files window. I've tried that on a few installs and experiencing issue on each of them. Please see the attached screenshots.
Step 1. Select (check) the css dir and click copy (or move, result is the same)
Step 2. Mark the httpdocs dir (it doesn't matter if you click the Replace existing files checkbox)
Step 3. Final result, css dir from httpdocs/backup copied into httpdocs/css/
I've compared the dir content several times and definitely the css dir from httpdocs/backup is copied to httpdocs/css so the full path would be: http docs/css/css and the original "old" files from css will remain there.
* Go to "Web Server Settings" add text to "Additional directives for HTTP" and press button "Ok". * Go to "Document root" folder of your domain and now you have a new folder "/cgi-bin/test" with file "test.cgi":
Code: #!/usr/bin/perl print <<HTML; Content-type: text/html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
I have a problem where every folder I ftp onto the server gets given a 700 permission and every file gets a Zero permission. Most of the sites I am adding to this server will be WordPress sites and most of the folders I want to have a permission of 755 and for the files a permission of 644 so my question is how do I change the settings so that any new files ftp'd onto the server get the permission 755 and files get the permission of 644 ?
Webmail using, in the "Inbox" I chose all the mail and accidentally pressed the "clear folder" letters deleted or i am can be restored? I need to return the letter....
the xxx@enotecalatorreroma.com is the one that for months and still now is giving problems when sending emails. Sent emails to Hotmail are going to Junk folder.
I am noticing that several of my users are wiping out their user root folders ( logs, error docs, etc...) when they fail to use '/httpdocs/' as the root directory when publishing with FTP.
I fixed this by editing the proftpd.conf to use ~/httpdocs/ as the DefaultRoot folder ( instead of just ~/ ).Would it be safer(better) to go through all the ftp users and make the home directory '/httpdocs/' instead of '/' in the admin UI? If yes, what is the best way to do a mass update of this setting for multiple users ( multiple domains ) ?
I got this Problem after install a New Plesk Server.
Current: CentOS 6.5, Plesk 11.5.30, PHP 5.3.3 (Default install), PHP as FastCGI (I Tried also with Plesk 12.x).
What I did: in IP Tables i set al Ports for Plesk; I set in /etc/proftpd.conf the Ports "PassivePorts 65000 65200"
Problem: Each file ore folder created by an php Application i cant see ore override by ftp.
Example: I Upload a new installation of Joomla 2.5 (CMS) by ftp with a User created by plesk. Then I start the Installation by using the Webbrowser. In this process Joomla change some files and create also an configuration.php. All done by php Scripts. Now I check the configuration.php on the FTP -> Cant see it. -> I check by SSH and the file exists. If I Check the Permissions it seams, that all file have same permissions, owner and group.
-> Configuration.php can not see by ftp ore be overwritten -> htaccess.txt I see by ftp and i can manage ->> Permissions seams to be the same "?"!"
I Have a WinServer 2008R2SP1 with plesk 11. I am able to access to PControl panel with https://localhost:8443 but not from outside the server (https://serverIP:8443)
I'm trying to create a network connection from Windows (8.1) to my Plesk filesharing folder, which should be straight forward. For some strange reason my Windows desktop PC doesn't establish the connection but shows me an error message, saying that the provided folder is invalid (see attached images).
I am running CentOS Linux 7.0.1406 (Core) with Plesk Version 12.0.18 Update #19.
Customers who use Outlook or Mozilla Thunderbird cannot send Emails through IMAP (Courier) because their mailclients say "Cannot write to sent Folder" even when there is a "Sent" Folder in the IMAP Structure existing. It is also subscribed by the Client.
Outlook Users have to go to: file - account settings > account settungs > Change > more Settings > advanced > root Folder path and enter the word inbox
Mozilla Users have to enter "INBOX." under advanced IMAP Settings in Thunderbird.
So my question is: Why is that ? And cant i Change something as admin on the Server side so all customers dont have to Panic and set an inbox Folder path in their mailclients ?
For customers it has to work without Client-side configuration...