The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Email not sending to Hotmail thehaapyappy UNIX for Dummies Questions & Answers 3 05-12-2008 02:29 AM
I have some problem in sending an email, please help me. Sheethal Shell Programming and Scripting 2 10-12-2007 05:03 AM
Sending email w/ ftp log as attachment idesaj UNIX for Dummies Questions & Answers 2 07-19-2005 08:48 AM
sending email vasikaran UNIX for Dummies Questions & Answers 1 07-05-2005 02:50 AM
sending email in unix. need help! tads98 Shell Programming and Scripting 2 05-16-2005 05:33 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-16-2005
Registered User
 

Join Date: Jul 2004
Location: Beirut
Posts: 25
Exclamation Sending email

I have an Solaris 8 machine running a managment application. One of the features of this application is to configure alarm forwarding to an email undress.

When i configured the application to do that, it asked me only about the recipient email address.

Quesiton: how to configure my Solaris 8 machine to send emails.
i added a default gateway, and i don't have a DNS server.
i can ping the mail server.

Waiting for your urgent answer.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-16-2005
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Set your sendmail to send mail to the mail server. Look in /etc/mail/ for sendmail.cf - save a copy of it - edit it and look for Smart relay host. Put your mailserver host/domain in as the relay.

Example:
# "Smart" relay host (may be null)
DSmymailserver.mydomain.com

Test that Sendmail is 'happy' with everything:
$ /usr/lib/sendmail -d0.1 -bt < /dev/null

This command will give you output of the sendmail config - if you aren't running DNS, you have a major problem since sendmail works with DNS to insure a your server doesn't become a illegal mail relay. See the Sendmail FAQ for trying to set up sendmail without DNS.
Reply With Quote
  #3 (permalink)  
Old 02-17-2005
Registered User
 

Join Date: Jul 2004
Location: Beirut
Posts: 25
i tried it and this is the result....

root@inc1 # $ /usr/lib/sendmail -d0.1 -bt < /dev/null
$: not found
root@inc1 # /usr/lib/sendmail -d0.1 -bt < /dev/null
Version 8.11.6+Sun
Compiled with: LDAPMAP MAP_REGEX LOG MATCHGECOS MIME7TO8 MIME8TO7
NAMED_BIND NDBM NETINET NETINET6 NETUNIX NEWDB NIS NISPLUS
QUEUE SCANF SMTP USERDB XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = inc1
(canonical domain name) $j = inc1.
(subdomain name) $m = <null>
(node name) $k = inc1
========================================================

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> root@inc1 #


do you think it will not work if i don't have a domain name or if i am not configured with a DNS?????
Reply With Quote
  #4 (permalink)  
Old 02-17-2005
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
You need to read the FAQ on sendmail's site - link was provided in other post.
Reply With Quote
  #5 (permalink)  
Old 02-17-2005
Registered User
 

Join Date: Jul 2004
Location: Beirut
Posts: 25
hi again;

is there a special format i should put my hostname in my /etc/hosts??

thanks
Reply With Quote
  #6 (permalink)  
Old 02-20-2005
Registered User
 

Join Date: Jul 2004
Location: Beirut
Posts: 25
This is really confusing:

in /etc/hosts i added.

<IP> myhost myhost.domainname
<IP> mailserver mailhost mailserver.anotherdomainname

i can ping the mail server and telnet to port 25 and send an email from there.

i changed the configuration of sendmail.cf as described above by our freind RTM.

i am trying to send mail like this:
mail from root@inc1
to: name@anotherdomainname
this is a test mail
.

but still the mail is not received.!!!!
Reply With Quote
  #7 (permalink)  
Old 02-21-2005
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
What happens to the mail? Check /var/adm/messages (or check your /etc/syslog.conf for where email errors are logged to - look for mail) for the errors if any.

% grep mail /etc/syslog.conf
daemon.none,cron.info,user.info,mail.none /var/logs/messages
kern.info,cron.info,auth.info,mail.none /var/logs/syslog
mail.info /var/logs/maillog

In this example, you would look for the messages in /var/logs/maillog - messages will look something like this:


Feb 21 09:50:43 console2 sendmail[12716]: j1LEodnO012713: to=<john.smith@mydomain.com>, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=120356, relay=p00.mydomain.com. [172.16.1.35], dsn=2.0.0, stat=Sent (Ok.)
Feb 21 09:50:43 console2 sendmail[12718]: j1LEodnO012714: to=<john.doe@mydomain.com>, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=120358, relay=p00.mydomain.com. [172.16.1.35], dsn=2.0.0, stat=Sent (Ok.)


Also, check to see if mail is still waiting to go out - use the mailq command - it may show why the email has not gone.
Reply With Quote
Google UNIX.COM
Reply

Tags
sendmail

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0