LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-13-2003, 09:10 AM   #1
piglingz
LQ Newbie
 
Registered: Feb 2003
Posts: 24

Rep: Reputation: 15
Post E-MAIL server for RedHat 8 linux


HI Gurus

I'm looking into hosting my own email server. I've already got a domain name. Now, is there any free Mail servers out there for RH8? I would like it to be a fully functional email (sending, receiving from mail-clients) . Thank you much.

Eric
 
Old 03-13-2003, 09:17 AM   #2
TechBrat
LQ Newbie
 
Registered: Mar 2003
Distribution: Redhat7.x/8.x/FreeBSD4.x
Posts: 19

Rep: Reputation: 0
Erm...quick reply...very tired... |/

RH8 comes with sendmail, qmail and postfix - all free mail servers. By default sendmail is installed.

RH8 also comes with cyrus (I believe) which is the POP3/IMAP component allowing you to connect an Outlook (eg) style client to the server to get and send email.

Pine can be used from the console as the email client.

For webmail, you'll most likely need apache, php and something like squirrelmail.

Have you read the install documentation of RH8 or even stepped through the install process as I would have thought that it would be quite clear during the installation process that it can function as a fully capable mail server?

TechBrat Out.
 
Old 03-13-2003, 01:17 PM   #3
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
First get a copy of the O'Rielly book "Sendmail". Then begin pulling hair from your head. Once you reach the last hair, your mail server will be up and running..:-)
 
Old 03-13-2003, 09:36 PM   #4
SchoolITguy
Member
 
Registered: Oct 2002
Posts: 57

Rep: Reputation: 15
I wouldn't use send mail, we are using it now and have a lot of problems with it. Not very secure. We have a test server running postfix and ipop3 (I think) for the pop server. It is working great!
 
Old 03-14-2003, 12:04 AM   #5
TechBrat
LQ Newbie
 
Registered: Mar 2003
Distribution: Redhat7.x/8.x/FreeBSD4.x
Posts: 19

Rep: Reputation: 0
SchoolITguy,

Totally agree. We're running a few domains with approximately 1000 users on one and sendmail is a dog for management and configuration!

I'm also using PostFix (with mysql virtual mail integration) and it has been unbelievably easy to manage and customise. It's also damn fast and can use mail directories rather than mail files. When using IMAP, mail folders (separate files for each email) is considerably faster than the single mailbox file used by sendmail.

TechBrat Out.
 
Old 03-14-2003, 05:40 AM   #6
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Qmail is an option.

See http://web.infoave.net/~dsill/lwq.html
 
Old 03-14-2003, 06:55 AM   #7
Gahan
LQ Newbie
 
Registered: Feb 2003
Location: Purmerend, The Netherlands
Distribution: RH7.3, RH8.0
Posts: 10

Rep: Reputation: 0
Hi, like others here I would suggest Postfix to use. Secure and fairly easy to configure. There are no known security issues with Postfix.

For IMAP/POP3 you can use UW IMAP/POP3 which are on the RH8.0 cd's, they are sufficient, but maybe Cyrus is good too (have no experience with Cyrus). Squirrelmail is good voor webmail!
 
Old 03-14-2003, 07:34 AM   #8
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 458

Rep: Reputation: 42
Personally I find sendmail is fine and very easy to use. Just keep it updated. It is true that redhat, for all I admire them, has broken sendmail. Please see the sendmail FAQ concerning Redhat. Nothing that is not easily fixed however with the default rpm.

Other than that, it is a matter of setting up a few files in /etc/mail of which the most important for me are access, local-host-names, and relay-domains. Note of course that the names and location could differ, but are specified in sendmail.cf, which is an ascii file and thus easily editable with vi or your favourite editor (although I believe these are the default names with at least RH7.3).
 
Old 04-03-2003, 12:07 PM   #9
Von Paulus
LQ Newbie
 
Registered: Feb 2002
Posts: 5

Rep: Reputation: 0
So am I right in thinking that postfix needs thys cyrus add-on in order to allow pop3 clients (such as outlook/express) to access local mail?

What do I need to tell my ISP with regards to redirecting my john.doe@mydomain.net emails to a local server (in my home/office) .

Will Postfix then take e-mails created on said clients, and then fire them out to the world (or via my ISP?)

Can anyone point me to a HOWTO for any of this?

As you can see, i am keen to set-up a home e-mail server with multiple clien access (we have a combination of Linux & Windows ethernet & wireless).
 
Old 04-03-2003, 01:00 PM   #10
Gahan
LQ Newbie
 
Registered: Feb 2003
Location: Purmerend, The Netherlands
Distribution: RH7.3, RH8.0
Posts: 10

Rep: Reputation: 0
Quote:
Originally posted by Von Paulus
[B]So am I right in thinking that postfix needs thys cyrus add-on in order to allow pop3 clients (such as outlook/express) to access local mail?
You can have the IMAP/POP3 functionality with Cyrus but there alternatives too like UW-IMAP and probably others.

Quote:
What do I need to tell my ISP with regards to redirecting my john.doe@mydomain.net emails to a local server (in my home/office) .
It is very crucial that your ISP, at least for full mailserver functionality can deliver mail to you by SMTP (instead of pop3). Ask your provider. If possible your provider should mailkick your mail to your IP adres so your mailserver can receive it on port 25 (this is for SMTP). If that's not possible (which could be likely if you have a somewhat standard ISP), maybe you could use fetchmail to get your mail with POP3.

Quote:
Will Postfix then take e-mails created on said clients, and then fire them out to the world (or via my ISP?)
If configured correctly: Yes!

Quote:
Can anyone point me to a HOWTO for any of this?
Use Google and read in on MTA, MDA, MUA, SMTP, POP3, networking and Postfix. AFAIK there's no HOWTO that covers it all from scratch, unless you're willing to plough through the various RFC's on these subjects.
 
Old 04-04-2003, 05:05 AM   #11
Von Paulus
LQ Newbie
 
Registered: Feb 2002
Posts: 5

Rep: Reputation: 0
Gahan,

Thank you, that was a very comprehensive answer.

Do you have preferences between cyrus & UW-IMAP?

PV
 
Old 04-04-2003, 08:15 AM   #12
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 458

Rep: Reputation: 42
Do you just have a domain name or is this associated with an IP. What does nslookup -querytype=MX mydomain.net show you? If your domain name is associated with an internet IP and that IP is assigned to your computer you should not even have to involve your ISP. A direct connection should be made.

EXAMPLE: I have a domain name assigned through dyndns.org. This is updated whenever my assigned IP is changed by my ISP. Mail to this domain name is sent directly to me. If my computer is not online, the mail is queued by the sender, and then sent when I am back up and the DNS for my domain name is updated (which occurs automatically). The only potential problem would be if for some chance there is another linux box running a mailserver accepting connections from the outside world which happens to be assigned my last registered IP. My ISP is small with few if any linux users so this has not been a problem (yet). Ah, and some broken systems do not always properly queue mail if the host cannot be reached, notably aol.com, which can result in the mail being returned to sender.

This strategy of course requires an ISP that provides full internet capabilities, and which does not filter incoming traffic (i can provide my own security, thank-you very much). One reason I am still on dialup is that all the inexpensive broadband packages in my neighborhood provide a modem/router that assign local IP addresses (i.e. in the 192.168 range) which do not allow a person to get here from there, not ready to spring for the $120/month speakeasy package.
 
Old 04-05-2003, 10:54 AM   #13
Von Paulus
LQ Newbie
 
Registered: Feb 2002
Posts: 5

Rep: Reputation: 0
This is what I got from dig. As you can see, I am using dyndns custom service to name server my own domain vallack.net.
I have not done anything on dyndns ith regards to the MX record yet (there is an option to add a record with the MX type, but I am not sure what it does).
Does this mean that anything sent to Blah.Blah@vallack.net will be redirected to my routers IP address? If so, is all I need to do is make sure my router re-directs port 25 to my Linux box running postfix? I suspect that it cannot be that easy!

I have just done a little test on my linux box, and it seems to send out mail magically. I simply did "mail A_HOTMAIL_ACCOUNT@hotmail.com" and hey presto the mail arrived!!
I guess this was using sendmail. Can I get and send via a local mail client (POP3) to sendmail?

Regards & thanks for this great info thread

Paul
[pvallack@mandrake pvallack]$ dig vallack.net MX

; <<>> DiG 9.2.1 <<>> vallack.net MX
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26004
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;vallack.net. IN MX

;; AUTHORITY SECTION:
vallack.net. 1688 IN SOA ns1.mydyndns.org. zone-admin.dyndns.org. 2002121707 10800 1800 604800 1800

;; Query time: 2 msec
;; SERVER: 192.168.0.5#53(192.168.0.5)
;; WHEN: Sat Apr 5 17:46:27 2003
;; MSG SIZE rcvd: 99

Last edited by Von Paulus; 04-05-2003 at 11:30 AM.
 
Old 04-05-2003, 04:54 PM   #14
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 458

Rep: Reputation: 42
No, you don't really need an MX record, without it mail is simply delivered to the IP itself. dyndns.org has a reasonable discussion of what an MX record does and when it is useful.

I wish I could help with w/the router configuration, but I can't. As I said, I've kept on my full service yet slow dialup internet service in part because my computer is thus assigned the outside IP address without messing with DHCP. It is the router for the rest of my computers. That said, I do suspect the ease and even the ability to modify router behaviour is system dependent. DSL is my town is provided by QWEST often from MSN and they supply broken routers which are basically non-configurable. . not interested. Being curious I discover that port forwarding on a "real" fully functional router is probably as easy as it is on this linux box when I forward certain ports internally to computers on my home LAN. I hope you have one of those routers, and that they don't filter packets further on down the line at your ISP. A traceroute to your IP endbthg305.imsnet2.btopenworld.com, which could just mean your computer is not on line or could be filtering. For the sake of it I also sent test mail to you (root@) just in case your router blindly forwards everything to a potential open port, but for now it sits in my queue.

Anyway, the takehome message of this verbose messages is to investigate your router next. Good Luck!!
 
Old 04-08-2003, 09:14 AM   #15
Gahan
LQ Newbie
 
Registered: Feb 2003
Location: Purmerend, The Netherlands
Distribution: RH7.3, RH8.0
Posts: 10

Rep: Reputation: 0
Quote:
Originally posted by Von Paulus
Gahan,

Do you have preferences between cyrus & UW-IMAP?

PV
Nope, UW-IMAP came pre-installed with my RH 7.3 setup so I went with that. Haven't compared them I'm afraid...
 
  


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
redhat as webserver, ftp server, Mail server, firewall ineth Linux - Newbie 1 09-10-2005 08:14 AM
Configuring SEnd mail as Email server in Redhat Linux 8.0 ganeshrk Linux - Networking 0 01-31-2004 04:02 AM
Learning Linux RedHat 7.0 - mail and firewall server Jorge_Beteta Linux - Newbie 1 09-18-2003 03:27 PM
Can anyone suggest me a good and free web mail software on redhat linux server? mimi Linux - Networking 1 07-09-2002 08:30 AM
RedHat 7.1 linux intranet mail server keshava Linux - Networking 1 01-21-2002 04:25 AM

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

All times are GMT -5. The time now is 10:21 AM.

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