View Full Version : Sendmail
Dogcow
02-22-2002, 02:49 PM
Has anyone gotten sendmail working on OS X Server? I'm trying to get it up and running so my ikonboard bbs system can send out emails to notify people when there are new posts... I have webmin setup to config sendmail, so if you guys know how to configure it through that, it would be great. Currently when I try and sendmail function from ikonboard, the page just sits there trying to load, but never getting anywhere. Right now I have sendmail set to deliver outgoing mail "directly" but it has an option to select a mail server... Any help would be appreciated...
-Dogcow "moof!"
l008com
02-24-2002, 07:20 PM
I installed UltimateBB on my X Server which uses sendmail, and I didn't have to configure anything out side of UBB prefs telling it where sendmail is located etc.
Benad
02-24-2002, 10:12 PM
... but I can't remember exactly how. It was a pain in the a**, though. You have to modify some crazy/weird file, generate something from that, all the time being super-user on the terminal...
In the end, once it's properly configured for my ISP (sendmail doesn't work with IMAP, by the way), I can do "mail -s subject email@email.nul" from the command line.
I'll try to remember and I'll send you what I did tomorrow.
- Benad
Benad
02-25-2002, 06:57 PM
First, go in the terminal and make yourself super-user with "su".
Now, make a file called "my_mc.mc" with this:
divert(-1)
VERSIONID(`$Id: generic-bsd4.4.mc,v 1.1.1.3 2000/06/10 00:40:28 wsanchez Exp $')
OSTYPE(bsd4.4)dnl
FEATURE(redirect)
FEATURE(nocanonify)
MAILER(smtp)dnl
define(`RELAY_HOST', smtp:smtpserver.com)
define(`SMART_HOST', smtp:smtpserver.com)
divert(0)dnl
Obviously, replace "smtpserver.com" with your ISP's smtp server.
Put the file in /usr/share/sendmail/conf/cf (with "mv").
Then, enter this "m4 /usr/share/sendmail/conf/m4/cf.m4 my_mc.mc > config.cf"
Then do these:
cd /etc/mail/
mv sendmail.cf old_sendmail.cf
mv /usr/share/sendmail/conf/cf/config.cf ./sendmail.cf
Now, sendmail should be able to send your mail to your smtp server. You can test it with "mail -s subject_for_email some.address@mac.com", to end the message type return, control-D, return.
- Benad
Dogcow
02-25-2002, 09:58 PM
ok, I followed all your instructions. I didn't have a config.cf file, but I did have a config.c file. So I used it instead. Is that right? When I tried sendmail:
[localhost:sendmail/conf/cf] dfalling% cd ~
[localhost:~] dfalling% mail -s subject dfalling@yahoo.com
test
EOT
[localhost:~] dfalling%
Is that right? I checked my email and haven't gotten anything (yet.) Anything else I should try. Thanks a lot for the help by the way.
-Dogcow "moof!"
shryn
02-25-2002, 11:29 PM
I've managed to get Sendmail functioning on OSXServer 10.1.3 by following the very concise instructions at www.ish.com.au/solutions/sendmailOSX.html
The writer has laid out in detail the steps to follow and even a UNIX newbie like me can follow them.
I am able to send and receive mail, though there are a couple of errors in my logs I need to look into.
Hope this helps.
shryn
Benad
02-26-2002, 10:06 AM
Dogcow, the "config.cf" is the file you generate with m4. The name is not important, as long as you properly replace /etc/mail/sendmail.cf with whatever file you generated.
And make sure you replace "smtpserver.com" by your smtp server. I assume you don't need a password for your smtp server.
For the mail command, it should work the way you did it.
- Benad
jpkelly
03-04-2002, 12:08 AM
Have you considered Postfix.
It is a direct replacement for Sendmail.
Much easier to configure.
I am using it and it is working well.
gordo019
03-20-2002, 12:02 PM
Many people have recommended Postfix to me. But will it work with OSX server people who use Admin server GUI? Will the mail settings in Admin Server conflict with those set with Postfix?
jpkelly
03-20-2002, 02:52 PM
Since it is a direct replacement for Sendmail I imagine that there would be no problems.
If you are exclusively using OSX ServerAdmin then there is probably no reason (other than security) for changing to Postfix.
I am using Webmin which puts a Gui on it But I still do some configuration by hand.
Webmin has a Gui for sendmail as well but I have not used it.
timdmgd
05-08-2003, 03:52 PM
oops, sorry, posted a joke here. :rolleyes: It was meant for the coat room. Sorry.
dsgncr8or
10-23-2003, 05:00 PM
found a walkthru on this site for setting up OSX http://www.kung-foo.tv/ - some guys bLog, but pretty clear... still have not setup our sendmail yet... :rolleyes:
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.