LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Mail Server on RH ES Version 4 (https://www.linuxquestions.org/questions/linux-enterprise-47/mail-server-on-rh-es-version-4-a-330896/)

nisshelp 06-06-2005 11:57 AM

Mail Server on RH ES Version 4
 
I am trying to setup a postfix mail server on Redhat Enterprise Linux version 4. I would like to have Courier-IMAP, Courier-IMAP-SSL, Courier-Maildrop, Spamassassin & web a based mail system with good authentication. Any help will be appreciated.

The first problem I have encountered was, postfix works fine and it delivers mail to user home directories (Maildir), however when I send a mail from another machine within the same network, it does not work. I checked the firewall on the machine, port 25 is opened as well as 110, 143, 993 & 80. I had even tried to disable firewall but no luck.

RHELL 06-06-2005 11:58 PM

Do the DNS lookups and reverse lookups work?

nisshelp 06-07-2005 06:56 AM

Yes. DNS works and reverse lookups work just fine. Also I had installed postfix on RedHat version 9 and it does not have any problem.
Thanks,

Anuragn 06-07-2005 09:37 AM

help me for postfix delivering mails in maildir
 
hi

i am configuring postfix with courier-imap. my postfix is working fine accross the network but it is not delivering the mails in Maildir of user's home directory. Please suggest me the configuration options.

thanks
Anurag

nisshelp 06-08-2005 10:20 AM

Well... after all this troubles, I have finally figured it out. The problem I could not send mail to my machine from other machine was due to my mail server listening on the localhost (127.0.0.1) port. When you do a "lsof -i" or netstat will tell you this. So all I had to do was add just one line in the host table with the IP address and hostname.

That was it.

vivaspeed 07-03-2005 07:46 PM

Hi,

I've set up sendmail mailserver in Redhat Enterprise Linux version 4 and it work fine.
Due to the security issue, I plan to set up the Postfix mailserver to replace the
sendmail.

Since you have experience before can you give some guide?

Thank you very much.

nisshelp 07-05-2005 07:20 AM

Here are the software I have used:

Postfix (http://www.postfix.org/)
--------
Postfix is much better than Sendmail as far as the security is concerned and easy to configure. Get postfix version 2 or grater.

dovecot (http://www.dovecot.org/)
----------
Dovecot is a light weight IMAP & POP3 server (also imapS & pop3S) and it has great security features . It is easy to set up and doesn't require special maintenance. Only thing you need is to get the authentication working properly - if your users are in /etc/passwd there's hardly anything you have to do. You can also set up sasldb2 database and authenticate your users against it. Dovecot should be pretty fast. There are still some optimizations that could be done, but I believe it already beats most other IMAP servers in overall performance.

Mailman (http://www.gnu.org/software/mailman/)
----------
Use it only if you needed.

SquirrelMail (http://www.squirrelmail.org/)
--------------
Webmail software.

Spamassassin (http://spamassassin.apache.org/)
------------------
Spam filter software.

Openssl (http://www.openssl.org/)
----------

Get all these installed on your machine. Here are the ports you need to open using the firewall (iptable):

SMTP - 25
SMTPS - 465
HTTPS - 443
IMAPS - 993
SPAMD - 783

Modify /usr/lib/sasl2/smtpd.conf (choose your favorite authentication: auxprop or saslauthd)

Create SSL certificates for IMAP & SMTP (both private and certs keys)

Create SSL certificates for apache web (both ssl.key & ssl.crt)

Turn on all the services. Check your services using "lsof -i' & and check their ports using "netstat -an".

If you are using RH version 4, you can pretty much use the software that came with the system (unless you want the latest & gratest).

Hope it helps.


All times are GMT -5. The time now is 09:47 PM.