Computing.Net > Forums > Unix > Mail configuration

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Mail configuration

Reply to Message Icon

Name: Milind
Date: August 13, 2002 at 02:49:49 Pacific
Comment:

Stepwise procedure of configuring my Unix - AIX server (RS6000).



Sponsored Link
Ads by Google

Response Number 1
Name: Frank
Date: August 13, 2002 at 05:22:22 Pacific
Reply:

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


0

Response Number 2
Name: Frank
Date: August 13, 2002 at 06:40:06 Pacific
Reply:

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.cf

Find the following entries:
#Cw localhost $w $?m$w.$m$. YourHostAliases
#Cm $m YourOtherDomainNames
Cwlocalhost

Change 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)
DM

Change 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 $1

Save 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 active

If 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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


How to write a korn shell... remsh



Post Locked

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


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Mail configuration

Send mail configuration www.computing.net/answers/unix/send-mail-configuration/1571.html

Configuring mail www.computing.net/answers/unix/configuring-mail/1192.html

Configuring Exchange Server to receive internet mail from Sendmail 8.8 www.computing.net/answers/unix/configuring-exchange-server-to-receive-internet-mail-from-sendmail-88/1262.html