Relay access denied
What is the Issue?
Getting Relay access denied while clicking on send option in roundcube module under HostingRaja OVIPanel.This means whenever you are trying to send mail to destination mail address or Recipient it is not accepted by sender mail server because of misconfiguration error with the receiving domain.
Why has this issue occurred?
The server is not allowing an email to be sent to another mail server, The user authentication system could be failing to connect to the Recipient mail address, So you need to check over the servers authentication configurations.
If you receive notice that mail sent to a HostingRaja user was rejected by a HostingRaja mail server with this "Recipient Address rejected," error, this could indicate a problem with our mail servers, since HostingRaja’s mail servers obviously should accept email for HostingRaja users. Or, it could indicate a problem where the sender's system isn't looking the mail server up correctly.
Another reason for receiving this error is the possibility that a domain has recently changed its hosts, and while the change has taken place, the new domain record has not yet propagated fully, and your message reached the old server provider which will no longer accepts mail for the leaving domain. If you receive this error, try resending your message twenty-four hours later.
Another Relay Access Denied error exists: "Sender Address rejected: Relay Access Denied" this is actually an anti-spam bounce means System administrators frequently set up their systems to refuse mail from spammers, but since no spam filtering system is perfect, your message may have been caught in the spam block.
Anti-spam error messages are classified into 2 types as follows:
550 Connection Refused: This error says that your provider's domain name or your email address is explicitly listed as a known spammer on a blacklist. This may be based on an external service that provides blacklists of known spammers to ISPs, or the administrator may have placed a block based on a large volume of mail coming from your domain.
Sender Address Rejected: This error says that the problem is actually with the Sender's email address, the domain name used in the sender's email address was not a valid domain name. When HostingRaja mail server receives an email for one of its users, the server checks to ensure that the sender's domain is a real domain, if the domain name does not resolve, the message is rejected with the "Sender Address Rejected" error. This is done to prevent mail servers from accepting spam where the domain is completely fake, means that the message could not really have originated there.
How can we prevent it?
HostingRaja for all types of hosting services except the shared hosting provides the root access by which you can log in to the root of the server and do the changes. To resolve the stated statement you need to login to the root and perform the following actions.
Follow the following steps to prevent from the problem which is mentioned above:1.Check mailq and Error log using below command
tail -f /var/log/maillog
You will come to know where exactly it is creating a problem. And Checking error log is one of the good practice where it will help you to resolve your problem very quickly.
2. Next you need to check the mail services status using the below commands:
service postfix status
service dovecot status
service spamassassin status
3. Next Go to /etc/postfix/main.cf and check for the line smtpd_recipient_restrictions
you will found result like
Add the line : permit_sasl_authenticated, anywhere say in the second line as
4. Restart postfix, dovecot, and SpamAssassin using below command:
service postfix restart
service dovecot restart
service SpamAssassin restart
5. Now you will be able to send the emails to any recipient.