• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

PLESK-cfg files individual by each user

U

unlock

Guest
Hello,

i have a PLESK 8.2 installed on FreeBSD 6.1.
After creation new account, plesk generates user conf like:
/usr/local/www/vhosts/domain.com/conf/httpd.include
I want to ask PLESK, what it need to put a new string in this file (not defaults) like:

php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -php-sender-domain.ru@domain.com"

It can`t be placed on main config, becouse i need use an individual mail address for each domain.


So, after creation, i need to put this line to new user config automatically.
How i can do it? Any ideas?
 
If you want to add or override any domain's settings you have to create a file called vhost.conf in the domain's conf dir and run websrvmng to have Plesk include an Include statement for that vhost.conf file (use vhost_ssl.conf for https). (Search the forums for more info on vhost.conf, I have been telling this story one time too many now.)

If you want to create the file automatically you can put it in the skeleton. You can use the variable @domain_name@ in the file in the skeleton and Plesk will replace that with the domain's real name when a domain is created.
 
Back
Top