LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-22-2005, 07:11 AM   #1
ukjairaj
Member
 
Registered: Jun 2004
Location: Mumbai-India
Distribution: RHEL-4 Update 2 & Fedore Core 5
Posts: 40

Rep: Reputation: 15
Sendmail Configuration - I need Help


Hi Friends

I am using Redhat 9 and trying to use sendmail as mail server for our office with 40 staff connected through LAN. I will just give below what I did in my attempt to use sendmail. Please check and correct wherever I went wrong

1) In sendmail.mc, I changed the IP address 127.0.0.1 to my own ip address and then did m4 sendmail.mc > sendmail.cf

2) In /etc/mail/access I added an extra line 192.32.1.6 (my ip) RELAY and gave the command make from /etc/mail

3) I selected ipop3 in services

4) Now did service restart for both sendmail and xinetd

5) created 2 users with useradd abc, and useradd xyz and allotted password too.

These are the only things I did in mail-server

In the PCs of staff, where we are using Linux, I tried to configure evolution to send and receive e-mails

1) Selected POP3 and gave the ip address 192.32.1.6(of mail server) as server.

2) Selected SMTP as outgoing and gave the same ip address again

3) Gave the username(abc) which i created in mail server.

4) Gave the emailaddress as abc@192.32.1.6

These are the onlythings I did in client machine.

Now when I send a mail using evolution it gives message Sending message 1 of 1 for some time and then comes out with no error message. Now when I check inbox in the other PC where evolution is configured with the other username, no mail is received.

I dont know how to proceed further.

One of my friend told fetchmailrc file has to be kept in home directory of all the user in mailserver, only then the mails will go to the respective user. I am not sure about this too.

Your suggestions and guidance will help me to a great extent
 
Old 06-22-2005, 08:28 AM   #2
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
Re: Sendmail Configuration - I need Help

Pfew...
Let me begin by recommending you read some documentation. The RedHat Sendmail howto may be a great start. Also define a desired setup. If I intepret your post correctly, you want a mail-server and a pop3 server.

Before attempting to configure office clients, you should make sure that mail is working properly on the server. Use, for example, any text-base mail client to verify (mail, elm, mutt, pine, whatever). Mail should end up in /var/spool/mail/username. I.e. after sending a user a mail, that file should exist and/or grow.
Sendmail logs whatever it does with e-mail. Check /var/log/mail* for more info, and see what is happening.

Lets see...
Quote:
Originally posted by ukjairaj
1) In sendmail.mc, I changed the IP address 127.0.0.1 to my own ip address and then did m4 sendmail.mc > sendmail.cf

2) In /etc/mail/access I added an extra line 192.32.1.6 (my ip) RELAY and gave the command make from /etc/mail
I'm not sure about this, but I guess you should give access to everyone in your office. But that's after you've got local mail working.

You did restart sendmail, after making those modifications, did you? Maybe regenerate the access.db file (if you have any?)

Quote:
Now when I send a mail using evolution it gives message Sending message 1 of 1 for some time and then comes out with no error message. Now when I check inbox in the other PC where evolution is configured with the other username, no mail is received.
It looks like the mail is accepted by the server. Check the logfiles to see what it does with it.

Quote:
One of my friend told fetchmailrc file has to be kept in home directory of all the user in mailserver, only then the mails will go to the respective user. I am not sure about this too.
As far as I can tell from what you tell me, this is not true.

If you are in a production-environment, later. How will e-mails from outside the company arrive at your server? If you want to use fetchmail for that, then you may need a fetchmailrc file. Not before.

Good luck,

Groetjes,

Kees-Jan
 
Old 06-23-2005, 03:18 AM   #3
ukjairaj
Member
 
Registered: Jun 2004
Location: Mumbai-India
Distribution: RHEL-4 Update 2 & Fedore Core 5
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for the reply. I will try the tips given by you. This is strictly for internal use only and we dont want to receive or send any mail outside our network.
I checked the files in /var/spool/mail/. There are files with the specific usernames created by me. But all the files are 0 byte files with nothing inside.

I will try further and give the progress and results

Thanks again

Jeyaraj K
 
Old 06-23-2005, 03:47 AM   #4
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
If you created the files in /var/spool/mail, they may have wrong ownership or permissions, which may cause mail to not work.

If the files don't exist, then sendmail will create them for you when the user starts receiving mail. So you cannot break anything by deleting them (other than throwing away some users mail, of course )

Groetjes,

Kees-Jan
 
Old 06-23-2005, 10:05 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 261Reputation: 261Reputation: 261
Moved: More suitable in our Networking forum.
 
Old 06-23-2005, 01:26 PM   #6
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
ukjairaj

Quote:
2) In /etc/mail/access I added an extra line 192.32.1.6 (my ip) RELAY and gave the command make from /etc/mail
By default Sendmail denies relaying the above entry in /etc/mail/access will only allow relay from this IP which is obviously just one machine

If all the machines on your LAN are part of the same subnet enter

192.32.1 RELAY

in /etc/mail/access

this will allow relay from any machine with an IP starting 192.32.1

Example

192.32.1.0
192.32.1.1
192.32.1.2
192.32.1.3
192.32.1.4 etc,etc

Will all be allowed to relay

Pete
 
  


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
Sendmail Configuration arshad Red Hat 3 12-14-2003 01:11 AM
Sendmail configuration lapthorn Linux - Newbie 2 12-09-2003 09:13 PM
Sendmail Configuration svsalian Linux - Software 7 08-29-2003 05:17 AM
Sendmail Configuration TheDude074 Linux - General 1 08-07-2003 09:41 PM
sendmail configuration pleavitt Linux - Software 1 03-18-2003 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:31 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
Open Source Consulting | Domain Registration