The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

send email from account having remote MX

Discussion in 'E-mail Discussions' started by kjg, Mar 28, 2011.

  1. kjg

    kjg Well-Known Member

    Joined:
    Mar 2, 2004
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    16
    Situation:
    The account has a remote mail server used for email. So the settings in whm is that the account does not use local server for mail (and is not listed in /etc/localdomains as a result). MX points to another server.

    The client runs WordPress and has a lot of forms on the site.

    The forms are not sent.
    Gets the following error in the log:
    2011-03-28 14:37:30 1Q4BhK-0007qP-9X ** xxxxxxxx@account.com R=checkspam2: Gid 323xx is not permitted to relay mail, or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail.

    Understands this as the forms cannot be sent from the account when it uses an external mailserver and is not listed in /etc/localdomains. But if I list the account in localdomains, it will deliver locally and since there is no such account there it will fail..

    How can we solve this.
    Any help would be appreciated.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Does WordPress allow SMTP authentication? If so, can't they input a subdomain on the domain to send from and you have the subdomain locally sending from the machine? Otherwise, they could use the cPanel user to authenticate and send, since the cPanel user sends via cPaneluser@hostname.domain.com instead where hostname is the machine's hostname.
     
  3. kjg

    kjg Well-Known Member

    Joined:
    Mar 2, 2004
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for the reply Tristan, but I can't really see how that would work.

    On the homepage there are lots of forms and the result from the forms are sent to customers and to employees. So the emails needs to have a correct from and reply-to email address. Especially those sent to client.
    Did not really understand how the subdomain thing should work. If I set up email.account.com as subdomain in cpanel, should that then be parked on the same account as account.com?
    When sending from that address, the recivers would reply to it and end up on the wrong server, or?

    This all started 20/3. Did you do any changes on CPanel that can be the reason for this not working any more?

    Is there no way to set accept relay from account.com on the server or does the account have to be in localdomains.com?
    If it has to be in localdomains, the emails will be delivered to this server and not to the server shown in the MX. Any way I can set up a forwarder or anything else that forces the mail to be delivered to the other server?

    This is really messing things up for the client so any help would be really appreciated
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You might want to open up a ticket for us to see the setup here for the email then. The account should still be able to send emails from it even if it isn't able to receive emails to it depending on how it is setup to send those emails. If it used to work with the current setup, then opening a ticket would be the way to go.
     
Loading...

Share This Page