Plesk 12.x / Linux :: Not Able To Send Email To Another Email On Same VPS With External MX Record
May 28, 2015
I'm having difficulty sending an email to another email address (with a different domain) which is on the same VPS.The trouble is, on the other domain's VPS control panel, within the DNS settings, the MX records have been pointed externally (to an exchange server). Their email is turned off. But bizarrely, their mailbox is full.
It seems as though Plesk is ignoring the MX records, and sending MY email internally to the OTHER domain's mailbox on the same VPS.How do I get Plesk to send my mail to the correct EXTERNAL MX records?
Plesk delivering email locally to a not existing mailbox instead of sending it to an external party. First I was using a local mailbox, but my client wanted to control the email using their own server. So I've changed the MX records to this new server. Deleted the inbox in Plesk and turned off Mail support for this domain.
New situation: DNS server for domain.com is hosted on a different location and points to my Plesk server for the website and the MX records point to the clients server for the mail.
Email send from email addresses like gmail are send correctly to the clients server. Email addresses from my PLesk server and forms from the website are send locally.
Whenever trying to send an email using roundcube it just seems to fail... No error code is given - see attached image:
I've tried following the article here: [URL] ....
But it didn't seem to work and incidentally the main.inc.php file didn't even exist only a main.inc.php.rpmnew was there. I tried copying it to main.inc.php but it made no difference. Normal SMTP usage via thunderbird works, and everything works when trying to use horde.... it's just a problem with roundcube after the upgrade from 11.5 to 12.
The problem is, can not send mail via SMTP using popular scripts Opencart, SMF, Osclass. The problem was lapping Plesk 11.5 via 587 port. That was timeout connection or authorization error with the correct settings. Mail may be sent, sometimes not. No longer working than working. At the same time when working with e-mail clients(example, The Bat) work fine. In Plesk 12 same problem. Port 465 - e-mail clients(example, The Bat) work fine. But can not send mail via SMTP using popular scripts Opencart, SMF, Osclass. When using Cpanel with Exim - all work perfect. But the Plesk e-mail with Postfix - constant problems.
we regularly get this message in boxmail of adress used to send email from server.This is the mail system at host DOMAIN.fr. You can delete your own text from the attached returned message.The mail system
<1@SERVERNAME.HOSTER.com> (expanded from <1>): User unknown in virtual alias table
If i look in maillog i see that :
May 18 16:48:52 SERVERNAME postfix/error: F22521B4E45: to=<1@SERVERNAME.HOSTER.com>, orig_to=<1>, relay=none, delay=0.07, delays=0.04/0.01/0/0.02, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
The problem is in error message (at top) the message attached is the one sent to EMAIL@DOMAIN.com. So we can think the message is not sent to EMAIL@DOMAIN.com. SERVERNAME, HOSTER and EMAIL@DOMAIN are here to mask real data.
Upgrading to 12.0.8 and found this that looks like a bug. Email messages cannot be send through Roundcube Webmail. Outbound Email Limits are active.
Code: REDACTED py_limit_out: ERROR Rejecting message: system user uid='10039' is not allowed to send mail REDACTED plesk sendmail: handlers_stderr: DATA REPLY:554:5.7.0 Your message could not be sent. The user roundcube_sysuser is not allowed to send email.#012REJECT
Apart from Domains, Emails and Subscriptions there is no way to allow roundcube_sysuser through Mail server settings.
I keep having certain domains being hijacked and mass emails being sent from them somehow. I've disabled mail within domain control panel for each domain and issue keeps occurring. I've limited # of emails as well to 2-5 per hour but now so many are trying to be sent from my server it is clogging up mail queue and I have to log into server via ssh and run postsuper -d ALL every day or two. It is very frustrating. The only way I can stop it is to disable domain in plesk panel but that is not an option.
What can I do to find the cause of this issue and stop it?
I have followed the instructions here to send Plesk notifications through External SMTP (overuse, new domain creation, etc): URL....Here is the error I see in the panel.log: ERR [panel] Unable to send mail.
Is there another log that I'm missing with a more detailed error? Sending through an external SMTP works fine on sites hosted on the same server (Wordpress, Joomla).
I have a dedicated server that is running apache and exim. While they're running from the same IP, I want the domain names to be www.mydomain.com for http and mail.mydomain.com for SMTP.
What I've done so far is set up A records for *.mydomain.com and mail.mydomain.com to point to the same IP address.
My MX record points to mail.mydomain.com.
My exim primary_hostname is configured as mail.mydomain.com.
Now I'm trying to get the PTR record set correctly so that outbound email doesnt get trapped by spam filters. So in this case should my PTR record point my IP to mail.mydomain.com and not mydomain.com or does it not matter?
Is it strange that an RDNS lookup to the primary IP would return my mail server like that?
[root@server ~]# telnet mx4.hotmail.com 25Trying 18.104.22.168...Connected to mx4.hotmail.com (22.214.171.124).Escape character is '^]'.220 bay0-mc10-f4.bay0.hotmail.com Sending unsolicited commercial or bulk e-mail to Microsoft's computer network is prohibited. Other restrictions are found at http://privacy.msn.com/Anti-spam/. Violations will result in use of equipment located in California and other states. Wed, 12 Sep 2007 03:49:15 -0700
my datacenter reply me :
Hello,We have investigated your issue in detail. We tried to sent mails from the server to our Softlayer hotmail account. From the logs, it is clear that the mails are sent successfully from the server.=========2007-11-23 23:50:29 1IviI1-0001De-SX <= root@server.XXXX.net U=root P=local S=3612007-11-23 23:50:30 1IviI1-0001De-SX => XXXX@hotmail.com R=lookuphost T=remote_smtp H=mx3.hotmail.com [126.96.36.199]2007-11-23 23:50:30 1IviI1-0001De-SX Completed========But this is not received at the hotmail mailbox. Hence this is an issue at their end. You may contact the hotmail support to resolve this.Regarding the spamming, we could find a lot of mails from the user nobody. You can prevent the user nobody from sending the mail from WHM as follows.Please select the option "Prevent the user "nobody" from sending out mail to remote addresses" from WHM >> Main >> Server Configuration >> Tweak Settings >> Mail option.