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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| ||||
| 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. |