Skip to main content

Route emails locally for the same domain

Comments

6 comments

  • cPRex Jurassic Moderator
    Hey there! cPanel doesn't use Postfix, so the code you provided wouldn't be helpful on a cPanel machine. The setting you likely need to adjust is inside cPanel >> Email Routing for the affected domain. Just ensure that is set to the "Local mail exchanger" option and then system will deliver the messages locally.
    0
  • tanmalik786
    Thanks for your reply @cPRex, yes that's what I have concluded as well. I have set cPanel >> Email Routing to "Automatic", hope that's equally good? I was wondering if there's a way to "not to duplicate" the attachments when they are sent to an email address of the same `domain`, and instead the same `attachment` is shared through a Symbolic Link. Keenly awaiting for your response? Thanks again!
    0
  • cPRex Jurassic Moderator
    Automatic should be just fine as well. Are you saying that if one email with an attachment is sent to user1@domain.com and also user2@domain.com that you'd like the attachment to only physically exist in one spot on the server and the others are a link to it? I'm assuming the goal is to save disk space, but I don't believe that is possible in a standard email environment because each email user is limited to their own directory structure. There isn't a "public" area like you could create with FTP.
    0
  • tanmalik786
    Automatic should be just fine as well. Are you saying that if one email with an attachment is sent to user1@domain.com and also user2@domain.com that you'd like the attachment to only physically exist in one spot on the server and the others are a link to it? I'm assuming the goal is to save disk space, but I don't believe that is possible in a standard email environment because each email user is limited to their own directory structure. There isn't a "public" area like you could create with FTP.

    I wouldn't mind this a bit either, what actually I was asking was that "if user1@domain.com sends an email to user2@domain.com and user3@domain.com and it does contain an attachment as well is being sent and received on the same domain]" that attachment should be shared amongst the users through a "Symbolic Link"?
    0
  • cPRex Jurassic Moderator
    Right, I think we're saying the same thing just in different words. Unfortunately, I'm not aware of a way to do that and I didn't find anything like that in the Exim documentation when looked there either.
    0
  • tanmalik786
    Right, I think we're saying the same thing just in different words. Unfortunately, I'm not aware of a way to do that and I didn't find anything like that in the Exim documentation when looked there either.

    Hmm .. thanks for you support though.
    0

Please sign in to leave a comment.