Sendmail - Masquerading multiple domains with different addresses

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Sendmail - Masquerading multiple domains with different addresses
# 1  
Old 07-10-2012
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

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

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. I have installed the db4-utils as well as db4-devel package and other related packages. So my first question here is why makemap is not working with dbm but with hash ?
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.
Code:
box.example.com	> 123.home.com
host1.example.com > 456.home.com

Here are the various config files:

Code:
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)dnl

Code:
genericstable file

box.example.com		123.home.com
host1.example.com	456.home.com

So could you please let me know what i need to do here to make things work.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Sendmail adding .org after some addresses

Hello, We run a mailing list and on our server sendmail is adding .org after some addresses, e.g. the first and third entries below in the process listingroot 1528 0.0 0.1 11764 6524 ? Ss Sep21 0:01 sendmail: ./p8NMgM0X031218 dimaventures.com.org.: user open root ... (1 Reply)
Discussion started by: prautt
1 Replies

2. AIX

sendmail masquerading on AIX.

Hello all, I have a requirement wherein I need to change the "received from" address parameter for outgoing mails from an AIX server. I tried using the option to specify the "reply-to" address, still my relay server rejects the mails as the "received from" address still contains . I know,... (1 Reply)
Discussion started by: thisissouvik
1 Replies

3. UNIX for Advanced & Expert Users

Samba in multiple domains problem

Hello all. I'm hoping you can help with a problem I'm having with Samba. I have Samba running on a Solaris host. All of my users authenticate against the same domain, but some of my users are using PCs on a different domain. When the users whose PCs are on a different domain try to connect to... (0 Replies)
Discussion started by: trouphaz
0 Replies

4. AIX

Mutt/Sendmail Masquerading Problem on AIX 5.3

We are running Unix AIX 5.3 and I have been asked to masquerade the sender name on our email processing. We have one domain name and many users: user1@domainname user2@domainname user3@domainname We use mutt/sendmail to do our email processing. I discovered that using genericstable within... (1 Reply)
Discussion started by: FHMARTINS
1 Replies

5. Solaris

Kerberos setup for multiple AD domains

Hi there: I am currently using Kerberos on Solaris 9 to autenticate using windows active directory. It is working fine, however, we just were made aware that instead of one domain, we have multiple. We configured one real with only one domain, however, I need the autentication process to also... (3 Replies)
Discussion started by: ramosl05
3 Replies

6. SCO

Sendmail masquerading

I am having a problem with my sendmail configuration I have masquerading on but when I send a mail to multiple people it masquerades my email but not the others? see the sample below: From: name@vegena.net Sent: Friday, July 24, 2009 9:42 AM To: name2@atksco1.vegena.net;... (0 Replies)
Discussion started by: garycrow
0 Replies

7. Solaris

sendmail and unqualified addresses

I have a solaris 10 server running sendmail 8.13.8, configuration file V10. On another server I am able to send local emails without appending a domain name but on this server I cannot. The mail does not bounce, the log file says they are sent, but they are not delivered. There isn't a problem... (10 Replies)
Discussion started by: csgonan
10 Replies

8. UNIX for Dummies Questions & Answers

Sendmail Masquerading

Hi, I'm trying to get my mails sent from the address user@domain instead of user@hostname.domain. Should be simple masquerading configuration in sendmail config files, but this is where I fall (newbie). The sendmail.cf is not recommended for editing. There should be some kind of .mc file that... (0 Replies)
Discussion started by: shimpanzo
0 Replies

9. UNIX for Dummies Questions & Answers

Multiple Domains with BIND

I need help creating multiple domains with one single DNS server.ex: domain1.com and domain2.com on a sigle machine 1.2.3.4 Thx (1 Reply)
Discussion started by: lekan
1 Replies

10. UNIX for Dummies Questions & Answers

multiple domains

Hello, I have 3 domains virtually hosted "name based" the first one "domain1.com" has its ServerName entered as domain1.com. this domain will load in a browser by www.domain1.com or simply domain1.com. the next two domains "domain2.com" and "domain3.com" ServerNames are listed as domain2.com and... (2 Replies)
Discussion started by: ericg
2 Replies
Login or Register to Ask a Question