config issues in Mac OS X.

I have Mac PC. OS X has been installed in it. We have SMTP server. I am able to send mails using Lotus Notes. Now i want to send mails by sendmail. what configurations i have to do? I have seen /etc/mail/sendmail.cf. what should be written in it? sendmail is installed in by machine also.
rama_krishnaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
samriConnect With a Mentor Commented:
I believe the command that you would be using should work.  By default sendmail will be trying to deliver the mail to the target SMTP server (by doing lookup for MX host for your recipient domain).  If you are connected directly to the internet (using public IP, or has some kind of NAT) this should work.  If you happens to have a relay (SMTP gateway) you need to check the DS option in sendmail.cf.

Please, have you tried to send mail via that command.

Make sure that mail goes out first, then we will proceed to tweak the config.  Most likely would be relaying the mail via some local relay (or mailhub), masquerading the address (so that the sender would not be your-login@yourmachine.subdomain.domain.com, or whatever)

Should there is any error, please let us know.

cheers.
0
 
samriCommented:
rama,

The following webpage has some information on how to get Sendmail on Mac OS X, running.

http://www.bombich.com/mactips/sendmail.html

Yes, sendmail.cf should be around because that is the main configuration file for sendmail.  There should not be a need to tweak the entries unless something is not working.

Please try the proposed instruction, and let us know should there is any problem.

cheers.
0
 
rama_krishnaAuthor Commented:
I have seen the site. To enable the senmail i did the change in hostconfig file.
MAILSERVER=-YES-
This site did not mention any changes to sendmail.cf file. Are they enough.
Actually i want to do it as command prompt.
$/usr/sbin/sendmail -t </Users/home/file1
and file1 will be like
To:name@experts.com
Subject: test
---------------
the site is saying
To use that mailserver, just set your email client's outgoing mailserver to "localhost" or "127.0.0.1". where should i do it? I will not be using any email client. I will send mail as mention above.
0
 
markt9Connect With a Mentor Commented:
It is exciting from a Open Source point of view to see Apple people running *nix stuff.

"I set mailserver=yes-" to activate sendmail...what is this world comming to.....Pretty soon we won't need a sendmail section on experts-exchange....


'The site is saying To use that mailserver, just set your email client's outgoing mailserver to "localhost" or "127.0.0.1". where should i do it?'

You are not using a email client with the command you quoted, you are using a mail program directly.  It should know already that it is the mail program.  Setting your machine as localhost or 127.0.0.1 mean pretty much the same thing and is pretty standard;  i bet osX does this by default, and you can just ignore this.

Go to a command prompt and do your:

/usr/sbin/sendmail -t </Users/home/file1

and make sure /Users/home/file1 contains:

To:name@experts.com
Subject: test
this is a test

.

and I would not be supprised it sends name@experts.com a message.....

Otherwise give us the error message you get.....

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.