If your SMTP setup in cPFence is not sending emails, it may be due to compatibility issues with certain SMTP providers, such as MXRoute and ZeptoMail, that don’t support modern configuration variables. This guide will help you adjust your SMTP configuration to ensure proper functionality.
Steps to Fix SMTP Sending Issues
- Open the SMTP Configuration File:
nano /etc/s-nail.rc
- Update the SMTP Configuration:
Replace the current SMTP settings in the file with the updated configuration below:
Original Configuration:
# cPFence SMTP Configuration - START set v15-compat set from="[email protected] (cp.xxx)" set mta=smtps://smtp%40xxx.cc:[email protected]:465 # cPFence SMTP Configuration - END
Updated Configuration:
# cPFence SMTP Configuration - START set smtp=smtps://smtp.xxx.cc:465 set smtp-auth=login set [email protected] set smtp-auth-password=password set ssl-verify=ignore set from="[email protected] (cp.xxx)" # cPFence SMTP Configuration - END
- Save and Close the File:
Press
Ctrl + O
to save the file andCtrl + X
to exit the editor. - Test Your SMTP Configuration:
Send a test email using the following command:
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 your test email address.
Important Notes
- This workaround resolves the issue with SMTP not sending emails by using legacy-compatible configuration variables.
- Monitor your SMTP provider for updates regarding modern variable support, as older variables may become obsolete in the future.
Need Help?
If the issue persists or you require additional assistance, don’t hesitate to contact our support team through your client portal. We’re here to help!