Find the answer to your Linux question:
Results 1 to 3 of 3
Hi All, A question regarding email forwarding using sendmail. Basically moving from one host to another, so required to set up email server on new server to be able to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2

    newbie setting up sendmail using address mapping


    Hi All,

    A question regarding email forwarding using sendmail.

    Basically moving from one host to another, so required to set up email server on new server to be able to email forward.

    i.e.

    emails sent to test@somedomain.com will be sent to my new server (Server A) then server A would forward these emails to external email address someone@hotmail.com

    1. So far, somedomain.com mx record points to Server A.

    2. Sendmail was installed with webmin.

    3. add Feature FEATURE(`virtusertable')dnl to Sendmail M4 Configuration

    4. rebuild sendmail configuration

    5. restart sendmail

    6. added email forwarding in sendmail Address Mappings. i.e. test@somedomain.com to someone@hotmail.com

    However, when I check my hotmail inbox where test@somedomain.com is forwarded to,

    the to adress is test@intel-install-client.eu.verio.net instead of test@somedomain.com

    how can i make it that the to address is the address using the correct domain name and not the server name.

    Furthermore, the server will be used to forward emails for several domains as it is a shared server for several clients. Therefore, the to address should be the correct domain where the email was sent.

    Any help would be appreicated.

    Best regards,
    Deepam.
    Last edited by deepam; 08-02-2010 at 04:14 PM. Reason: attaching log

  2. #2
    Just Joined!
    Join Date
    May 2008
    Location
    Bangalore, India
    Posts
    24

    Re: newbie setting up sendmail using address mapping

    do masquerade in your mc file and m4

    MASQUERADE_AS(somedomain.com)dnl
    FEATURE(masquerade_envelope)dnl
    FEATURE(masquerade_entire_domain)dnl
    MASQUERADE_DOMAIN(somedomain.com)dnl

    -sanjeev

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2
    Thanks for your reply.

    So if I had 10 domains doing email forwarding then will i need to repeat your code 10 times, so I could masquerade on each domain i.e

    MASQUERADE_AS(somedomain.com)dnl
    FEATURE(masquerade_envelope)dnl
    FEATURE(masquerade_entire_domain)dnl
    MASQUERADE_DOMAIN(somedomain.com)dnl


    MASQUERADE_AS(anotherdomain.com)dnl
    FEATURE(masquerade_envelope)dnl
    FEATURE(masquerade_entire_domain)dnl
    MASQUERADE_DOMAIN(anotherdomain.com)dnl

    MASQUERADE_AS(domain.com)dnl
    FEATURE(masquerade_envelope)dnl
    FEATURE(masquerade_entire_domain)dnl
    MASQUERADE_DOMAIN(domain.com)dnl

    so on....

    does it make any difference where I put it in the mc file?

    thanks for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •