Troubleshooting cPFence Email Notifications: Using SMTP and Local Mail

cPFence can now send email notifications either via the local mailx utility or through your SMTP server. This flexibility allows for more control over how email notifications are delivered. If you are experiencing issues with email notifications, follow the steps below to troubleshoot.

Step 1: Choose Between Local Mail or SMTP for Notifications

By default, cPFence uses the local mailx utility. However, you now have the option to use an SMTP server for email notifications. To enable or disable SMTP for notifications, use the following commands:

  • Enable SMTP Notifications:
cpfence --enable-cpfence-smtp
  • Disable SMTP Notifications:
cpfence --disable-cpfence-smtp

If you prefer to use the local mail system instead, simply disable SMTP using the above command.

Step 2: Send a Manual Test Email

You can manually send a test email to check if your email configuration is functioning properly. For SMTP, use the following command to send a test email:

mailx -v -s 'SMTP Test Email from cPFence' [email protected] <<< 'This is a test email to confirm the SMTP configuration for cPFence notifications.'

Replace [email protected] with the email address where you'd like to receive the test email.

Step 3: Check Email Logs for Delivery Issues

If you don't receive the test email, it's recommended to check the mail logs on your server for more detailed information. Run the following commands to check the logs:

tail -f /var/log/postfix.log

and

tail -f /var/log/mail.log

These logs will help you identify any errors or issues in the email sending process.

 

Step 4: Investigate Further If Emails Are Not Received

If you still do not receive the test email, you may need to further investigate the email configuration on your server. Check your DNS settings, email routing configurations, and ensure that SPF, DKIM, and DMARC records are properly configured to avoid emails being marked as spam.

 


Need Further Assistance?

If you encounter any issues or need additional help, feel free to reach out to our support team via your client portal.

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Update cPFence Software & Signatures ?

cPFence software and virus signatures are automatically updated by default, ensuring continuous...

How to Know the Current Installed cPFence Version ?

To check the currently installed version of cPFence and see if an update is available, you can...

How to Uninstall cPFence ?

If you need to remove cPFence from your system, follow the steps below to uninstall the software....

How to Use My SMTP for cPFence Notifications?

cPFence allows you to use your own SMTP server to send email notifications, giving you more...

Resolving Delays in cPFence Command Execution

If you notice that cPFence commands are taking an unusually long time to complete, this is likely...