LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-07-2003, 12:37 PM   #1
complus
Member
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 76

Rep: Reputation: 15
sendmail setup newbie


Afternoon all.

My RH7.3 box is a web server and I need to configure sendmail so that only outgoing email is allowed, and only to emails within a particular domain (@mycompany.com).

I'm not too sure where to start ...

From what I understand I need both mail & sendmail installed because it is actually the mail program that composes the message, which is then passed to sendmail, which then sends the message to the recipient. Is that correct?

My questions are:

1) How do I check if each are installed?
2) Do I need to install anything else?
3) Any good resources/references for configuring sendmail the way I mentioned?

Thanks
 
Old 11-07-2003, 01:17 PM   #2
pfunk
Member
 
Registered: Jun 2002
Distribution: Suse, Redhat, Knoppix
Posts: 104

Rep: Reputation: 15
you need the sendmail and the sendmail-cf rpm files. the first is for sendmail and the second for configuration of sendmail. the plain "mail" command should already be installed i would think.

make changes to the macro /etc/mail/sendmail.mc (i'm not sure how to restrict access the way you want off the top of my head but i'm sure you can find out how in google!

Once you've got your changes made then back up /etc/mail/sendmail.cf and type:
1) m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
2) service sendmail restart

You might want to try poking through that macro file since it's pretty short (compared to the sendmail config file at least). if you back up the config file before you run m4 on the macro to make a new one at least you'll have something to fall back on while experimenting.
 
Old 11-12-2003, 01:10 PM   #3
complus
Member
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 76

Original Poster
Rep: Reputation: 15
I've been away for a few days and am just getting back to this. My Linux CD only came with sendmail-8.11.6-15.i386.rpm, and no rpm for sendmail -cf do i need to get that elsewhere?

Also, I assume mail is installed because I type mail, and I get a message indicating no mail for current user.

Lastly, I do not believe I have m4 installed (not even sure what that is).... I did rpm -q m4 and I get a message that it is not installed.

Any advice is appreciated. Thanks.
 
Old 11-12-2003, 08:16 PM   #4
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Quote:
Originally posted by complus
I've been away for a few days and am just getting back to this. My Linux CD only came with sendmail-8.11.6-15.i386.rpm, and no rpm for sendmail -cf do i need to get that elsewhere?

Also, I assume mail is installed because I type mail, and I get a message indicating no mail for current user.

Lastly, I do not believe I have m4 installed (not even sure what that is).... I did rpm -q m4 and I get a message that it is not installed.

Any advice is appreciated. Thanks.
Just installed the rpm, and do some modification in file /etc/mail/sendmail.mc. when you finished do this
m4 /etc/mail/sendmail > /etc/sendmail.cf
it will convert the sendmail.mc into sendmail.cf which is configuration file for sendmail.
 
Old 11-12-2003, 10:07 PM   #5
heathpitts
Member
 
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157

Rep: Reputation: 30
I had nothing but problems trying to configure sendmail. I was only wanting it to allow mail to be sent to local users only and I never did get it working.

I know you are trying to configure sendmail and maybe I shouldn't throw this in, but I installed postfix and found it very easy to configure. Just a suggestion.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setup fetchmail or sendmail satishpatel Linux - Software 1 03-08-2005 12:21 AM
Sendmail Account Setup.. Ampex Linux - Software 0 01-25-2004 05:54 AM
How to setup sendmail? alexr186 Linux - Software 4 12-19-2003 05:01 PM
Newbie: Network setup required for sendmail deepika Linux - General 18 09-30-2003 02:55 PM
sendmail setup Finlay Linux - Networking 16 03-18-2003 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:24 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration