Difference between revisions of "Email Piping"

From WHMCS Documentation

m (POP3 Import Method)
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Email piping allows emails sent to an email address to be automatically imported into the support ticket system. As a result clients can open and reply to tickets via email without the need to login to the client area first.
+
Email piping automatically imports emails for an email address into the support ticket system. As a result, clients can open and reply to tickets via email without the need to log in to the client area first.
 
 
Begin by first configuring your support ticket departments.  You do this by going to '''Setup > Support > Support Departments'''.  Here you need to add each of your departments and the email address assigned to each.
 
  
 
<div class="docs-alert-info">
 
<div class="docs-alert-info">
<span class="title">Note:</span><br />
+
* For a tutorial on setting up email piping for cPanel, see [https://help.whmcs.com/m/setup/l/1112149-configuring-email-piping Configuring Email Piping].
If the location of the crons directory [[Custom_Crons_Directory|has been customised]], be sure to adjust the file path examples shown on this page accordingly.
+
* For steps to configure email piping and Google Apps, see [[Email Piping: Google Apps]].
 
</div>
 
</div>
  
==Forwarder Method==
+
==Department Setup==
 +
 
 +
Before you can set up email piping, you must configure your support departments at '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > [[Support Departments]]''' or, prior to WHMCS 8.0, '''Setup > Support Departments'''.  Add each of your departments and the email address that you assigned to them.
  
[[File:Videotutorial.png‎|center|link=https://www.youtube.com/watch?v=BaY9TmqSLIw&hd=1|Watch Video Tutorial]]
+
==Email Piping Methods==
 +
 +
[[File:Videotutorial.png‎|center|link=https://youtu.be/uJLvEfLUXIc|Watch Video Tutorial]]
 +
 +
When you configure email piping, you can choose one of two options.
 +
 +
* The '''Forwarder Method''' uses email forwarders to pipe messages to WHMCS. Use this method if you use cPanel or DirectAdmin and are piping in emails from the domain that WHMCS is installed on.
 +
* The '''Mail Importing Method''' pipes messages to WHMCS from individual email accounts. Use this method if you don't use cPanel or DirectAdmin or if you want to pipe email from multiple domains.
  
<div class="docs-alert-success">This method is recommended if you use cPanel or DirectAdmin and are piping in emails from the same domain your WHMCS is installed on.</div>
+
<div class="docs-alert-info">
 +
If you have customized the location of the crons directory, adjust the file path examples below accordingly.
 +
</div>
  
[[File:Forwarder_config.png|thumb|The x3 forwarder configuration page]]
+
===Set Up the Forwarder Method===
  
To setup email piping via forwarders, your server must be configured to pipe messages to WHMCS. To configure this, navigate to the Email Forwards section of your web hosting control panel and create a forwarder.
+
[[File:Forwarder_config.png|thumb|The forwarder configuration page]]
 +
 
 +
To set up email piping via forwarders, you must configure your server to pipe messages to WHMCS. To configure this, navigate to the '''Email Forwards''' section of your web hosting control panel and create a forwarder.
  
 
'''Sample Forwarder Command'''
 
'''Sample Forwarder Command'''
Line 23: Line 34:
 
</nowiki></div>
 
</nowiki></div>
  
You can find a copy&paste ready command with the path specific for your setup by navigating to Setup > Support Departments within your WHMCS installation and copying the command from the forwarder command field shown.
+
You can find a copy-and-paste-ready command with the specific path for your setup. Navigate to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > [[Support Departments]]''' or, prior to WHMCS 8.0, '''Setup > Support Departments''' within your WHMCS installation and copy the command from the forwarder command field.
  
<div class="docs-alert-info"><strong>Important Notes</strong><br />Note: The pipe.php file requires 755 permissions to function properly.<br />If using DirectAdmin, you must enter the command enclosed in quotes "" for it to be accepted.</div>
+
<div class="docs-alert-info">
 +
The <tt>pipe.php</tt> file requires <tt>755</tt> permissions to function properly.
 +
<br />
 +
If using DirectAdmin, you must enter the command enclosed in quotes (<tt>""</tt>) for the system to accept it.
 +
</div>
  
==POP3 Import Method==
+
===Set Up Email Importing===
[[File:Cron piping.png|thumb|The cron command]]
+
This method is recommend if you use any control panel other than cPanel or if you are wanting to pipe emails from domains other than just where your WHMCS system is installed. If you wish to pipe emails in from a Gmail/Google Apps Mail account we have specific instructions at [[Email_Piping:_Google_Apps|Email Piping with Google Apps]].
+
Email importing is an alternative to email piping. For more information, see [[Email Importing]].
  
To use this method:
+
==Testing Email Piping==
# On your mail server create a unique email account for each support department. This must be a full inbox, an alias is not sufficient.
+
# In WHMCS navigate to '''Setup > Support > Support Departments > Edit''' and enter your pop email access details in for each department.
+
After you set up email piping, try sending a test email. If the piping is correctly configured, the system will open a new ticket. (It can take up to five minutes if you use the cron job method.) For testing purposes, do not use your admin email address to send the message. The system expects emails from admin email addresses to be replies to tickets only, and so it won't open new tickets.
# Then setup a cron job to run the pop.php file using the "Ticket Importing using POP3 Import" command given on the Support Departments page to run every few minutes (every 5 minutes is recommended).
+
 
+
If the system doesn't create a ticket when sending an email, check the '''Ticket Mail Import Log''' at '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > [[System Logs]]''' (in WHMCS 7.x and earlier, '''Utilities > Logs'''). If WHMCS received the message, it will appear in this list with the reason why it failed to create a ticket. If the message you sent doesn't appear here, the forwarder you set up previously is not working correctly and WHMCS didn't receive the message.
Your PHP build needs IMAP support for this method to function correctly.
+
 
+
If you get the error message ''The system could not find the ticket ID.'' (''Ticket ID Not Found'' prior to WHMCS 8.3), you are trying to open a support ticket from your admin email address. Admins can only reply to tickets, not open new ones. Submit a ticket from any other email address and the system should accept it.
<div class="docs-alert-info"><strong>Important Note</strong><br />Note: When using the POP import method, emails in the source mailboxes will be deleted upon successful import into WHMCS.</div>
+
 
+
For other errors, see the following [[#Common Problems|Common Problems]] and [[#Troubleshooting|Troubleshooting]] sections.
==Testing the Email Piping==
 
 
 
Once the piping is setup, you should try sending a test email to it. If the piping has been setup correctly, then a new ticket should be opened (it can take up to 5 minutes if using the cron method)For testing purposes, you should not use your admin email address to send the message as emails from admin email addresses are expected to be replies to tickets only and won't open new tickets.
 
 
 
Should a ticket not be created when sending in an email, then check in Utilities > Ticket Mail Import Log. If the message was received by WHMCS it will be listed here with the reason why it failed to create a ticket. If the message you sent is not listed here, then the forwarder you setup previously is not working correctly and WHMCS didn't receive the message.
 
 
 
If you get the error message "Ticket ID Not Found" this means you are trying to open a support ticket from your admin email address. Admins can only reply to tickets, not open new ones so submit a ticket from any other email address and it should be accepted.
 
  
 
==Spam Control==
 
==Spam Control==
  
Email piping raises the problem of Spam sent via email so to combat this, WHMCS has spam control filters which you can use. See the [[Spam Control]] article for more info.
+
When you use email piping, spam can become a problem. To help with this, WHMCS includes spam control filters. For more information, see [[Spam Control]].
  
 
==Common Problems==
 
==Common Problems==
If an email has not been piped into the ticket system the first reference point is '''Utilities > Logs > Ticket Mail Import Log'''. This shows all the emails processed by the WHMCS email piping process and any errors that may have occurred, explanations of the three most common errors are below:
+
If the system didn't pipe an email into the ticket system, check the '''Ticket Mail Import Log''' at '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > [[System Logs]]''' (in WHMCS 7.x and earlier, '''Utilities > Logs'''). This shows all the emails that WHMCS's email piping feature has processed and any errors that may have occurred. Below are the most common errors:
 +
 
 +
===The system could not find the ticket ID.===
 +
This error message indicates that you are sending via an email address that you assigned to an administrator. Administrators can reply to tickets but cannot open new ones. To test this, you must send an email from an email address that doesn't belong to an admin in your WHMCS system.
 +
 +
Prior to WHMCS 8.3, this was ''Ticket ID Not Found''.
 +
 
 +
===The system blocked a potential email loop.===
 +
This error message indicates that WHMCS received a large number of emails from the same email address, indicating an auto-responder loop. To break the cycle, WHMCS did not import the email. By default, the system will block any new tickets from the offending address if it receives 10 emails from the same address within a 15 minute period. You can customize this in the [[Support_Tab#Ticket_Reply_Email_Limit|General Settings]].
 +
 +
Prior to WHMCS 8.3, this was ''Blocked Potential Email Loop''.
 +
 
 +
===The sender's email address is not registered.===
 +
This error message indicates that you have chosen to only allow registered clients to open tickets in this department. You must uncheck '''Clients Only''' for the support department at '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > [[Support Departments]]''' or, prior to WHMCS 8.0, '''Setup > Support > Support Departments'''.
 +
 +
Prior to WHMCS 8.3, this was ''Unregistered Email Address''.
 +
 
 +
===The system prevented an autoresponder from opening a ticket.===
  
===Ticket ID Not Found===
+
<div class="docs-alert-info">
This means you are using an email address assigned to an administrator to send your email. Administrators can only reply to tickets, and not open new ones, hence the Ticket ID not found error message.  To test, you must send an email from an email address that is not assigned to an admin in your WHMCS system.
+
<strong>RFC 3834</strong><br />
 
+
In WHMCS 8.1 and later, the system sends support emails with RFC 3834-compliant headers by default.
===Blocked Potential Email Loop ===
+
* You can disable this at '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > General Settings''' in the '''[[Mail Tab|Mail]]''' tab.
This error message indicates that WHMCS received a large number of emails from the same email address, indicating an auto-responder loop. So as to break the cycle WHMCS did not import the email. By default any new tickets from the offending address will be blocked if 10 emails are received from the same address within a 15 minute period, but this can be customised in the [[Support_Tab#Ticket_Reply_Email_Limit|General Settings.]]
+
* Regardless of your settings, WHMCS will not accept email that email that contains the <tt>Auto-Submitted</tt> header via email piping or email importing.
 
+
</div>
===Unregistered Email Address===
 
Seeing this error means you have selected to only allow registered clients to open tickets in this department. You must untick the Clients Only checkbox in '''Setup > Support Departments > Edit''' to allow the public to create tickets.
 
  
===Only Replies Allowed by Email===
+
This error message indicates that an email contained the <tt>Auto-Submitted</tt> attribute in its headers. The system will not import these messages into the WHMCS support ticket system. This avoids sending an auto-reply in accordance with the [https://datatracker.ietf.org/doc/html/rfc3834 RFC 3834] email specification.
This entry in the log means that an email was received to the department email address, but the subject did not contain a ticket ID, therefore represents a new ticket rather than a reply to an existing one. Due to the [[Support_Departments|Pipe Replies Only]] option being enabled in the support department configuration, the email was rejected.
+
 +
Prior to WHMCS 8.3, this was ''Prevented an Auto Responder from Opening a Ticket''.
  
 
==Troubleshooting==
 
==Troubleshooting==
If an email has not been piped into the ticket system and it is not listed in the Ticket Mail Import Log (above) then these steps can be followed to identify the cause of the problem. There are different procedures depending upon whether the email forwarder or cron piping method is used.
+
If the system hasn't piped an email into the ticket system and it is not in the '''Ticket Mail Import Log''' (above), follow the steps below to identify the cause of the problem. There are different procedures depending upon whether you use the email forwarder or cron piping methods.
  
 
====Unable to communicate with the WHMCS installation====
 
====Unable to communicate with the WHMCS installation====
This error occurs when the cron.php file is unable to communicate with the WHMCS installation, its typically occurs when the location of the /crons directory [[Custom_Crons_Directory|has been customised]]. The cron.php file will look for the WHMCS directory in the location specified in the /crons/config.php file. So to To resolve this error:
+
This error occurs when the cron.php file is unable to communicate with the WHMCS installation. It typically occurs when you have customized the location of the /crons directory. The <tt>cron.php</tt> file will look for the WHMCS directory in the location in the <tt>/crons/config.php</tt> file. To resolve this error:
  
* Open the /crons/config.php file
+
# Open the <tt>/crons/config.php</tt> file.
* Ensure the $whmcspath line is uncommented by removing the preceding // characters.
+
# Uncomment the <tt>$whmcspath</tt> line by removing the preceding <tt>//</tt> characters.
* Ensure the path specified on the $whmcspath is the full system path to your WHMCS directory. This is the directory which contains the init.php and clientarea.php files.
+
# Ensure the <tt>$whmcspath</tt> path is the full system path to your WHMCS directory. This is the directory that contains the <tt>init.php</tt> and <tt>clientarea.php</tt> files.
* An example of a correctly completed file is [[Cron_Job_Issues#Unable_to_communicate_with_the_WHMCS_installation|available on this page]]
+
 
 +
An example of a correctly-completed file is [[Cron_Job_Issues#Unable_to_communicate_with_the_WHMCS_installation|available on this page]].
  
 
===Email Forwarder Method===
 
===Email Forwarder Method===
 
====Local Delivery Failed Error Message====
 
====Local Delivery Failed Error Message====
If you receive a bounce email containing an error that states local delivery failed like the error shown below when sending an email in to your piped email address then the forwarder entry is not correct and the message is not being sent to the pipe.php script.
+
If a bounce email includes an error that states local delivery failed (like the error shown below) when sending an email in to your piped email address, the forwarder entry is not correct. The message will not go to the <tt>pipe.php</tt> script.
  
 
  pipe to |/home/username/public_html/whmcs/crons/pipe.php
 
  pipe to |/home/username/public_html/whmcs/crons/pipe.php
  generated by support@yourdomain.com
+
  generated by support@example.com
 
  local delivery failed
 
  local delivery failed
  
To correct this, first ensure the /crons/pipe.php file is '''chmod to 755'''. Then try the following variations of the email forwarder command:
+
To correct this, ensure the <tt>/crons/pipe.php</tt> file uses <tt>755</tt> permissions. Then, try the following variations of the email forwarder command:
  
 
<div class="source-cli"><nowiki>
 
<div class="source-cli"><nowiki>
Line 97: Line 122:
 
====Why is email piping with Direct Admin sending the email twice?====
 
====Why is email piping with Direct Admin sending the email twice?====
  
To fix this problem you need to remove or comment out "unseen" from your exim.conf.
+
To fix this problem you need to remove or comment out "unseen" from your <tt>exim.conf</tt> file.
  
Example:
+
For example:
  
 
  virtual_aliases_nostar:
 
  virtual_aliases_nostar:
Line 116: Line 141:
  
 
===Cron Piping Method===
 
===Cron Piping Method===
When using the Cron Piping Method it is possible to see the error preventing emails being imported by visiting the pop.php file directly in your browser. eg. http://www.yourdomain.com/crons/pop.php . Below are the explanations of common errors likely to appear:
+
When using the Cron Piping method, it is possible to see the error that has prevented importing emails. First, temporarily add the following variable to the <tt>configuration.php</tt> file:
 +
 
 +
<div class="source-cli"><nowiki>
 +
$pop_cron_debug = true;
 +
</nowiki></div>
 +
 
 +
Next, visit the <tt>pop.php</tt> file directly in your browser (for example, <tt>http://www.example.com/crons/pop.php</tt>). You may encounter the common errors below:
  
 
====Could Not Authenticate====
 
====Could Not Authenticate====
This suggests that the SMTP details provided in the required fields are incorrect or possibly intermittent issue between the server on which WHMCS is installed and the mail server.
+
This error indicates that the POP details in the required fields are incorrect. It could also be an intermittent issue between your WHMCS server and the mail server.
  
*First verify the settings under Setup > General Settings > Mail Tab:
+
To troubleshoot this:
**SMTP is chosen in the Mail Type drop down
 
** The related SMTP fields are correctly filled in with proper values; username (user@email.tld), password,  port, connection type.
 
  
* Secondly check that the hostname is a FQDN and resolves or check with your system admin/hosting provider for the correct connection details to use for SMTP.
+
# Go to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > [[Support Departments]]''' or, prior to WHMCS 8.0, '''Setup > Support > Support Departments'''.
 +
# Edit the department that the notification email referenced.
 +
# Verify that the POP3 settings use correct values (username (<tt>user@example.com</tt>), password, and port),
 +
# Verify that the hostname is a FQDN and resolves. Alternately, check with your system administrator or hosting provider for the correct connection details to use for POP3.
 +
# Click '''Save Changes'''.
  
 
====Sender Verify Failed====
 
====Sender Verify Failed====
This is due to the SMTP server requiring a valid account on the server to send from.
+
This error indicates that the SMTP server requires a valid account on the server to send from.
  
Check that the "From Address" under Setup > General Settings > Mail Tab is not blank and a valid address authorised to send mail through the SMTP server is entered. You may need to check your your hosting provider/mail server admin.
+
Check that the '''From Address''' in the '''[[Mail Tab|Mail]]''' tab at '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > General Settings''' or, prior to WHMCS 8.0, '''Setup > General Settings''' is not blank and you have entered a valid address that is authorized to send mail through the SMTP server. You may need to check with your hosting provider or mail server administrator.
  
 
====Too Many Login Failures====
 
====Too Many Login Failures====
  
This means WHMCS is being blocked by the mail server because the login details under Setup > Support > Support Departments > Edit (email piping) are incorrect
+
This error indicates that the mail server is blocking WHMCS because the email piping login details under '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > [[Support Departments]]''' or, prior to WHMCS 8.0, '''Setup > Support > Support Departments''' are incorrect.
 +
 
 +
Check whether the details you entered are correct. After correcting them, you will need to wait out the block time. If you use a cPanel server, you can whitelist the WHMCS IP address in cPHulkd or remove the WHMCS IP address from the blacklist. For more information, see [https://docs.cpanel.net/whm/security-center/cphulk-brute-force-protection/|cPanel's documentation].
 +
 
 +
====WHMCS Pop Cron Did Not Run====
 +
This error indicates a problem with the [[#POP3_Import_Method|POP3 Import Method]] feature, which imports emails into the WHMCS Support ticket system. It indicates that you have entered POP3 details for a support department, but you haven't configured the required cron job or finished importing the emails.
 +
 
 +
Step-by-step instructions to resolve this warning email are [https://help.whmcs.com/m/support_tools/l/1103793-whmcs-pop-cron-did-not-run-email in this help guide].
  
Double-check the details entered have been input correctly. Once they have been corrected you will need to wait out the block time or if cPanel server, you can whitelist the WHMCS IP in cPhulkd and/or remove the WHMCS IP from the blacklist: http://documentation.cpanel.net/display/ALD/cPHulk+Brute+Force+Protection
+
After you have applied one of these resolutions, the system will stop sending the warning email.

Latest revision as of 21:32, 1 March 2023

Email piping automatically imports emails for an email address into the support ticket system. As a result, clients can open and reply to tickets via email without the need to log in to the client area first.

Department Setup

Before you can set up email piping, you must configure your support departments at Configuration () > System Settings > Support Departments or, prior to WHMCS 8.0, Setup > Support Departments. Add each of your departments and the email address that you assigned to them.

Email Piping Methods

Watch Video Tutorial

When you configure email piping, you can choose one of two options.

  • The Forwarder Method uses email forwarders to pipe messages to WHMCS. Use this method if you use cPanel or DirectAdmin and are piping in emails from the domain that WHMCS is installed on.
  • The Mail Importing Method pipes messages to WHMCS from individual email accounts. Use this method if you don't use cPanel or DirectAdmin or if you want to pipe email from multiple domains.

If you have customized the location of the crons directory, adjust the file path examples below accordingly.

Set Up the Forwarder Method

The forwarder configuration page

To set up email piping via forwarders, you must configure your server to pipe messages to WHMCS. To configure this, navigate to the Email Forwards section of your web hosting control panel and create a forwarder.

Sample Forwarder Command

| php -q /home/username/public_html/whmcs/crons/pipe.php

You can find a copy-and-paste-ready command with the specific path for your setup. Navigate to Configuration () > System Settings > Support Departments or, prior to WHMCS 8.0, Setup > Support Departments within your WHMCS installation and copy the command from the forwarder command field.

The pipe.php file requires 755 permissions to function properly.
If using DirectAdmin, you must enter the command enclosed in quotes ("") for the system to accept it.

Set Up Email Importing

Email importing is an alternative to email piping. For more information, see Email Importing.

Testing Email Piping

After you set up email piping, try sending a test email. If the piping is correctly configured, the system will open a new ticket. (It can take up to five minutes if you use the cron job method.) For testing purposes, do not use your admin email address to send the message. The system expects emails from admin email addresses to be replies to tickets only, and so it won't open new tickets.

If the system doesn't create a ticket when sending an email, check the Ticket Mail Import Log at Configuration () > System Logs (in WHMCS 7.x and earlier, Utilities > Logs). If WHMCS received the message, it will appear in this list with the reason why it failed to create a ticket. If the message you sent doesn't appear here, the forwarder you set up previously is not working correctly and WHMCS didn't receive the message.

If you get the error message The system could not find the ticket ID. (Ticket ID Not Found prior to WHMCS 8.3), you are trying to open a support ticket from your admin email address. Admins can only reply to tickets, not open new ones. Submit a ticket from any other email address and the system should accept it.

For other errors, see the following Common Problems and Troubleshooting sections.

Spam Control

When you use email piping, spam can become a problem. To help with this, WHMCS includes spam control filters. For more information, see Spam Control.

Common Problems

If the system didn't pipe an email into the ticket system, check the Ticket Mail Import Log at Configuration () > System Logs (in WHMCS 7.x and earlier, Utilities > Logs). This shows all the emails that WHMCS's email piping feature has processed and any errors that may have occurred. Below are the most common errors:

The system could not find the ticket ID.

This error message indicates that you are sending via an email address that you assigned to an administrator. Administrators can reply to tickets but cannot open new ones. To test this, you must send an email from an email address that doesn't belong to an admin in your WHMCS system.

Prior to WHMCS 8.3, this was Ticket ID Not Found.

The system blocked a potential email loop.

This error message indicates that WHMCS received a large number of emails from the same email address, indicating an auto-responder loop. To break the cycle, WHMCS did not import the email. By default, the system will block any new tickets from the offending address if it receives 10 emails from the same address within a 15 minute period. You can customize this in the General Settings.

Prior to WHMCS 8.3, this was Blocked Potential Email Loop.

The sender's email address is not registered.

This error message indicates that you have chosen to only allow registered clients to open tickets in this department. You must uncheck Clients Only for the support department at Configuration () > System Settings > Support Departments or, prior to WHMCS 8.0, Setup > Support > Support Departments.

Prior to WHMCS 8.3, this was Unregistered Email Address.

The system prevented an autoresponder from opening a ticket.

RFC 3834
In WHMCS 8.1 and later, the system sends support emails with RFC 3834-compliant headers by default.

  • You can disable this at Configuration () > System Settings > General Settings in the Mail tab.
  • Regardless of your settings, WHMCS will not accept email that email that contains the Auto-Submitted header via email piping or email importing.

This error message indicates that an email contained the Auto-Submitted attribute in its headers. The system will not import these messages into the WHMCS support ticket system. This avoids sending an auto-reply in accordance with the RFC 3834 email specification.

Prior to WHMCS 8.3, this was Prevented an Auto Responder from Opening a Ticket.

Troubleshooting

If the system hasn't piped an email into the ticket system and it is not in the Ticket Mail Import Log (above), follow the steps below to identify the cause of the problem. There are different procedures depending upon whether you use the email forwarder or cron piping methods.

Unable to communicate with the WHMCS installation

This error occurs when the cron.php file is unable to communicate with the WHMCS installation. It typically occurs when you have customized the location of the /crons directory. The cron.php file will look for the WHMCS directory in the location in the /crons/config.php file. To resolve this error:

  1. Open the /crons/config.php file.
  2. Uncomment the $whmcspath line by removing the preceding // characters.
  3. Ensure the $whmcspath path is the full system path to your WHMCS directory. This is the directory that contains the init.php and clientarea.php files.

An example of a correctly-completed file is available on this page.

Email Forwarder Method

Local Delivery Failed Error Message

If a bounce email includes an error that states local delivery failed (like the error shown below) when sending an email in to your piped email address, the forwarder entry is not correct. The message will not go to the pipe.php script.

pipe to |/home/username/public_html/whmcs/crons/pipe.php
generated by support@example.com
local delivery failed

To correct this, ensure the /crons/pipe.php file uses 755 permissions. Then, try the following variations of the email forwarder command:

|/usr/bin/php -q /home/username/public_html/whmcs/crons/pipe.php
|/usr/local/bin/php -q /home/username/public_html/whmcs/crons/pipe.php

Why is email piping with Direct Admin sending the email twice?

To fix this problem you need to remove or comment out "unseen" from your exim.conf file.

For example:

virtual_aliases_nostar:
 driver = redirect
 allow_defer
 allow_fail
 data = ${if exists{/etc/virtual/${domain}/aliases}{${lookup{$local_part}lsearch{/etc/virtual/${domain}/aliases}}}}
 file_transport = address_file
 group = mail
 pipe_transport = virtual_address_pipe
 retry_use_local_part
 #unseen
 #include_domain = true

Reference: Directadmin forum thread

Cron Piping Method

When using the Cron Piping method, it is possible to see the error that has prevented importing emails. First, temporarily add the following variable to the configuration.php file:

$pop_cron_debug = true;

Next, visit the pop.php file directly in your browser (for example, http://www.example.com/crons/pop.php). You may encounter the common errors below:

Could Not Authenticate

This error indicates that the POP details in the required fields are incorrect. It could also be an intermittent issue between your WHMCS server and the mail server.

To troubleshoot this:

  1. Go to Configuration () > System Settings > Support Departments or, prior to WHMCS 8.0, Setup > Support > Support Departments.
  2. Edit the department that the notification email referenced.
  3. Verify that the POP3 settings use correct values (username (user@example.com), password, and port),
  4. Verify that the hostname is a FQDN and resolves. Alternately, check with your system administrator or hosting provider for the correct connection details to use for POP3.
  5. Click Save Changes.

Sender Verify Failed

This error indicates that the SMTP server requires a valid account on the server to send from.

Check that the From Address in the Mail tab at Configuration () > System Settings > General Settings or, prior to WHMCS 8.0, Setup > General Settings is not blank and you have entered a valid address that is authorized to send mail through the SMTP server. You may need to check with your hosting provider or mail server administrator.

Too Many Login Failures

This error indicates that the mail server is blocking WHMCS because the email piping login details under Configuration () > System Settings > Support Departments or, prior to WHMCS 8.0, Setup > Support > Support Departments are incorrect.

Check whether the details you entered are correct. After correcting them, you will need to wait out the block time. If you use a cPanel server, you can whitelist the WHMCS IP address in cPHulkd or remove the WHMCS IP address from the blacklist. For more information, see documentation.

WHMCS Pop Cron Did Not Run

This error indicates a problem with the POP3 Import Method feature, which imports emails into the WHMCS Support ticket system. It indicates that you have entered POP3 details for a support department, but you haven't configured the required cron job or finished importing the emails.

Step-by-step instructions to resolve this warning email are in this help guide.

After you have applied one of these resolutions, the system will stop sending the warning email.