Unix Technical Forum

Sender address user@mydomain.de instead of user@host.mydomain.de?

This is a discussion on Sender address user@mydomain.de instead of user@host.mydomain.de? within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi all, we're using Version 8.11.6p2 on AIX 5.3. The subject says what's the problem: When I send an ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 10:27 AM
Pete
 
Posts: n/a
Default Sender address user@mydomain.de instead of user@host.mydomain.de?

Hi all,

we're using Version 8.11.6p2 on AIX 5.3.

The subject says what's the problem: When I send an e-mail via
/usr/bin/mail from an AIX-Partition to our internal mail relay, this
mail arrives with a sender address user@host.mydomain.de. We would like
to have user@mydomain.de, i.e. the hostname should not appear in the
sender address.

I'v tried compiling different settings in
/usr/samples/tcpip/sendmail/cf/aixsample.cf (MASQUERADE_AS, etc....)
with no success. Sendmail seems to be tooo complicated for me :-(

Any ideas? Thanks in advance!

Pete

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 10:28 AM
artinghan
 
Posts: n/a
Default Re: Sender address user@mydomain.de instead of user@host.mydomain.de?

Edit /etc/sendmail.cf

Rule set 93 & 94 (masquerade)

Replace $j (host.domain) by $m (domain)

!!!Here under are these 2 Rule sets, I putted the modification between
double-quote("$m"). Don't put these double-quote but rather what they
contain!!!
################################################## #################
### Ruleset 93 -- convert header names to masqueraded form ###
################################################## #################

S93

# handle generics database
#R$+ < @ $=G . > $: < $1@$2 > $1 < @ $2 . > @ mark
#R$+ < @ *LOCAL* > $: < $1@$j > $1 < @ *LOCAL* > @ mark
#R< $+ > $+ < $* > @ $: < $(generics $1 $: $) > $2 < $3 >
#R< > $+ < @ $+ > $: < $(generics $1 $: $) > $1 < @ $2 >
#R< $* @ $* > $* < $* > $@ $>3 $1 @ $2 found qualified
#R< $+ > $* < $* > $: $>3 $1 @ *LOCAL* found
unqualified
#R< > $* $: $1 not
found

# special case the users that should be exposed
R$=E < @ *LOCAL* > $@ $1 < @ "$m" . > leave exposed
R$=E < @ $=M . > $@ $1 < @ $2 . >
R$=E < @ $=w . > $@ $1 < @ $2 . >

# handle domain-specific masquerading
R$* < @ $=M . > $* $: $1 < @ $2 . @ $M > $3 convert
masqueraded doms
R$* < @ $=w . > $* $: $1 < @ $2 . @ $M > $3
R$* < @ *LOCAL* > $* $: $1 < @ "$m" . @ $M > $2
R$* < @ $+ @ > $* $: $1 < @ $2 > $3 $M is null
R$* < @ $+ @ $+ > $* $: $1 < @ $3 . > $4 $M is not null


################################################## #################
### Ruleset 94 -- convert envelope names to masqueraded form ###
################################################## #################

S94
R$* < @ *LOCAL* > $* $: $1 < @ "$m" . > $2


compile sendmail.cf by the command: sendmail -bi

refresh -s sendmail

Hope this help.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:40 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com