Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
try
http://www.kempston.net/solaris/configsendmail.html
the configuration of /etc/sendmail.cf is the same
only the handling of the system resource controler is is AIX typicaly.Commands for that would be "refresh -s sendmail"
No RISK no fun
. Frank

here what I found on IBM's home page:
Change the Cw setting
You must tell sendmail to accept mail addressed to @test.com. This is accomplished by changing the setting of the Cw macro in the sendmail.cf file.Using your preferred editor, open the sendmail.cf file:
/etc/sendmail.cfFind the following entries:
#Cw localhost $w $?m$w.$m$. YourHostAliases
#Cm $m YourOtherDomainNames
CwlocalhostChange to the following:
Cw localhost $w $?m$w.$m$. test.com
#Cm $m YourOtherDomainNames
#Cwlocalhost
----------------------
Remove the system's hostname in the "from line"
Now tell sendmail to remove the system's hostname in the from line. This is necessary to allow recipients to reply to messages sent out. Assume that the relay machine's fully qualified domain name is relay.test.com.By default, any mail sent out from this relay will be from the following:
@relay.test.com
The conventional method will have the from line display the message below:
@test.com
You will need to make two changes to the sendmail.cf file for configuration.
Set the DM macro:
The original setting follows:# who I masquerade as (null for no masquerading) (see also $=M)
DMChange this setting to the following:
DMtest.com
Modify a ruleset:
Original setting:###################################################################
### Ruleset 94 -- convert envelope names to masqueraded form ###
###################################################################
S94
R$* $* $: $1 $2
#R$+ $@ $>93 $1 93 $1Save the /etc/sendmail.cf file.
----------------------
Refresh the sendmail.cf file
Enter the following command:refresh -s sendmail
This updates sendmail with the new configurations. If sendmail is not running, you need to check to see if it is active using the following command:
lssrc -s sendmail
Information similar to the following will be displayed.
Subsystem Group PID Status
sendmail mail 5424 activeIf it is not active, start it up by issuing the following command:
startsrc -s sendmail -a "-bd -q30m"
----------------------Create aliases
sendmail must be told where to send mail it receives for users that do not exist on the relay machine. This is done using the /etc/aliases file. For example, if a user has a username of John on machine nixon.test.com, we must add the following entry to this alias file:john:john@nixon.test.com
NOTE: If you want a specific message to be delivered to more than one user, just add another alias separated by a comma and a space.
For example:
john:john@nixon.test.com, frank@venus.test.com
After saving the aliases file, you need to run:
newaliases
This rebuilds the alias database. Now, when mail is sent to john@test.com, it will be relayed to john@nixon.test.com.
NOTE: Other machines within the network should also revise their from lines to exclude the hostname. This is done by repeating step two on each host, followed by a refresh of the sendmail daemon. This is called masquerading and is necessary so that mail from john@nixon.test.com goes out as john@test.com. This will allow john to receive message replies.
----------------------
[ TechDocs ref: 95626291116492 Publish date: 2002.03.22]
no RISK no fun
Frank

![]() |
How to write a korn shell...
|
remsh
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |