Skip to main content

Receive mail to subdomain on different server

Comments

6 comments

  • cPanelMichael
    Hello :) Could you verify if the subdomain is added to the /etc/localdomains file on the cPanel server? Have you tried searching /var/log/exim_mainlog for any email accounts associated with the subdomain? EX:
    exigrep user@sub.domain.com /var/log/exim_mainlog
    Thank you.
    0
  • sebandrei
    Hello :) Could you verify if the subdomain is added to the /etc/localdomains file on the cPanel server? Have you tried searching /var/log/exim_mainlog for any email accounts associated with the subdomain? EX:
    exigrep user@sub.domain.com /var/log/exim_mainlog
    Thank you.

    Hi Michael, First of all, thank you for your reply. I checked at both the cPanel and WHM level for the localdomains file and exim_mainlog. I couldn't find either of them. Furthermore, exigrep doesn't seem to be available on my server. Could it be that I don't have sufficient permissions to access these files? Is there any other way I can check? Thanks again for your help. Best regards, Sebastian Edit: My host has just confirmed that I do not have access to the these logs - they are limited to the root user.
    0
  • PHILLIP BOOTH
    If you need to retrieve emails from an inbox on an external server and then forward them to another email address you can use something like fetchmail with a cron ssh # yum install fetchmail # nano ~/.fetchmailrc set no spambounce poll mail.example.com proto POP3 auth password port 110 timeout 300 user 'account@example.com[/EMAIL]' there with password "12345" sslproto "" is "toaccount@example2.com[/EMAIL]" here options nokeep; ssh # fetchmail
    0
  • sebandrei
    If you need to retrieve emails from an inbox on an external server and then forward them to another email address you can use something like fetchmail with a cron ssh # yum install fetchmail # nano ~/.fetchmailrc set no spambounce poll mail.example.com proto POP3 auth password port 110 timeout 300 user 'account@example.com[/EMAIL]' there with password "12345" sslproto "" is "toaccount@example2.com[/EMAIL]" here options nokeep; ssh # fetchmail

    Hi Philipp, Thanks for your reply. I'm not sure this will solve my problem. Essentially, at the most basic level, what I am trying to do is receive mail to one domain via two different servers. I am hoping to accomplish that by using one MX record to route mail from my main domain to my Exchange host and using another MX record for a subdomain to route mail to my other POP3/IMAP mail server. I'm not sure if what you propose above can do this... Kind regards, Sebastian
    0
  • sebandrei
    Hello, I just wanted to post to say that I am successfully receiving mails on my subdomain account. I have no idea how or why - I didn't change anything since yesterday. Perhaps it was just a matter of DNS propagation... I'm not sure. Kind regards, Sebastian
    0
  • cPanelMichael
    Hello :) I am happy to see the issue is now resolved. It's possible there was an issue with the email routing for the domain name, but it's difficult to pinpoint any particular reason without root access to the system. Thank you for updating us with the outcome. Thank you.
    0

Please sign in to leave a comment.