LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-23-2004, 08:20 AM   #1
Hendon
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Rep: Reputation: 0
Desperate to get ANY mail server up on RH9 (Shrike)


Ok, I've tried almost everything I could. Here's what I've done for the past FIVE DAYS(actually more). Honestly, I just want a very very very SIMPLE mail server for a company of about 20? I don't care how but I just want communication to go through, after that I can start reading up more. Is there a good guide around? One that tells me from scratch how I set it up? Including DNS if I ever need. My supervisor says we don't need DNS(currently not connected to the net). They have an NT machine that's running a mail server but I'm doing up one more on linux. Please help.

20/12/2005 Monday

Configured different groups to be under /sbin/nologin. Individual users are stored in /bin/bash. This is to increase security and unauthorized logins.

Installed and configured squirrelmail for mail access through the web for travelling folks. Tried too many steps intermittently and got lost. Mail server couldn¡¦t work still. Different guides seem to say different things, got confused and removed all settings, going to start on just one guide at a time and see if it works out.

Removed sendmail, squirrelmail, and imap. Doing a reinstall. However, can¡¦t seem to find /etc/sendmail anymore. The new sendmail directory is at /etc/mail/sendmail. Postfix also got automatically installed when uninstalling the whole mail server RPM package. Uninstalling postfix and reinstalling sendmail, squirrelmail and imap to start all over again.

Undid all my settings that I configured. Including edits to sendmail.cf (Deleted the whole file and set back to default), the named(dns) service(added the configuration back with chkconfig ¡Vadd named), sendmail.mc(Deleted the whole file and set back to default), the aliases file(Deleted the aliases for pcmanagement.com), and the xinetd.conf (Removed the pop3 line). Also kept a backup of sendmail.cf and sendmail.mc just in case.

21/12/2005 Tuesday

PS: Left out the error message on Monday 20/12/2005: The connection to the server has failed. Account: 'terrapin', Server: 'terrapin', Protocol: POP3, Port: 110, Secure(SSL): No, Socket Error: 10061, Error Number: 0x800CCC0E

Read through the article on setting up a mail server again. I did some research at home but did not manage to save all the pages as there was simply too much information out there. I just managed to save some that I thought was useful. There are several terms or theories that I sometimes don¡¦t understand while reading the articles, so usually I¡¦ll write them down and put my questions on a linux internet board when at home, and then check back for answers the next day when I return home.

Meanwhile, my book ¡§Sendmail for linux¡¨ is still on hold because I couldn¡¦t manage to get it at white sands library. However, I asked my friend to help me check for copies at Tampines and Cheng San Library. Read up on Koha. Will go home and find out if it is possible to install Koha on Windows such that even the Z39.50 client for downloading bibliographic records work too. (Maybe through an updated version of Koha)

Setting up EXIM 4.x as the MTA and either BitDefender/Mailscanner as the anti-virus solution. I¡¦m hesitant to use EXIM as I¡¦m not familiar with it until yesterday while searching the net but this is the only solution that I know of now, until I find out more or get the book on sendmail fast.

Discovered that sendmail-cf (configuration file) was not installed. Installing sendmail 8.12 instead of the latest version to test first. The guide that I have is quite dated so I¡¦m afraid of downloading latest versions that are not compatible with the guide (just like the /etc/sendmail and /etc/mail confusion). Only after I manage to get it work will I update it to the latest version which is fully patched. (Or have security flaws not exposed YET.)

Edited the line from sendmail.mc so that mails can be received even outside of the local network
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
to this:
dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl



Regenerate the configuration file:
m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

Added the following line to the /etc/hosts.allow file:
sendmail: ALL

Error Message From Client: The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'client@pcmanagement.com'. Subject 'asdf', Account: 'terrapin', Server: 'terrapin', Protocol: SMTP, Server Response: '450 4.7.1 <client@pcmanagement.com>... Relaying temporarily denied. Cannot resolve PTR record for 192.168.1.2', Port: 25, Secure(SSL): No, Server Error: 450, Error Number: 0x800CCC79

I suspect the error is server based rather than client based, might try switching the client mail to thunderbird.

Tried to telnet into port 25 of server from client. Successful, but it doesn¡¦t say anything except these:

220 localhost.localdomain ESMTP Sendmail 8.12.8/8.12.8; Tue, 21 Dec 2004 14:15:5
9 +0800

HELP
214-2.0.0 RSET NOOP QUIT HELP VRFY
214-2.0.0 EXPN VERB ETRN DSN AUTH
214-2.0.0 STARTTLS
214-2.0.0 For more info use "HELP <topic>".
214-2.0.0 To report bugs in the implementation send email to
214-2.0.0 sendmail-bugs@sendmail.org.
214-2.0.0 For local information send email to Postmaster at your site.
214 2.0.0 End of HELP info
MAIL
501 5.5.2 Syntax error in parameters scanning ""
mail from
501 5.5.2 Syntax error in parameters scanning ""
MAIL from
501 5.5.2 Syntax error in parameters scanning ""
help mail
214-2.0.0 MAIL FROM: <sender> [ <parameters> ]
214-2.0.0 Specifies the sender. Parameters are ESMTP extensions.
214-2.0.0 See "HELP DSN" for details.
214 2.0.0 End of HELP info
rcpd
500 5.5.1 Command unrecognized: "rcpd"
RCPT
503 5.0.0 Need MAIL before RCPT
test
555 5.5.4 test parameter unrecognized
MAIL FROM: 192.168.1.2
553 5.5.4 192.168.1.2... Domain name required for sender address 192.168.1.2
MAIL FROM: client@pcmanagement.com
250 2.1.0 client@pcmanagement.com... Sender ok

Played around a bit more with telnet and gave up. Figured that I should get the system up on a client mail program rather than telnet.

The connection to the server has failed. Account: 'terrapin', Server: 'terrapin', Protocol: POP3, Port: 110, Secure(SSL): No, Socket Error: 10061, Error Number: 0x800CCC0E
Wednesday 22/12/2004

Encountered some write problems on the client¡¦s(Windows 98) C drive. Did a scandisk and client is operating as usual, except that during startup, scandisk keeps starting and I have to cancel it. Possible bad sectors?

Spent some time compiling sendmail parameters.

Configured Relay Domains on sendmail. Added localhost, 127., pcmanagement.com, 192.168.1., 192.168.1.1 and 192.168.1.2.

Set up a test mail alias with address hendon and alias to hendon@pcmanagement.com

Changed the hostname Terrapin to localhost, as compiling sendmail gives me the below error.

# /usr/sbin/sendmail ¡Vd0.1-bt < /dev/null
Version 8.12.8
Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGED MATCHGECOS MILTER MIME7T08 MIME8T07 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SASL SCANF STARTTLS TCPWRAPPERS USERDB USE_LDAP_INIT

==========================SYSTEM IDENTITY (after readcf) ========================
(short domain name) $w = terrapin
(canonical domain name) $j = terrapin
(subdomain name) $m = <null>
(node name) $k = terrapin
============================================================================

WARNING: local host name (terrapin) is not qualified; fix $j in config file

#hostname localhost (Default installation on RH9)

# /usr/sbin/sendmail ¡Vd0.1-bt < /dev/null
Version 8.12.8
Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGED MATCHGECOS MILTER MIME7T08 MIME8T07 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SASL SCANF STARTTLS TCPWRAPPERS USERDB USE_LDAP_INIT

==========================SYSTEM IDENTITY (after readcf) ========================
(short domain name) $w = localhost
(canonical domain name) $j = localhost.localdomain
(subdomain name) $m = localdomain
(node name) $k = localhost
============================================================================

PS: The ones in red are mandatory. I already have all the mandatory services inside sendmail.

Created MX references like localhost, localhost.localdomain, pcmanagement.com, terrapin and terrapin.com

DNS master zone as pcmanagement.com
„³ mail server as alex.pcmanagement.com TTL ¡V Default Priority 1 Mail server localhost

Tried starting ipop3d and imap services through xinetd. I got this error message.
Failed to apply changes : Failed to send HUP signal to PID 3418 : Inappropriate ioctl for device
There is no change in the xinetd.conf file either.

Added several trusted users like root, daemon, uucp and hendon.

Added 192.168.1.2, 192.168.1.1, 192.168.1 and hendon@ to the allowed list. These, on top of localhost, localhost.localdomain and 127.0.0.1

Thursday 23/12/2004

Updated Network Configuration:
IP Address: 192.10.1.10
Netmask: 255.255.255.0
Network: 192.10.1.0
Broadcast: 192.10.1.255
Hostname: email.pcmanagement.com
Primary DNS: 192.10.1.10

Verifying:
More /etc/sysconfig/network
More /etc/sysconfig/network-scripts/ifcfg-eth0

Configuring DNS:

Vi etc/named.conf.

zone "." IN {
type master;
file "db.root";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

Create all the available DNS zones.

Verify if DNS is installed:
more /etc/rc.d/init.d/named

Edited HOSTS file: and used 127.0.0.1 instead of
127.0.0.1 pcmanagement localhost.localdomain localhost

Last edited by Hendon; 12-23-2004 at 08:31 AM.
 
Old 12-23-2004, 10:02 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
i prefer qmail. if u want to try qmail, there is a good guide at www.qmailrocks.org .

good luck.
 
Old 12-23-2004, 12:45 PM   #3
dtournas
Member
 
Registered: Aug 2003
Location: Charlotte, North Carolina
Distribution: Red Hat (and look-alike), SUSE (when drunk), Slackware (when mad)
Posts: 148

Rep: Reputation: 16
Maybe the commercial solution isn't what you are looking for, but I have been using Bynari's Insight Server. It is really easy to install (rpm based) and even easiest to administrate (via any web browser).

You might want to check it!
 
Old 12-25-2004, 02:27 AM   #4
Hendon
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Ok, I've managed to get sendmail up. When I use outlook express, I can receive mails sent from the root(linux box) but I can't reply using outlook express. I get this error.

"The connection to the server has failed. Account: 'terrapin', Server: 'terrapin', Protocol: POP3, Port: 110, Secure(SSL): No, Socket Error: 10061, Error Number: 0x800CCC0E"

Any ideas what's wrong?
 
Old 12-25-2004, 03:23 AM   #5
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
does pop3 daemon works?
do
#netstat -an |grep tcp |grep 110

u must see a line like following:
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN

if u cannot see similar line, start the pop3d service.

good luck.
 
Old 12-26-2004, 03:09 AM   #6
Hendon
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Original Poster
Rep: Reputation: 0
How'd I go about starting the pop3d service? I'm using xinetd.
 
Old 12-26-2004, 07:17 AM   #7
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,290

Rep: Reputation: 62
If all else fails, download a copy of SME server 6.0. It's a full feature mail server that installs to the hard drive, it is easy to follow to set it up and also has a web-based interface. There is also a script that has been written for it that will setup and install anti-virus and anti-spam. It will also install secure email, (ssl Pop3,IMAP and SMPT) should take around 40-60 minutes to setup and have configured. Be happy to post the link and the script if your interested going that way.
 
Old 12-26-2004, 07:22 AM   #8
Hendon
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by fotoguy
If all else fails, download a copy of SME server 6.0. It's a full feature mail server that installs to the hard drive, it is easy to follow to set it up and also has a web-based interface. There is also a script that has been written for it that will setup and install anti-virus and anti-spam. It will also install secure email, (ssl Pop3,IMAP and SMPT) should take around 40-60 minutes to setup and have configured. Be happy to post the link and the script if your interested going that way.
I don't mind giving it a go if I can reverse the changes if anything goes wrong. Does it cost anything? Post the link and scripts(and any guides ahead)
 
Old 12-26-2004, 09:05 AM   #9
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,290

Rep: Reputation: 62
I put the links on another thread so i'll post the link here, I put a copy of the script there as well.

http://www.linuxquestions.org/questi...hreadid=267486

This will make a bootable iso, and will completely wipe the hard drive from any data. This a free version, Mitel orginal released a free beta version, Contribs.org took over the free version and started making there own from it. I think Mitel were not going to release any free versions any more.

Some advice would be to create .sh script file in linux only, don't try it with windows, if you use notepad or word, you will get errors running the script. You can try it in windows if you must, but just be aware you may get errors executing the script. You can name the script what ever name you want too.
 
Old 12-27-2004, 04:11 AM   #10
this213
Member
 
Registered: Dec 2001
Location: ./
Distribution: Fedora, CentOS, RHEL, Gentoo
Posts: 167

Rep: Reputation: 34
I agree with maxut. http://www.qmailrocks.org will get you set up and running in no time - with all sorts of extras.
 
  


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
Any good MP3 players for rh9/1- Shrike? netmechDB Red Hat 4 11-27-2005 03:12 AM
mail server RH9-postfix-squirrelmail hivtop Red Hat 8 04-12-2005 03:11 AM
setting up a mail server in rh9 ambelos Linux - Newbie 5 12-03-2003 10:50 AM
RH9-Shrike&iptables-->unbelieviable effect...ports are opened... pablovschby Linux - Security 4 10-03-2003 08:26 AM
RH9 Shrike Partionless Install hornokplease Linux - Newbie 4 08-04-2003 09:25 AM

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

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