Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Nov 2010
Sendmail - Masquerading multiple domains with different addresses
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
home.com > (123.com - just fictitious)
example.com > (456.com)
test.com > (789.com)
So how can i achieve this functionality, because by default MASQUERADE_AS(`key_value') directive will masquerade all the domains with the value specified.
I was reading an post on it 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
#makemap dbm genericstable < genericstable makemap: Need to recompile with -DNDBM for dbm support
So can anyone please answer that.
Since "dbm" format is not working so i used "hash" and I am able to generate the genericstable.db file but the domain masquerading is still not working as desired. What i am trying to achieve is that box.example.com should masquerade to 123.home.com and host1.example.com should masquerade to 456.home.com as under.
box.example.com > 123.home.com host1.example.com > 456.home.com
sendmail.mc DOMAIN(generic)dnl define(`confLOG_LEVEL',`10')dnl define(`confMAX_MESSAGE_SIZE',`4096')dnl define(`confMAX_RCPTS_PER_MESSAGE',`2')dnl FEATURE(`masquerade_envelope')dnl FEATURE(`masquerade_entire_domain')dnl MASQUERADE_AS(`home.com')dnl MASQUERADE_DOMAIN(`box.example.com')dnl FEATURE(`genericstable', `hash /etc/mail/genericstable')dnl GENERICS_DOMAIN_FILE(`/etc/mail/genericstable')dnl FEATURE(`access_db', `hash -o -T<TMPF> /etc/mail/access')dnl MAILER(local)dnl MAILER(smtp)dnlCode:
genericstable file box.example.com 123.home.com host1.example.com 456.home.com