Skip to main content

EXIM sender domain name instead of server name

Comments

4 comments

  • ivan levente
    Nevermind. I fixed with the instructions from: CPanel: Change Mail IP Address, HELO name
    0
  • cPRex Jurassic Moderator
    I'm glad you got that resolved!
    0
  • ivan levente
    Well it seems I spoke too soon. While I did manage to change the HELO name, the actual sender in the mail headers is still server.mydomain.com instead of mydomain.com Received: from server.mydomain.com by server.mydomain.com with LMTP id BN6jF6X8Cl4IsCEALUhlrA (envelope-from ) for ; Tue, 31 Dec 2019 09:45:41 +0200 Return-path: Envelope-to: admin@mydomain.com Delivery-date: Tue, 31 Dec 2019 09:45:41 +0200 Received: from [66.147.232.32] (port=54652 helo=mydomain.com) by server.mydomain.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92)
    Tried everything, nothing works. Where the hell can I setup the sender shown in the headers?
    0
  • ivan levente
    Alright, so I got a lead on this from here: How do I change Exim4's primary_hostname on a Debian box? This setting worked, the change was applied to exim: Before: root@server [~]# exim -bP primary_hostname primary_hostname = server.mydomain.com After: root@server [~]# exim -bP primary_hostname primary_hostname = mydomain.com
    HOWEVER, when attempting to send an e-mail, I got the following logged in exim mainlog: 2019-12-31 11:08:01 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1imDVR-009K7x-F4 2019-12-31 11:08:01 1imDVR-009K7x-F4 ** no_reply@mydomain.com: Unrouteable address
    So sending mail via SMTP doesn't work this way. Why the hell is the address "Unroutable"? Both main and subdomain have the same A record, so I don't get it.
    0

Please sign in to leave a comment.