Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

acidity

macrumors regular
Original poster
Sep 7, 2006
115
0
Hello

Being a command line user, I want to use the *nix command line MAIL tool as my university Linux box but I will have to configure it to use a correct SMTP server to send mails (which is why I generally use the mail command).

Doing some googling says that sendmail comes inbuilt with Mac OS X specifically I am referring to the article at http://www.bombich.com/mactips/sendmail.html but I am not able to find SENDMAIL as suggested in it.

Now I dont remember if I unchecked the option when I installed OS X for the first time and it just happens that I dont have the original OS X CD bundled with my MacBook as I dont seem to find it :( So is there anything different with my installation of OS X or I had decided not to install it?

So what are my options???
 
sendmail has had a history of security issues, although i haven't been following it lately and don't know if that's still true.
 
Sorry for the late reply but been a little busy with other work. Got a chance to work on this today.

I downloaded the postfix tar from http://www.david-reitter.com/software/osxpostfix.html#tiger and followed the steps and have done most of the thing successfuly but I have one doubt:

In one of the steps it says:

PHP:
Postfix more or less runs out of the box. You may want to configure a static name for your host. This can be done by editing the main.cf file:
sudo pico /etc/postfix/main.cf

And bingo I find the folder postfix in etc directory but I never installed or copied it. Does postfix comes bundled with Mac OS X????

Doing a list of files of the tar files shows:

PHP:
Postfix/
Postfix/Postfix
Postfix/StartupParameters.plist

So I am sure the files were not in the .tar that I downloaded?
 
OSX now comes with Postfix for that job - i think there's still a workaround built in so that when you call sendmail from PHP for example it goes to Postfix.

You can either enable Postfix yourself by altering the conf file (if i could find the guide i used I'd post the link but... - there we go) or use Postfix Enabler

Sorry for the late reply but been a little busy with other work. Got a chance to work on this today.

I downloaded the postfix tar from http://www.david-reitter.com/software/osxpostfix.html#tiger and followed the steps and have done most of the thing successfuly but I have one doubt:

In one of the steps it says:

PHP:
Postfix more or less runs out of the box. You may want to configure a static name for your host. This can be done by editing the main.cf file:
sudo pico /etc/postfix/main.cf

And bingo I find the folder postfix in etc directory but I never installed or copied it. Does postfix comes bundled with Mac OS X????

Doing a list of files of the tar files shows:

PHP:
Postfix/
Postfix/Postfix
Postfix/StartupParameters.plist

So I am sure the files were not in the .tar that I downloaded?

Post two tells you that it already comes with it installed. It just needs setting up.
 
Post two tells you that it already comes with it installed. It just needs setting up.

Yeah.. reading is fundamental. :)

OP, Postfix was introduced as the defacto SMTP server in Panther (10.3).
If you're using 10.3+ then it's Postfix, as noted. 10.2- then it's Sendmail.
 
Postfix provides a "sendmail" command (on your Mac it should be at /usr/sbin/sendmail), so it works with apps that are specifically looking for sendmail.

If you're a *nix command line user, you should already know that you don't have to do ANYTHING to use your local "sendmail" for sending outgoing mail - it will work out-of-the-box. Any problems you run into are likely exterior, such as an ISP that blocks port 25 traffic. The only time you should have to do configuration is if you want to run your own mail server for processing and/or distributing incoming mail (which you don't).

And, as others have pointed out, OS X comes with Postfix - so you don't need to install anything.
 
Thanks. I should have read that line.....

But there is no sendmail in /usr/local/sbin. I guess I had decided not to install it while configuring OS X for the first time.

Now I will get back to configuring Postfix. This is the first time I am actually doing something like that :)
 
But there is no sendmail in /usr/local/sbin. I guess I had decided not to install it while configuring OS X for the first time.

That's because (as posted) it's in /usr/sbin/, not /usr/local/sbin/. ;)

Code:
yellow% whereis sendmail
/usr/sbin/sendmail
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.