Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to send mail outside

Status
Not open for further replies.

babeo

Technical User
Mar 30, 2000
398
CA
Hi

I have a question:
- Once the unix box is set up and connected on LAN, is it possible to send email to another user? or do I have to set up to be able to send email outside?
- If it is so, how do I set up to send mail outside?
Thanks.
 
Look at sendmail. Too much stuff to explain here.
 
# ps -ef | grep sendmail

if sendmail is running, check sendmail.cf and look for
DS=yourmailer@domain.com

This is your relay mail server if you using a relay to send mail else leave it empty for direct sending.

# echo "test" | /usr/lib/sendmail -v id@domain.com

You will see something like this...

220-
220- Unsolicited bulk e-mail is not allowed to transmit,
220- or distribute from our computers and networks.
220-
220 All activities to our networks is now being captured and logged.
>>> EHLO mac.domain.com
250-apple.domain.com Hello mac.domain.com
[x.x.x.x], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE 4000000
250-DSN
250-ONEX
250-XUSR
250-AUTH LOGIN PLAIN
250 HELP


Goodluck
 
Hi,
U can send a mail to outside user if u do the following configuration changes on your server....
1)vi /etc/defaultdomain(Enter the domainname of your place)
2)then give the command -- domainname <name of domain>
2)vi /etc/mail/sendmail.cf(Search for mailhost entry and hash out that line eg
# &quot;Smart&quot; relay host (may be null)
#DSmailhost.$m
Instead of this entry enter the name of your exchangeserver entry as 'DS<exchangeserver>.<name of domain>'
Then restart the sendmail service as
/etc/init.d/sendmail stop
/etc/init.d/sendmail start

Then try to send mail to your outside user....

I hope this helps....
 
Thanks all

I am overwhelm with the information that really help me. And I really that there are too many things to complete. So I will try to go through all these information and will come back here to let everybody know how it works for me.

Thanks again.
 
Hi

The workout I did after installating Solaris 8 was:

1. /etc/init.d/sendmail stop

2. Copied /etc/mail/sendmail.cf as /etc/mail/sendmail.cf.orig

3. Copied /etc/mail/main.cf as /etc/mail/sendmail.cf

4. Created entry of mailhost in /etc/hosts file
Eg. 1.1.1.1 hostname mailhost

5. /etc/init.d/sendmail start

6. Tested the mail with command:
mailx -s &quot;subject&quot; xyz@abc.com < filename

Hope it helps

Thanks

Sharad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top