Configuring mail help


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Configuring mail help
# 1  
Old 08-15-2006
Configuring mail help

I'm trying to get my server (running SunOS 5.8) to be able to send mail. The mail administrator gave me the name of the mail server that I can use to relay the mail, but where/how do I configure this in Unix on my server?

Thanks!
# 2  
Old 08-15-2006
put the entry mailhost in the /etc/hosts
E.g.

a.b.c.d server_name mailhost


kill -HUP the sendmail daemon
# 3  
Old 08-15-2006
First, make a backup of the files you will edit!
Look in the /etc/mail/sendmail.cf file - set the DS smart relay host to the name of the server you were given and restart sendmail (if running).

While this may not be the only change you need - it should allow the mail to be sent to the relay. Buy the Sendmail book from O'Reilly and check out the info/faq on Sendmail home page
# 4  
Old 08-16-2006
In my sendmail.cf, I currently see:

# "Smart" relay host (may be null)
DSmailhost$?m.$m$.

Do I just add it in underneath? Is there a specific format?

(This is just a testing server, but one of the programs I'm using can send me e-mails automatically. Right now the mail stays on the server, it doesn't go to my e-mail address).

Thanks!
# 5  
Old 08-16-2006
You can try izy100's suggestion of just putting the IP and hostname along with mailhost in the /etc/hosts file - then the current DS entry should pick it up (as long as it is on the same domain).

Or, you can just change the sendmail.cf DS entry to your mail server.
example:
mailhost.uspot.gov.

Last edited by RTM; 08-16-2006 at 04:49 PM..
# 6  
Old 08-17-2006
Thanks!

Worked perfectly.

(FYI: I did as izy100 suggested and added the mail server host to my /etc/hosts file).

Thanks izy & rtm!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

I need help configuring postfix mail server within AWS

I am trying to setup the postfix email server on Redhat Linux 6.5 running as an EC2 instance in AWS. I can do reverse port mapping to open a port from our internal network to the AWS linux server, so we should be able to get to our mail server, even though it is a one way path from our internal ... (1 Reply)
Discussion started by: gandolf989
1 Replies

2. UNIX for Advanced & Expert Users

Need an help in configuring Postfix mail relay server

Hello, We have 2 servers, server A and Server B in same domain. I have already configured the Serevr A to send an email to the internet (outside domain) by opening the port 25 to the internet. Now I need to send an email to the outside domain from Server B using server A. I have opened the... (1 Reply)
Discussion started by: sathishbabu89
1 Replies

3. Shell Programming and Scripting

Configuring smtp settings and then sending the mail through shell script

I have make an menu in which first option is to start and second is to stop the services echo "Please enter the appropriate choice for doing the operations" echo " 1) STOP Services 2) START Services case $choice in 1) ... (1 Reply)
Discussion started by: punpun66
1 Replies

4. UNIX for Advanced & Expert Users

Configuring second mail relay

Hi all, Once I already asked about this problem, but didn't get solution, so I am opening new thread. Hope to get help from you guys. So, my problem is: I have Solaris 10 based server. I have a script which should send mails using mailx (can use another if needed). What I need is -... (3 Replies)
Discussion started by: nypreH
3 Replies

5. UNIX for Dummies Questions & Answers

Configuring mail to send email from server to client

Hi, I want to send an email from server to my gmail account for all critical messages reported in the server. Kindly help me in configuring the same. Regards Rochit (1 Reply)
Discussion started by: rochitsharma
1 Replies

6. Solaris

Configuring send mail client in solaris 10

Dear all, We have SMTP server in our organization & i want to send e-mails from solaris machine using sendmail ... in which file i need to put the smtp server ip, username & passwd.. kindly help ....... (4 Replies)
Discussion started by: vishwanathhcl
4 Replies

7. UNIX for Advanced & Expert Users

Configuring Linux box with the smtp mail server

Hi all, I was trying to configure SMTP server with my linux box. I made changes to the /etc/mail/sendmail.cf whereby editing the line DAEMON_OPTIONS(`Port=<port number>,Addr=<mail server name>, Name=MTA')dnl after this ive created a new sendmail.cf file by using the command m4... (4 Replies)
Discussion started by: amit_kv1983
4 Replies

8. UNIX for Dummies Questions & Answers

Need help for configuring outgoing mail in Solaris 9

G'day, I've a solaris 9 box that I want to configure so that users can send out mails to internet. How can I do it? Can someone pls list me the steps or direct me to a detailed website. Thanks in advance. (1 Reply)
Discussion started by: Albert J.
1 Replies

9. UNIX for Dummies Questions & Answers

Configuring my PostFix Mail Server

Hi folks! I have a Postfix email server running on my MacOs x box. I would like to customize this automatic message to portuguese language: ============ This is the Postfix program at host myserver.com. I'm sorry to have to inform you that the message returned below could not... (4 Replies)
Discussion started by: fundidor
4 Replies
Login or Register to Ask a Question