[SOLVED] Sendmail - Masquerading multiple domains with different addresses
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sendmail - Masquerading multiple domains with different addresses
Hello Friends,
I am running Sendmail 8.14 on rhel6. I have one simple question regarding domain masquerading, i would want to masquerade different domains with different addresses. By that what i mean is that lets say i have 3 domains as home.com, example.com, test.com and i would want to masquerade these as under
So how can i achieve this functionality, because by default MASQUERADE_AS(`key_value') directive will masquerade all the domains with the value specified.
Hello Friends,
I am running Sendmail 8.14 on rhel6. I have one simple question regarding domain masquerading, i would want to masquerade different domains with different addresses. By that what i mean is that lets say i have 3 domains as home.com, example.com, test.com and i would want to masquerade these as under
So how can i achieve this functionality, because by default MASQUERADE_AS(`key_value') directive will masquerade all the domains with the value specified.
Tells you how to set up sendmail to handle multiple domains.
Hi TB0ne,
I read that article and was working my way through it, however i am facing a small issue in generating the genericstable.db file using makemap. This is the error i get
Code:
#makemap dbm genericstable < genericstable
makemap: Need to recompile with -DNDBM for dbm support
How ever it is working fine when i use hash db with makemap while generating the access.db. I have installed the db4-utils as well as db4-devel package and other related packages.
So could you please guide a bit.
Secondly with hash db i am able to generate the genericstable.db file but the domain masquerading is not working as desired. Here are the various config files:
So could you please let me know what i need to do here to make things work.I am a newbie to sendmail, so please do not mind if i miss some basic thing.
Last edited by Rohit_4739; 07-10-2012 at 06:26 PM.
Hi TB0ne,
I read that article and was working my way through it, however i am facing a small issue in generating the genericstable.db file using makemap. This is the error i get
Code:
#makemap dbm genericstable < genericstable
makemap: Need to recompile with -DNDBM for dbm support
How ever it is working fine when i use hash db with makemap while generating the access.db. I have installed the db4-utils as well as db4-devel package and other related packages. So could you please guide a bit.
Secondly with hash db i am able to generate the genericstable.db file but the domain masquerading is not working as desired. Here are the various config files:
'Guide' with what? If you've generated it with hash, and it's working, what's left?
Quote:
So could you please let me know what i need to do here to make things work.I am a newbie to sendmail, so please do not mind if i miss some basic thing.
Could try to, but since you don't say what's not working as desired, or give any clues from your logs, how can we?
This is what i am trying to achieve that is box.example.com should masquerade to 123.home.com and host1.example.com should masquerade to 456.home.com and this is what is not working.
Last edited by Rohit_4739; 07-10-2012 at 06:49 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.