How to setup Sendmail to send emails

NeXT Computer, Inc. -> NEXTSTEP / OPENSTEP Software

Title: How to setup Sendmail to send emails
Post by: NeXTsociety on May 14, 2010, 08:24:31 PM
I have already downloaded and installed successfully PopOver on my NeXTSTEP 3.3 system to receive emails.  It works nicely.  

Now, onto setting up Sendmail.  Search here on this site does not show any step-by-step on what exact file and what mods I do to the Sendmail to allow emails to be sent outside my network.

I did a quick FIND on my hard drive and have private/etc/sendmail/sendmail.mailhost.cf on my drive.  Is this the file I open and edit?  Or do I edit private/etc/sendmail/sendmail.cf?

Once inside, what is it I am adjusting?

My ISP's email server for outgoing emails is mail.theunion.net
I also know my login name and password which I will not post here.  hehehe.

So, am I someplace adding my ISP's email server for outgoing emails someplace?

Any guidance would be great!

Thanks

tj
Title: Re: How to setup Sendmail to send emails
Post by: eagle on May 17, 2010, 08:17:50 AM
Quote from: "NeXTsociety"I did a quick FIND on my hard drive and have private/etc/sendmail/sendmail.mailhost.cf on my drive.  Is this the file I open and edit?  Or do I edit private/etc/sendmail/sendmail.cf?

Once inside, what is it I am adjusting?

My ISP's email server for outgoing emails is mail.theunion.net
I also know my login name and password which I will not post here.  hehehe.

So, am I someplace adding my ISP's email server for outgoing emails someplace?
TJ,

If your ISP requires authentication from their own customers, it's a little more complicated, but if they don't, it should be this easy: modify the /private/etc/sendmail/sendmail.cf file.  Find the line that begins with DM (it might be commented out as #DM), and put your ISP's mail server after the M, such as:

DMmail.theunion.net

If they also require authentication, create a file to store your username/password, e.g., /private/etc/sendmail/auth/client-info.  That file should have a single line that looks like this:

AuthInfo:mail.theunion.net "U:smmsp" "I:username" "P:password"

Make the obvious substitutions for username and password.  Leave all punctuation unchanged.

Edit sendmail.cf again and add this line just above the line that shows the version number (it starts with "DZ"):

Kauthinfo hash /private/etc/sendmail/auth/client-info

Once that is done, execute this command as root:

# makemap hash /private/etc/sendmail/auth/client-info < /private/etc/sendmail/auth/client-info

Now, that last command might be wrong; I'm doing it from memory.  It might be:

# makemap hash /private/etc/sendmail/auth/client-info.db < /private/etc/sendmail/auth/client-info

But I don't think that's the format.

Once you're done with all that, restart sendmail.

Give all that a try, and report back.
Title: Re: How to setup Sendmail to send emails
Post by: NeXTsociety on May 17, 2010, 07:11:34 PM
Thanks!

I will have to try all this.  It is over my knowledge base for sure but will give it a whirl and see what happens.

I often think.... how in the heck do people remember and learn these archaic things?  Heck, I am just starting to figure out some boot commands at rom to select hard drive boot and stuff like that.  Still have to look at my cheat sheets to do commands and what does what.  

Quote from: "eagle"
Quote from: "NeXTsociety"I did a quick FIND on my hard drive and have private/etc/sendmail/sendmail.mailhost.cf on my drive.  Is this the file I open and edit?  Or do I edit private/etc/sendmail/sendmail.cf?

Once inside, what is it I am adjusting?

My ISP's email server for outgoing emails is mail.theunion.net
I also know my login name and password which I will not post here.  hehehe.

So, am I someplace adding my ISP's email server for outgoing emails someplace?
TJ,

If your ISP requires authentication from their own customers, it's a little more complicated, but if they don't, it should be this easy: modify the /private/etc/sendmail/sendmail.cf file.  Find the line that begins with DM (it might be commented out as #DM), and put your ISP's mail server after the M, such as:

DMmail.theunion.net

If they also require authentication, create a file to store your username/password, e.g., /private/etc/sendmail/auth/client-info.  That file should have a single line that looks like this:

AuthInfo:mail.theunion.net "U:smmsp" "I:username" "P:password"

Make the obvious substitutions for username and password.  Leave all punctuation unchanged.

Edit sendmail.cf again and add this line just above the line that shows the version number (it starts with "DZ"):

Kauthinfo hash /private/etc/sendmail/auth/client-info

Once that is done, execute this command as root:

# makemap hash /private/etc/sendmail/auth/client-info < /private/etc/sendmail/auth/client-info

Now, that last command might be wrong; I'm doing it from memory.  It might be:

# makemap hash /private/etc/sendmail/auth/client-info.db < /private/etc/sendmail/auth/client-info

But I don't think that's the format.

Once you're done with all that, restart sendmail.

Give all that a try, and report back.
:lol:

tj
Title: Re: How to setup Sendmail to send emails
Post by: Scutboy on May 18, 2010, 02:36:53 PM
We remember because back in the day, when configuring things like e-mail included  archaic sendmail macros with lots of dollar signs and brackets and ampersands, people stood over your desk rumbling like thunderclouds until mail was working again.

Never underestimate the power of fear or repetition to ingrain certain otherwise arcane information into your brain. :D
Title: Re: How to setup Sendmail to send emails
Post by: NeXTsociety on May 21, 2010, 06:26:13 PM
Quote from: "eagle"

Once that is done, execute this command as root:

# makemap hash /private/etc/sendmail/auth/client-info < /private/etc/sendmail/auth/client-info

OK, I did all this but Terminal does not like makemap.  When I type that all in I get a message that it does not understand that command.

Says Command Not Found when I hit the return key.

So, any other guidance would be great!

Thanks for the help so far,

tj

*Yes, I need to send login name which is my full email with the @ in it plus password to send emails with my ISP
Title: How to setup Sendmail to send emails
Post by: NeXTsociety on May 28, 2010, 06:08:50 PM
Any other NeXT gurus have any further setup advice so I can send emails with NeXTmail?  Receiving is fine so I have that all good.  Just can't send emails to the outside world.

I modified the sendmail file per Eagle's tips but am stuck at the makemap routine as NeXTSTEP appears not to know what makemap is.

Anyway, would love to know how to modify things to send emails with NeXT.  Doing a lot more everyday with my Cube and want to really get more done with it and email is one of those.

tj
Title: How to setup Sendmail to send emails
Post by: kb7sqi on May 30, 2010, 07:27:32 PM
Quote from: "NeXTsociety"Any other NeXT gurus have any further setup advice so I can send emails with NeXTmail?  Receiving is fine so I have that all good.  Just can't send emails to the outside world.

I modified the sendmail file per Eagle's tips but am stuck at the makemap routine as NeXTSTEP appears not to know what makemap is.

Anyway, would love to know how to modify things to send emails with NeXT.  Doing a lot more everyday with my Cube and want to really get more done with it and email is one of those.

tj

I always prefered running postfix on my systems.  It's much easier to setup/configure compared to sendmail.  It's pretty easy to compile on NEXTSTEP/OPENSTEP.  If you need some assistance in compiling setting it up, let me know.  I can help.  Since my hard drive died in my Sparc 5, I don't have it available for download right now.  A while back, I also posted a thread on setting up email using msmtp, stunnel, fetchmail, etc.  It's posted here:

http://nextcomputers.org/forums/viewtopic.php?t=1154

Using msmtp, stunnel, etc you can connect to any server to send mail that requires TLS/SSL.  My gecko running NEXTSTEP 3.3 is setup to receive/send email using gmail.  It works great.   I also have one x86 laptop that uses uucp via ssh for email.   :wink:   Sometimes it's fun to use old technology.   Once I get some time, I plan on re-building my Sparc 5 & will put all my packages back online, but in the meantime I'd be happy to try to help you get everything together.  Take care.

Steve
Title: How to setup Sendmail to send emails
Post by: NeXTsociety on June 01, 2010, 02:27:03 PM
Yes, I would like that, but where and how do I start with this postfix?  Is this something that I need to download someplace?  I read your gmail but for now want to try and get my local ISP mail for me to send emails since I can get them fine.

So, any advise on this postfix would be sweet!

tj

Quote from: "kb7sqi"
Quote from: "NeXTsociety"Any other NeXT gurus have any further setup advice so I can send emails with NeXTmail?  Receiving is fine so I have that all good.  Just can't send emails to the outside world.

I modified the sendmail file per Eagle's tips but am stuck at the makemap routine as NeXTSTEP appears not to know what makemap is.

Anyway, would love to know how to modify things to send emails with NeXT.  Doing a lot more everyday with my Cube and want to really get more done with it and email is one of those.

tj

I always prefered running postfix on my systems.  It's much easier to setup/configure compared to sendmail.  It's pretty easy to compile on NEXTSTEP/OPENSTEP.  If you need some assistance in compiling setting it up, let me know.  I can help.  Since my hard drive died in my Sparc 5, I don't have it available for download right now.  A while back, I also posted a thread on setting up email using msmtp, stunnel, fetchmail, etc.  It's posted here:

http://nextcomputers.org/forums/viewtopic.php?t=1154

Using msmtp, stunnel, etc you can connect to any server to send mail that requires TLS/SSL.  My gecko running NEXTSTEP 3.3 is setup to receive/send email using gmail.  It works great.   I also have one x86 laptop that uses uucp via ssh for email.   :wink:   Sometimes it's fun to use old technology.   Once I get some time, I plan on re-building my Sparc 5 & will put all my packages back online, but in the meantime I'd be happy to try to help you get everything together.  Take care.

Steve
Title: How to setup Sendmail to send emails
Post by: kb7sqi on June 01, 2010, 08:28:40 PM
Quote from: "NeXTsociety"Yes, I would like that, but where and how do I start with this postfix?  Is this something that I need to download someplace?  I read your gmail but for now want to try and get my local ISP mail for me to send emails since I can get them fine.

So, any advise on this postfix would be sweet!

tj


Give me a few days to get things updated & I'll post an updated version of openssl, postfix, stunnel, msmtp, etc.  I've started updating things.  But, as in the past,  I DO THIS WHEN I TIME.  Sometimes I can knock out several package in a day, sometimes it takes longer.   :) I'm working on OpenSSL-1.0a right now.  It takes longer because it has to be compiled for each arch individually & then lipo'ed together to make a package.    I'll keep you posted.  Take care.

Steve
Title: How to setup Sendmail to send emails
Post by: NeXTsociety on June 02, 2010, 12:05:05 AM
Quote from: "kb7sqi"
Quote from: "NeXTsociety"Yes, I would like that, but where and how do I start with this postfix?  Is this something that I need to download someplace?  I read your gmail but for now want to try and get my local ISP mail for me to send emails since I can get them fine.

So, any advise on this postfix would be sweet!

tj


Give me a few days to get things updated & I'll post an updated version of openssl, postfix, stunnel, msmtp, etc.  I've started updating things.  But, as in the past,  I DO THIS WHEN I TIME.  Sometimes I can knock out several package in a day, sometimes it takes longer.   :) I'm working on OpenSSL-1.0a right now.  It takes longer because it has to be compiled for each arch individually & then lipo'ed together to make a package.    I'll keep you posted.  Take care.

Steve

OK, I will hold tight.

Thanks

tj
Title: How to setup Sendmail to send emails
Post by: eagle on June 02, 2010, 09:17:47 AM
NeXTsociety, sorry, makemap is not in NeXTSTEP 3.3 or OPENSTEP 4.2.  Not sure why, but kb7sqi's solution of using postfix is better anyway.  I've recently switched my CentOS Linux box to use postfix instead of sendmail, and you can configure it just as you need.  (My ISP requires that I send username and password with all emails, and I have that set up.)
Title: How to setup Sendmail to send emails
Post by: NeXTsociety on June 02, 2010, 07:22:47 PM
And I take it I can still use NeXTMAIL with this postfix and use the LIPSERVICE?  I have been itching to send my 1st lipservice.

Until then, someone want to send a lipservice email to me so I can hear it.  heheheh.  Send it to amishman@theunion.net

Say whatever you want so I can test it out.   :lol:

tj
Title: How to setup Sendmail to send emails
Post by: eagle on June 02, 2010, 07:24:22 PM
Dude, you're making me want to pull my NeXTs out of the closet so that I can do that too. :D
Title: How to setup Sendmail to send emails
Post by: NeXTsociety on June 02, 2010, 07:41:30 PM
Quote from: "eagle"Dude, you're making me want to pull my NeXTs out of the closet so that I can do that too. :D

Back in 1997 I had a Turbo Cube and remember I finally had it all setup to do emails.  I did a lipservice to myself and thought it was so cool.  No one else had lipservice that I knew of.

Funny thing is I did a NeXT newsletter for 1 year back in 1997 and had 6 issues.  I even wrote about using Popover and Sendmail to do emails but my article was very basic and in no way explained how to do it again.  hehehe.  I wish I would have done that now 13 years later as I have no clue what to do now that I am back into NeXT.  My little newsletter was called @Society and I did it for 1 year to the day to fulfill all the subscriptions to it.  It was all about NeXT from a newbies point of view and I was much younger, never did anything like that, and although not professional, I think it was still fun and was so cheap most folks liked getting it since NeXT was on the way out really bad by then.

Maybe I should bring that newsletter back to life.   :lol:  :lol:

tj

* So, in the last few months, I went from zero NeXT to a NeXTcube Turbo Double Dimension, NeXTcube 25MHz with Mono Monitor, a NeXTSTATION Turbo Color, and a NeXTSTATION Color.  All rounding it out with NeXT Laser and Color Printers.  hehehe  The NeXT bug has bitten me REAL hard!  Ask Rob a Black Hole.  I been buying wayyyy too much from him lately but I am sure he likes it.   :)

@eagle  Spark up those old NeXT boxes and send me a lipservice email. 8-)
Title: How to setup Sendmail to send emails
Post by: eagle on June 03, 2010, 06:43:25 AM
I really would love to pull my NeXTs out and play with them, but with 2 young children now, I have neither the time nor the space to do it.  I hope to have that time and space in a few years...

Now, if the x86 versions of OPENSTEP or NeXTSTEP had that functionality, I could do it, because I do have VMs up and running.
Title: How to setup Sendmail to send emails
Post by: NeXTsociety on June 03, 2010, 05:45:52 PM
WooooHoooooo.  I can now send emails.  Received files and info from kb7sqi and with all the great help, can now send emails.

Basically I received the 2 files needed and installed these packages.  msmtp and prngd.  Then created the .msmtprc files as neeed and adjusted my rc.local file.  Adjusted my mail.app to use the msmtp instead of sendmail and after some tinkering, sent an email.  

NOW, any of you NeXT folks out there using mail.app, please send amishman@theunion.net a NeXTmail with a LIPSERVICE added to it to see how well voice comes over on my emails.

Thanks

TJ
Title: How to setup Sendmail to send emails
Post by: kb7sqi on June 03, 2010, 07:23:24 PM
Quote from: "NeXTsociety"WooooHoooooo.  I can now send emails.  Received files and info from kb7sqi and with all the great help, can now send emails.

Basically I received the 2 files needed and installed these packages.  msmtp and prngd.  Then created the .msmtprc files as neeed and adjusted my rc.local file.  Adjusted my mail.app to use the msmtp instead of sendmail and after some tinkering, sent an email.  

NOW, any of you NeXT folks out there using mail.app, please send amishman@theunion.net a NeXTmail with a LIPSERVICE added to it to see how well voice comes over on my emails.

Thanks

TJ

I already sent you an email, but glad you got it working.  Let me know how the audio was w/ lip service.  I was like 3 ft away from the soundbox when I recorded it. lol.  Take care.

Steve
Title: How to setup Sendmail to send emails
Post by: NeXTsociety on June 03, 2010, 07:29:34 PM
Quote from: "kb7sqi"
Quote from: "NeXTsociety"WooooHoooooo.  I can now send emails.  Received files and info from kb7sqi and with all the great help, can now send emails.

Basically I received the 2 files needed and installed these packages.  msmtp and prngd.  Then created the .msmtprc files as neeed and adjusted my rc.local file.  Adjusted my mail.app to use the msmtp instead of sendmail and after some tinkering, sent an email.  

NOW, any of you NeXT folks out there using mail.app, please send amishman@theunion.net a NeXTmail with a LIPSERVICE added to it to see how well voice comes over on my emails.

Thanks

TJ

I already sent you an email, but glad you got it working.  Let me know how the audio was w/ lip service.  I was like 3 ft away from the soundbox when I recorded it. lol.  Take care.

Steve

Sound good to me.  Did you get my reply back with my own lipservice attached and how did that sound by the way???

tj
Title: How to setup Sendmail to send emails
Post by: kb7sqi on June 03, 2010, 10:37:05 PM
Quote from: "NeXTsociety"
Quote from: "kb7sqi"
Quote from: "NeXTsociety"WooooHoooooo.  I can now send emails.  Received files and info from kb7sqi and with all the great help, can now send emails.

Basically I received the 2 files needed and installed these packages.  msmtp and prngd.  Then created the .msmtprc files as neeed and adjusted my rc.local file.  Adjusted my mail.app to use the msmtp instead of sendmail and after some tinkering, sent an email.  

NOW, any of you NeXT folks out there using mail.app, please send amishman@theunion.net a NeXTmail with a LIPSERVICE added to it to see how well voice comes over on my emails.

Thanks

TJ

I already sent you an email, but glad you got it working.  Let me know how the audio was w/ lip service.  I was like 3 ft away from the soundbox when I recorded it. lol.  Take care.

Steve

Sound good to me.  Did you get my reply back with my own lipservice attached and how did that sound by the way???

tj

It sounded great.  It still amazes me to this day how much "NeXT" technology was way ahead of its time.  Eagle,  you know you want to break out atleast one system.  Do it... lol.  Take care.

Steve
Title: How to setup Sendmail to send emails
Post by: eagle on June 04, 2010, 05:33:18 AM
You guys are killing me.  I don't know where I'd put the thing... there's literally no room anymore.
Title: How to setup Sendmail to send emails
Post by: NeXTsociety on June 04, 2010, 11:06:52 AM
Quote from: "eagle"You guys are killing me.  I don't know where I'd put the thing... there's literally no room anymore.

Just use the kitchen table for weeks on end.  That is what I do.   :lol:  :lol:

tj

Go to top  Forum index