LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-04-2005, 09:04 AM   #1
hivtop
Member
 
Registered: Jan 2005
Location: In the Desert
Distribution: RedHat 9
Posts: 33

Rep: Reputation: 15
Question mail server RH9-postfix-squirrelmail


could someone point me to a "How To" !!! for setting up a mail server using redhat 9, postfix and squirrelmail.

This is my first attempt at setting up a web server. Everything is working fine!!! Apache, MySql, DNS, Bind, perl, php ftp(some adjustments still needed here ), shopping carts, BBs, phpclassifieds, etc.

All 5 websites/domains are up and running well!!!

I can not seem to get the mail working, coming OR going.

I would like to have postfix as the server and squirrelmail as the webmail interface, pop/smtp for the two people who use Outlook. There is only a dozen or so users on 5 domains and a couple of subDomains (I need mailboxes for same user name, but different domains).

Sendmail was sending out web form/page mail but I uninstalled it to install postfix, now NO mail is going out.

Any help would be great!!!

hivtop

PS.. Can Not Change OS..... it is a Dserver. I have total root access, but not physical access and it would cost $150 to change OS + putting the sites backup.
 
Old 04-04-2005, 09:09 AM   #2
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
on the redhat-site you should find something to setup postfix correctly.
in general i think itīs never good to uninstall sendmail, better install your preferred mailserver and link the īsendmail-filesī to your servers files, in this case postfix.
why donīt you use a more newer distro (e.g. FC3)?
 
Old 04-04-2005, 09:10 AM   #3
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
Re: mail server RH9-postfix-squirrelmail

Quote:
Originally posted by hivtop
PS.. Can Not Change OS..... it is a Dserver. I have total root access, but not physical access and it would cost $150 to change OS + putting the sites backup. [/B]
OK ;-)
 
Old 04-04-2005, 10:50 AM   #4
hivtop
Member
 
Registered: Jan 2005
Location: In the Desert
Distribution: RedHat 9
Posts: 33

Original Poster
Rep: Reputation: 15
Could not find anything on the redhat site. rh9 no longer supported and getting around arcives is to confusing for me, without a link to start from (search was no help)...

postfix would not run/bind to port 25 with sendmail running and I did not know how to work around that.
 
Old 04-05-2005, 01:01 AM   #5
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
http://www.redhat.com/support/resour...WTO/book1.html
http://www.redhat.com/support/resour...FAQ/book1.html
http://www.postfix.org
 
Old 04-09-2005, 08:49 AM   #6
hivtop
Member
 
Registered: Jan 2005
Location: In the Desert
Distribution: RedHat 9
Posts: 33

Original Poster
Rep: Reputation: 15
OK I uninstalled the first postfix and installed a new one.

I read all the books & followed the RH "how to" but still I can not get the server to receive mail or send mail, even from a web form or php scripts that were working with sendmail (befor I uninstalled sendmail as per the redhat directions).

I host 5 websites on a dedicated server with a doz or so users. Postfix IS running.
OS=Redhat 9 (no, I can not change OS without a $150 cost), apache 2.0.40, postfix 2.1.5-7.rh9, squirrelmail 1.4.0

I would like to have postfix for pop mail and squirrelmail for web mail access.

following is my /etc/postfix/main.cf file

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = my.hostname.com (real server HostName (dns name) is Here, not one of the domains)
mydomain = hostname.com (real HostName is Here)
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
mynetworks = my.ip.add.res/28, 127.0.0.0/8
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
home_mailbox = Maildir/
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail
header_checks = regexp:/etc/postfix/header_checks
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2
debug_peer_list = 127.0.0.1
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = /usr/share/doc/postfix-2.1.5-documentation/html
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix-2.1.5-documentation/readme
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases

Would someone PLEASE tell me what the H*ll I am doing wrong or not doing. this is the last thing I need to have the server complete and working right.

OR if there is a better way to get the mail working the way I need, that I do not know of (some other Daemons, a good name for server programs ) Please tell me how You did it.

hivtop
 
Old 04-11-2005, 01:14 AM   #7
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
hi hivtop,
where do you hang?
any error messages?
does local mail function?
 
Old 04-11-2005, 06:34 AM   #8
hivtop
Member
 
Registered: Jan 2005
Location: In the Desert
Distribution: RedHat 9
Posts: 33

Original Poster
Rep: Reputation: 15
Hi overlord73
>where do you hang?
Mostly on my 58 acers in the sunny High Desert of Southern California... as to the postfix program, It does not >hang, it is up and running.
any error messages?
No error messages in any logs.. and it is not sending mail so there is nothing in the postmaster box
>does local mail function?
Do not have "X" access and I do not know how to send mail locally without it. Postfix will NOT send a, "sendmail type" of request, even from a php or cgi script. so I am at a loss.

I have been playing with this for 3 months and can not get it to work right. I have tried "Vboxes", vertual lists and just about everything I can find to read.

Like Jimmy Buffett sings... "Like the jitterbug, it totally alluds me"...

it's almost to the point of not being fun...
 
Old 04-12-2005, 03:11 AM   #9
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
Iīm sorry that I canīt help you more....Iīm not so familiar with postfix (currently running exim) and my postfix-books are at home....but Iīll do my best ;-)
from console you could use pine or mutt as a mailclient.
or simply via SMTP-commands:

#telnet localhost 25
-> welcome message 220 .... should appear
#HELO host.domain.tld
-> 250 ....
#MAIL FROM: addy@domain.tld
#RCPT TO: addy2@domain.tld
#DATA
īmessageī
(end with a . in new line)
#QUIT
 
  


Reply



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
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 6 09-23-2019 10:09 PM
mail server RH9-postfix-squirrelmail hivtop Linux - Newbie 1 04-05-2005 01:24 PM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 02:43 PM
Postfix 2.0 and squirrelmail 1.5.0 error when send mail ley Red Hat 0 07-09-2004 02:04 AM
Postfix mail server not accepting incoming mail from the external interface rexmundi Linux - Networking 7 12-22-2003 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:00 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
Open Source Consulting | Domain Registration