problem sending emails
hi,
we are using a cpanel-installation (version 88.0.14) from a hetzner.com reseller. we have only access to the cpanel area and not to the whm area.
on this cpanel-installation is a wordpress-website. we had no problem for the last year to send emails with the plugin Easy WP SMTP, the email-address is hosted on office365.
since last week we get the following error message:
SMTP ERROR: Failed to connect to server: Network is unreachable (101)
I tried this email-account on a different webhost (not cpanel, a normal internet-provider) with the same setup: wordpress + smtp-plugin + office365 mail-account -> no problems.
so I tried a simple imap/smtp mail-account from all-inkl, here I get this error message:
SMTP ERROR: Failed to connect to server: Connection refused (111)
we contacted the cpanel-reseller who has access to the whm-area and he said, there are no special firewall rules active or changed in the last week.
my next idea was to use the mailserver from cpanel, so I added the ip-address of the cpanel-installation in the spf-entry of the domain (but no mx-record) and created the same email-address on the cpanel as we use on office365.
with this setup I get the following error-message (domaininformation "anonymized"):
CLIENT -> SERVER: EHLO www.acmecorp.com
CLIENT -> SERVER: STARTTLS
CLIENT -> SERVER: EHLO www.acmecorp.com
CLIENT -> SERVER: AUTH LOGIN
CLIENT -> SERVER: [credentials hidden]CLIENT -> SERVER: [credentials hidden]CLIENT -> SERVER: MAIL FROM:
CLIENT -> SERVER: RCPT TO:
CLIENT -> SERVER: DATA
SMTP ERROR: DATA command failed: 530 Relaying not allowed
so now I'm a little clueless, what I should do next.
I think to send locally should be the easiest solution to solve, so I would like to ask, if I have to configure more in cpanel to allow relaying, I simply added the mail-account but couldn't found further settings to configure.
many thanks for your help,
ferdinand
-
I'm guessing the reason behind you not being able to send locally could be related to your DNS mail entries pointing to Office365, although this is only a guess. As for connecting to Office365, have you considered that your IP might be blacklisted. Maybe take a look at MXToolbox.com and have a play around with the testing tools. Also check your domain name and IP address using thier RBL tool. 0 -
hi keat, thanks for your tips, the mailserver has no blacklist-entries at mxtoolbox.com. regarding this error message: SMTP ERROR: DATA command failed: 530 Relaying not allowed where do I configure relaying? please notice, that I only have access to cpanel but not whm. many thanks, ferdinand 0 -
You absolutely would not want to configure relaying, this is all around a bad idea. The error message you're receiving indicates an IP block: SMTP ERROR: Failed to connect to server: Connection refused (111)
While the provider may not have explicitly added any firewall rules it's possible it could have been automatic or the port you're attempting to connect to is closed. Either way, the issue here is ultimately that your server is unable to connect to the remote server to send mail and the provider for that remote server should be able to identify the issue.0 -
More than likely it's not cPanel's firewall that does this it's whatever they have installed on the server. From a putty or terminal session outside of the server you could potentially run something like the following for the port you're attempting to send mail on: nmap -Pn hostname.yourserver.tld -p 250
Please sign in to leave a comment.
Comments
5 comments