re: vhost_ssl.conf creation and mailconvert.pl
Thanks to those that posted the script, someone should make into a sticky HowTo post...
So, I got everything installed and knowing nothing about scripting don't have a solution for the if statements not creating the vhost_ssl.conf file on domain creation. My question is, is this file EVER created by Plesk when installing a domain? I ask because I cp'd the script to a separate file specifically for new domain creation and removed the if statement so that it will just create the vhost_ssl.conf by default (I will include SSL in all new domains). Any downside to this?
Next question is about the mail log bit. When I run the update pl, everything processes correctly except the maillog and I get the following error for each domain configured:
Code:
With data in log file "/usr/local/awstats/tools/maillogconvert.pl vadmin mydomain.com < /usr/local/psa/var/log/maillog.processed |"...
Can't open mydomain.com: No such file or directory at /usr/local/awstats/tools/maillogconvert.pl line 222.
Ok, the maillog.processed does exist and has root:root rw-r----- permissions which shouldn't be a problem since the script is run as root. So, here's line 222 of the maillogconvert.pl
Hmmm.. is this supposed to contain a variable of some sort? I checked the mail conf. files in /etc/awstats and they look to be correct. Any ideas?
Oh yeah, and that doesn't even get to my "so now how do I edit mallogconvert.pl to show entries for the users domain only?" question...
Seriously, any ideas on this are appreciated even if it is just a link to the proper documentation, I am trying to learn and appreciate any help! IOW, don't bash/ignore the n00b, please?!