LinuxQuestions.org
Help answer threads with 0 replies.
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-20-2005, 11:15 PM   #1
goonfui_wong
Member
 
Registered: Jun 2005
Posts: 37

Rep: Reputation: 15
How do setup and configure the SMTP (mailserver)


Hi,

Do you have any idea to setup and
configure the SMTP (mail system) in Linux RedHat 4?

I need some guildeline urgently.
I found from the internet but too many and difficult to follow the
instruction.

Do you have any summaries "recipe", to make the job easy.
Please share.

Thank you very much.

Regards,
Goon Fui
 
Old 06-20-2005, 11:34 PM   #2
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Please specify the SMTP server you wish to know more about. For the rest of this post, I will assume you use sendmail, thought I prefer Postfix.

SMTP server configuration is long and site-specific. I can't give you a magic recipie.
Have a look at
http://info.ccone.at/INFO/RH-sendmail-HOWTO/
http://www.sendmail.org/m4/readme.html

Also,
  • Please don't expect others to do all your work for you.
  • If you do not have a specific question, you won't get a specific answer.
  • Try something, ask a question if it does not work, not the other way round.
 
Old 06-21-2005, 02:17 AM   #3
goonfui_wong
Member
 
Registered: Jun 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Hi stefan,

Thank you for your guideline.

The project plan is to setup external mailserver (which SMTP) in
RedHat 4.

I'm really the newbie in Linux OS. I willing to learn it but I really need some
guildeline in here.

Currently, I'm doing some research and study how the SMTP work.
Base from your guildeline below.
Since you suggest Postfix? Could you please details more.

Hope you can guide me from the beginning step.

Thank you for advance.
 
Old 06-21-2005, 06:25 AM   #4
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Beginning step:
Get Postfix
http://www.postfix.org/

RPM's are avaliable from
http://www.rpmfind.net/linux/rpm2htm...mit=Search+...
http://rpmseek.com/rpm-pl/postfix.ht...fix:PN:0:0:0:0

When you say RedHat 4, do you mean RedHat Enterprise Linux 4? If so, it probably already comes with the rpm you need.
An rpm may already come with your distribution, check the cd's

Step two:
Read
http://www.postfix.org/BASIC_CONFIGURATION_README.html
http://www.postfix.org/STANDARD_CONF...ON_README.html

Step three:
Try it

Step four:
Ask for help if something does not work.

P.S.: I trust you know that you will also need a pop3/imap server to get your mail.
 
Old 06-21-2005, 09:58 PM   #5
goonfui_wong
Member
 
Registered: Jun 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Hi,

Thank you for your guilde.

The output from 'uname -a' from the production server.

Linux heartwave 2.4.21-15.ELsmp #1 SMP Thu Apr 22 00:18:24 EDT 2004 i686
i686 i386 GNU/Linux

I suppose 2.4.21-15.ELsmp, is the Linux version and has been installed.

Should I need webmin "webmin-1.210-1.noarch.rpm" package, which download from http://www.webmin.com/download.html.

In the previously, I'll try to seach the suitable Postfix from http://www.postfix.org/ but there are only the postfix source code available for download. Are there any package available? Kindly advise.

About RPM package for the Postfix.
Thank you for recommended the www site.
But I can't find the suitable package for Linux 2.4.21-15.ELsmp.
Which package is suitable for me? kindly advise

And finally, I'll need configuring a pop3/imap server to get mail.

Thank you.

Regards,
Goon Fui
 
Old 06-21-2005, 10:25 PM   #6
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Have you checked that no postfix packages are included with your redhat cd's?
I have checked on the RedHat web site, and they should be there.
When you look for rpm's, it is not the kernel, but the distribution that counts.
eg. RedHat Linux 4 with a 2.6 kernel will use the same packages as RedHat Linux 4 with a 2.4 kernel, but not the same packages as Mandriva 9.0 with a 2.6 kernel. You could look for packages for RedHat Linux on the internet, but they should be on your cd.

Webmin is a useful management interface. You don't "need" it, but it can help a lot.

There are many pop3/imap servers:
dovecot www.dovecot.org/
cyrus http://asg.web.cmu.edu/cyrus
courier http://www.courier-mta.org/imap/
many others...
 
Old 06-22-2005, 12:09 AM   #7
goonfui_wong
Member
 
Registered: Jun 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Question

Hi,

Thanks again,

Sorry, as I don't have the redhat CD now.

I check the Red Hat Enterprise release notes from the internet.
I found "postfix-pflogsumm" in packages list.

And can I also say that, once the "Linux 2.4.21-15.ELsmp"
was completely installed and postfix and the kernel-rpm should also installed.

But I hope and I should need to confirm the postfix and RPM.
Are there any command line that I can check for with?
e.g. "showrev -p" for solaris OS. but how about Linux?

I should ask this at the beginning.
As you say, you are prefer Postfix instead of other Mail servers,
may I know why? I check from the book -
"this free mail servr was designed with security in mind and executes most
function as an unprivileged user in a restricted chroot environment"
Is that the reason?

Thank you very much.

Regards,
Goon Fui
 
Old 06-22-2005, 12:39 AM   #8
goonfui_wong
Member
 
Registered: Jun 2005
Posts: 37

Original Poster
Rep: Reputation: 15
osp... I think I should able to check the postfix under the directory
"/etc/postfix".... or any other suggestion.


About the POP.

I check from the book to specify the Configuring POP.
It is only two steps, which Turn on the POP service and Start the POP service.

As the previous reply, there are many pop3/imap servers.
dovecot, cyrus, courier and so on.
Should I need to download the software and configure it? or
there have the existing POP in Linux.

And what are the criteria for me to choose POP or IMAP?



Thanks
 
Old 06-22-2005, 03:58 AM   #9
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
check for /etc/postfix and /usr/sbin/postfix

I suggested postfix because it is by far easier to configure than sendmail, qmail and exim. It is also more secure than most of these.

I don't know what pop server you should use. I only use dovecot because it was the default when I set up my own mail server. Your system's default should be fine.

POP3:
The client downloads mail from the server and keeps it on its hard drive.

IMAP:
The mail is always kept on the server, the client just views it.
 
Old 06-22-2005, 08:13 AM   #10
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
If you were just wondering if postfix was installed using RPM, try:

rpm -qa |grep -i postfix

This queries the rpm database for installed packages.
 
Old 06-22-2005, 09:38 PM   #11
goonfui_wong
Member
 
Registered: Jun 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Hi,

How can I check the default pop when I set up the mail server?

Thank you.
 
Old 06-23-2005, 05:13 AM   #12
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
You can't really. All you can do is something like 'rpm -qia |grep pop'. I know it does not help much. You could also read the documentation, or search for specific pop server packages on your system, and see if you have them.
 
Old 06-23-2005, 07:27 AM   #13
goonfui_wong
Member
 
Registered: Jun 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Hi,

That toooo bad!!

I can't find /etc/postfix and also /etc/dovecot.... in my linux box
grep nothing when using "rpm -qa |grep -i postfix" .....

However, I found /etc/mail/sendmail.cf .... so I force to choose Sendmail
this time.

And I follow the guideline, which provided in
http://www.brennan.id.au/12-Sendmail_Server.html

I was just did some editing the sendmail.mc file, as below:

define(`confDOMAIN_NAME', `linux.com')dnl
FEATURE(`relay_entire_domain')dnl
dnl FEATURE(`accept_unresolvable_domains')dnl

And I run the "m4", Cannot open /usr/share/sendmail-cf/m4/cf.m4?

% m4 /etc/mail/sendmail.mc /etc/mail/sendmail.cf

/etc/mail/sendmail.mc:10: m4: Cannot open /usr/share/sendmail-cf/m4/cf.m4: No such file or directory

Kindly advise
===========================

And I get the "dovecot-stable-latest.tar.gz" from http://www.dovecot.org/nightly/stable/

I follow the installation guilde

./configure
make
sudo make install

I run this under the /tmp/Dovecot/dovecot-1.0-stable directory.

And I did edit /etc/dovecot.conf
protocols = imap imaps
login = pop3
login_executable = /usr/libexec/dovecot/pop3-login

But when I "chkconfig --level 345 dovecot on"
"error reading information on service dovecot: No such file or directory"

Help need!!!
 
Old 06-23-2005, 11:49 AM   #14
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Quote:
/etc/mail/sendmail.mc:10: m4: Cannot open /usr/share/sendmail-cf/m4/cf.m4: No such file or directory
Is the file there?
Have you done 'make -C /etc/mail'

Quote:
But when I "chkconfig --level 345 dovecot on"
"error reading information on service dovecot: No such file or directory"
Is there an init script? /etc/init.d/dovecot
if not, you will need to write/find one.
If you install a dovecot rpm, it should include this script.
 
Old 06-23-2005, 09:12 PM   #15
goonfui_wong
Member
 
Registered: Jun 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Hi stefan_nicolau,

Thank you for your reply.
I don't have the installation cd. But I need to set up a mailserver in the
customer site.

And the worse is I can't find the postfix in /etc/postfix and also grep nothing when using "rpm -qa |grep -i postfix"

This is why sendmail is only choose... for quick set up.

I follow the guideline, which provided in
http://www.brennan.id.au/12-Sendmail_Server.html

I was just did some editing the sendmail.mc file, as below:

define(`confDOMAIN_NAME', `linux2u.com')dnl
FEATURE(`relay_entire_domain')dnl
dnl FEATURE(`accept_unresolvable_domains')dnl

... domain name say: linux2u.com

I'm create a use call "kodak" in /etc/passwd file
kodak:x:501:501::/home/kodak:/bin/bash


try to send mail to kodak.
[root@myheartwavedev mail]# mail kodak
Subject: testing
test test test
Cc: kodak

[root@myheartwavedev root]# su - kodak
[kodak@myheartwavedev kodak]$ mail
No mail for kodak
[kodak@myheartwavedev kodak]$

Are there anything when I set up the sendmail server?

Kindly advise
 
  


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
How to setup and configure the SMTP (mailserver system) goonfui_wong Linux - Newbie 1 06-21-2005 12:36 AM
how to configure a mailserver ? balki Linux - Networking 4 10-21-2004 08:54 AM
how to configure a linux mailserver with spamfilter ? balki Linux - Networking 3 08-02-2004 04:42 PM
How to configure senmail as mailserver for Redhat Linux 9? learn25 Red Hat 1 02-23-2004 02:13 AM
How to configure a redhat 9.0 mailserver in a graphical interface sunnyvic Red Hat 2 10-18-2003 10:20 PM


All times are GMT -5. The time now is 06:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration