LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2006, 04:13 PM   #1
rafid
LQ Newbie
 
Registered: Oct 2006
Posts: 16

Rep: Reputation: 0
Sendmail


HI,

I am trying to configure sendmail just for learning purpose a friend of mine told me a few steps for configuration which worked for him (he is using Linux 9.0 AS) I am trying the same thing on Linux 9.0 and having a problem on initial steps. I am listing the steps which i have followed so far.

I have added a host name in /etc/hosts (added rafid.com) file against my system's static IP (when i ping rafid.com i am getting reply)

I have made few changes in sendmail.mc which are listed below

changed LOCAL_DOMAIN('localhost,localdomain) to LOCAL_DOMAIN('rafid.com')
followed by
dnl # loopback
and also disabled
DEAMON_OPTIONS

I have replicated the changes made in sendmail.mc file to sendmail.cf file using following command

[/etc/mail]#m4 sendmail.mc sendmail.cf (while my pwd was ///etc/mail directory)

now when i try to do

#telnet rafid.com 25

it says connection refused

and according to my friend it shouldnt happen, I am stuck on this point. Please help me with this issue and let me know how should i resolve it.

Thank you

Rafid Haroon
 
Old 10-21-2006, 04:16 PM   #2
alienux
Member
 
Registered: Sep 2006
Location: Dayton, Ohio
Distribution: Slackware 12, Fedora Core, PCLinuxOS
Posts: 194

Rep: Reputation: 30
Do you have a firewall enabled on the server? If so, are you allowing port 25 through the firewall?
 
Old 10-21-2006, 04:32 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,276

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Have you actually started the Sendmail service? There's no such thing as "Linux 9.0" but assuming you are using Red Hat 9 you could do "service sendmail start" and see if it starts up OK.
 
Old 10-22-2006, 04:33 AM   #4
rafid
LQ Newbie
 
Registered: Oct 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Hi

I disabled the Fire wall during installation and Yes sendmail service is running and i have also tried to telnet after shutting down and restarting the sendmail service again but so far no luck, and yes I am using RedHat 9 and by the way I am using VMWARE.

Last edited by rafid; 10-22-2006 at 04:37 AM.
 
Old 10-22-2006, 03:15 PM   #5
rafid
LQ Newbie
 
Registered: Oct 2006
Posts: 16

Original Poster
Rep: Reputation: 0
The issue was resolved there was problem with firewall any how now its working fine.

Now i need help on another thing i.e "dovecot" I couldnt find the package on my redhat 9's cds so i downloaded it from dovecot.org I have installed it according to the instructions given (using ./configure command) in the next step its mentioned that I should rename file using this command " #mv /usr/local/etc/dovecot-example.conf /usr/local/etc/dovecot.conf"

but the thing is that there arent any files copied in /usr/local/etc folder installation appears to be completed i.e it didnt ended in any error but when i do a query to check if package has been installed or not using " #rpm -q dovecot" it ends in failure, so please let me know what am I doing wrong here

Last edited by rafid; 10-22-2006 at 03:24 PM.
 
Old 10-22-2006, 04:02 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,276

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The RPM database doesn't magically know about stuff you compile from source. To find where it put the example dovecot.conf do updatedb and then locate dovecot-example.conf.

If you're going to be running a server, I seriously recommend running something other than Red Hat 9. Red Hat 9 is about 3 years old and unsupported. I would advise you to move to the latest CentOS release (4.4 as of this writing). CentOS is a free rebuild of Red Hat Enterprise Linux, so it will retain the Red Hat "look and feel". There are other choices too, but running obsoleted OSes on a server is generally not a good idea unless you have no choioce for compatibility reasons. Also, CentOS comes with a prepackaged RPM fopr dovecot, so it should be much easier to set up.
 
Old 10-23-2006, 07:04 AM   #7
rafid
LQ Newbie
 
Registered: Oct 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for your suggestion what about Redhat 9 A.S enterprise Edition can i use that or Fedora Core 5 as a server, for the time being I have only these two options which one do you recommend.

Last edited by rafid; 10-23-2006 at 04:41 PM.
 
Old 10-23-2006, 10:57 PM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,276

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
To be honest neither is a teribly wonderful choice IMO (RH9 is old and heading out of support and FC5 is rather bleeding edge). You can't download and burn CentOS? I guess if I had to choose I'd go with FC5 since at least there's a few months of support left (as FC6 is just coming out now) plus whatever support the Fedora Legacy project would give.
 
Old 10-23-2006, 11:38 PM   #9
alienux
Member
 
Registered: Sep 2006
Location: Dayton, Ohio
Distribution: Slackware 12, Fedora Core, PCLinuxOS
Posts: 194

Rep: Reputation: 30
Quote:
Originally Posted by rafid
Thanks for your suggestion what about Redhat 9 A.S enterprise Edition can i use that or Fedora Core 5 as a server, for the time being I have only these two options which one do you recommend.
If for some reason your only choices are between Redhat 9 and Fedora 5, you should go with Fedora 5.
 
Old 10-24-2006, 03:46 AM   #10
rafid
LQ Newbie
 
Registered: Oct 2006
Posts: 16

Original Poster
Rep: Reputation: 0
What do you say about Redhat AS server.
 
Old 10-26-2006, 08:56 AM   #11
arya.abhinav
LQ Newbie
 
Registered: Oct 2006
Location: Delhi, India
Distribution: Rhel4, SUSE 10,CenOs
Posts: 11

Rep: Reputation: 0
this help is very useful. Could u plz help me how to check tht sendmail is propely working or not.

One more thing can u help me reg relay server. i am using rhel 4 WS
 
Old 10-26-2006, 04:00 PM   #12
rafid
LQ Newbie
 
Registered: Oct 2006
Posts: 16

Original Poster
Rep: Reputation: 0
What do you want to check is running Ok or not the configuration of sendmail or sendmail service itself ?
 
Old 10-26-2006, 04:07 PM   #13
rafid
LQ Newbie
 
Registered: Oct 2006
Posts: 16

Original Poster
Rep: Reputation: 0
What do you want to check is running Ok or not the configuration of sendmail or sendmail service itself ?
 
Old 10-28-2006, 01:22 AM   #14
arya.abhinav
LQ Newbie
 
Registered: Oct 2006
Location: Delhi, India
Distribution: Rhel4, SUSE 10,CenOs
Posts: 11

Rep: Reputation: 0
Ya i want to check tht sendmail is working properly?

The problem i am facing is tht when ever i send a mail to any acc, log shows tht mail is succesfully delivered but i never rec any mail.
 
Old 10-28-2006, 01:47 PM   #15
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,276

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Can you post the relevant lines of your maillog. If the message is received by the remote site, but never gets delivered then it's likely being eaten by a spam filter or similar. Many ISPs block all mail from residential IP address because most mail from those addresses comes from zombie Windows PCs infected with the virus-of-the-week. If you're using your home connection to send mail, it's likely some ISPs will block you. You can avoid this by relaying through your ISPs mail server using the SMART_HOST directive in sendmail.mc (remember to regenrate sendmail.cf from sendmail.mc).

If this is a local issue, something must be broken in local delivery. Please send usthe relevant section of your logs so we can see what is happening.
 
  


Reply

Tags
configurations, sendmail


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 config questions + Sendmail not reflecting changes to access db wbuik Linux - Networking 2 03-26-2009 06:02 AM
Sendmail ignores my sendmail smarthost entry Paul_assheton Linux - General 1 03-17-2009 08:55 AM
sendmail is not working & on $prompt the cmd sendmail hangs Pavan mahoorker Linux - Software 1 04-04-2006 04:57 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 12:47 PM
sendmail (dont just ignore it 'cause its got sendmail in the subject :P) GnomeKing Linux - Networking 1 11-12-2001 10:57 PM


All times are GMT -5. The time now is 04:57 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