I am running cpanel server with maldetect to keep server clean. When maldetect found malicious file , that account get suspended automatically.
What I want to do is , send email to user and inform him that your account is suspended. Is there any I can do that with with maldetect ?
Related
Sending an email using a dynamic email credential. Now, if the credentials are wrong, then the system needs to notify the same via email using the email configuration set in the env (default).
I have tried to send the email in the exception (catch) block after resetting the email config to the default(env) but the email is not sending and showing the old error. In case of other exceptions like 1/0, the error notification email is working well in the catch block.
Could anyone can suggest to me any solution to overcome this situation?
Did not find any proper solution but tried something which overcomes the situation I faced.
If a mail exception occurred then in the exception block I have added this in to a error log table. Set a CRON job that runs with 1hr interval and will check the log table if there any log created within the last hour.
I am using Apache on Ubuntu 14.02 and running php on the same.I have connected to a remote mssql server hence no need of mysql .
I want to know how to connect to an email id registered with gmail in order to read the incoming emails .
I have tried the below , but it shows a blank screen while running it from my localhost :
<?php
error_reporting('E_ALL');
$mailboxPath = "{imap.gmail.com:993/imap/ssl}INBOX";
$username = "my_email#gmail.com";
$password = "mypassword";
$imap = imap_open($mailboxPath, $username, $password);
print_r($imap);
?>
I am inserting my actual gmail username and password while running the program . I want to know if i am missing something .
Many Thanks
Here is the solution:
Login to your gmail account, enable imap.
Let the access here first: https://www.google.com/settings/security/lesssecureapps
Go to: https://accounts.google.com/b/0/DisplayUnlockCaptcha
and enable access.
That's it.
I had the exact same problem when I try to get emails with imap on php.
I was running the exact same script that I know it works with my other gmail.
The solution is above and the error message was:
ERROR: Can not authenticate to IMAP server: [ALERT] Please log in via your web browser
Have you activated the imap.so extension in your php.ini file ? extension=imap.so it's a basical cause of issues on localhost server
Try this (you need to turn on your Outbound relay):
Log into your account at google.com/a/yourdomain.com
Click the Settings tab and then select Email in the left column.
In the Outbound relay section, select Allow users to send mail through an external SMTP when configuring a "from" address hosted outside your domain.
Click Save changes.
I am trying to update the quota of a cPanel FTP account through php.
https://username:password#mydomain.com:2083/frontend/x3/ftp/doeditquota.html?acct=mailid#mydomain.com"a=50
I am making a HTTP Request with the above URL.
And I getting response message
The FTP account maildid#mydomain.com was successfully modified with a new quota of 50 Megabytes. 0Failed to determine FTP maildid#mydomain.com directory.
But in server quota is not updated . Actually whats issue?
And why this message :
0Failed to determine FTP maildid#mydomain.com directory.
Finally I got the solution.
https://username:password#mydomain.com:2083/frontend/x3/ftp/doeditquota.html?acct=mailid"a=50
remove domain from the 'acct' parameter.
I am testing out the order process for a test webhost package I have already setup in whmcs. I have it set to automatically setup product upon first payment. When the order goes completes whmcs sends out only four emails to the new customer: "Order Confirmation", "Customer Invoice", "Invoice Payment Confirmation" and "Welcome". It does not send out a "New Account Information" email, which should contain the login details for cpanel. I can successfully log into the client area but not cPanel.
I checked the account from my administrator area and I see where it says active and paid also. I have tried several times to setup a test account to see if it would send the email with the cpanel login but it never sends it, though it sends all others.
Reply With Quote
go to setup --- products/services --- edit the service and in the tab "details" select the "hosting account welcome email" in the "welcome email" field.
Go to the tab "Utilities" tab in the WHMCS admin area, and then look through the log to see if any errors are happening when the system trys to connect to your cPanel/WHM server to create the account.
You could possibly see an error that goes along the lines of
"Module Create Failed - Service ID: 26 - Error: (Curl Error) Couldn't resolve host '' - code: 6"
Which indicates that WHMCS cannot connect to the host. You should then check to make sure that you have your hosting server properly configured in the "Servers" tab. Anyway to me it sounds like WHMCS cannot connect to the server to create the account and thus nothing happens.
For some reason the iis smtp server and php are not communicating properly. I have verified that the smtp is working by telneting to it and doing the mail commands and I'm able to receive an email. In addition, I followed this link http://support.microsoft.com/?id=297700 and was able to receive an email. But whenever I try to send email from PHP nothing happens. What makes this even crazier is there are no smtp logs being written. The log files should be located at c:\windows\system32\logfiles\smtpsvc1 but the smtpsvc1 folder does not exist and there are no email messages in the drop, pickup, queue, or badmail folders under mailroot.
I'm not really sure why no logs exist for this. I gave the Network Service user permission to that logfiles folder but to no avail. So I guess the gist of my question is how can I make PHP and iis smtp send email.
I have the smtp configured to send email to a remote MailEnable server not exchange. Any ideas?
Not really a direct answer, but you know that by default SMTP logging is not on and you need to enable it via IIS manager. So, you won't get any logs until you do so. You will be able to tell if logging is enabled, as SMTP startup/initialization will generate log entries, regardless to any other activities. If your log file is blank, SMTP is not running.
That test only applies to 2000, at least that what the papers says.
You should try here