LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-21-2004, 06:09 AM   #1
chrisfirestar
Member
 
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Rep: Reputation: 30
sendmail on solaris problems


Hi everyone,

I have been given the task of getting sendmail going on a solaris box (2 days to be exact) and i am flying blind, i have never built sendmail before.

The sendmail will only need to send emails.. not recieve or anything.. its actually running on an application server which will then be sending notifications to users. but atm its trying to use the recipients SMTP server NOT THIS ONE!!

I have got things moving forward however Ive hit a wall... I have created the following mc file..

Code:
divert(0)dnl
VERSIONID(`@(#)main-v7sun.mc    1.5 (Sun) 09/12/01')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
MAILER(`local')dnl
MAILER(`smtp')dnl
but when i run the command
root@jpapp1 # /usr/lib/sendmail -v chris@domain.com </dev/null

i get this

Code:
chris@domain.com... Connecting to 202.X.X.X. via esmtp...
220 mailsvr.leadingside.com.my Microsoft ESMTP MAIL Service, Version: 5.0.2195.6713 ready at  Wed, 21 Jul 2004 18:07:02 +0800
>>> EHLO jpapp1.
501 5.5.4 Invalid Address
>>> HELO jpapp1.
501 5.5.4 Invalid Address
>>> QUIT
221 2.0.0 mailsvr.domain.com Service closing transmission channel
/dead.letter... Saved message in /dead.letter
Closing connection to 202.X.X.X.
domain.com is the email recipients address not MINE. so it is trying to send the email from the recipients emails smtp not the one on this server... any ideas??

Im really stuck
 
Old 08-10-2004, 01:04 PM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 97
Sendmail has always been a nightmare to configure.

I've not tried it on solaris, but on HP-UX the configuration file is /etc/mail/sendmail.cf

MAKE A BACKUP COPY

you will need to know some things before you start:
  • The fully qualified machine name of your SMTP server (MS Exchange server will work fine)
  • The fully qualified domain that your Solaris server is attached to
  • The top level domain name

If your SMTP server is mail1.sub.domain.com
and your Solaris Server is Sun1.sub.domain.com
and your top level domain is domain.com

Then:
You should have the following lines (as a part) of your sendmail.cf file

Dj$w.sub.domain.com
DSsmtp:mail1.sub.domain.com
DMdomain.com


It would be a good idea to run: man sendmail

This will hopefully tell you were to find your configuration file.

You can send a test mail using mailx

mailx -s "Subject of test" chris@domain.com

The main rule with sendmail has always been, if it works leave it alone.

Hope it all works out ok.
 
Old 08-10-2004, 01:11 PM   #3
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 97
Forgot to say:

The command: mailx -s "test" chris@domain.com

Works in the same way as telneting to the SMTP port (25) and performing a HELO command etcetera.

Therefore, you need to type in your email message at this point

To send the message put a fullstop on a line by itself and press return
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail on solaris with no hostname & ipfw (or other firewall) tutorials Maidros Solaris / OpenSolaris 1 07-10-2005 02:34 PM
Self Service Password Reset for Sendmail or Solaris trysten_x Solaris / OpenSolaris 1 07-10-2005 01:58 PM
Solaris 10 problems, please help genderbender Solaris / OpenSolaris 3 03-14-2005 12:27 PM
compiling and configuring sendmail on solaris 9 linux_ub Linux - Networking 1 11-09-2004 05:17 PM
Sendmail aliases nis problem in solaris simquest Linux - General 1 11-01-2002 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration