LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 10-06-2008, 03:45 AM   #1
Wheddod
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Rep: Reputation: 0
Question I am having issues trying to configure Postfix on RHEL5


Hi all i am trying to install Post fix on Redhat Linux. I have tried many things to get this working but all have been unsuccesful so far. Would anyone be able to help me, by telling me what information needs to be filled out and what doesn't. Please feel free to contact me via email as this would make things easier for both parties.

Many Thanks in Advance
Dan


Last edited by Wheddod; 10-06-2008 at 04:24 AM.
 
Old 10-06-2008, 04:07 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Take your email out of the post Dan, or you'll get spammed.

First, you need to tell us what you want to do with postfix, but you will also find a utility called system-switch-mail that you run from the command line as root to make postfix the active MTA under RHEL. Run this, and postfix will be the active mta

Also, make sure you read the basic setup info at www.postfix.org

Last edited by billymayday; 10-06-2008 at 04:01 PM. Reason: Typo
 
Old 10-06-2008, 04:34 AM   #3
Wheddod
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Hi Billy,
I am trying to use Post fix to relay internal emails to either our local Exchange server or to Message labs. I have tried running through the basic configuration setup but i think i have confused a couple of the fields (apologies about this i am still relatively new to RHEL5). Would you be able to help me with what fields need to be completed?
 
Old 10-06-2008, 04:50 AM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What do you maillogs say when you try to send mail?

What is your setup?

What is the output of "postconf -n"
 
Old 10-06-2008, 06:46 AM   #5
Wheddod
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Hi again billy, here is the output from postconf -n

# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = localhost
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = ngw.uk.com
myhostname = Danlinux.ngw.uk.com
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

Many Thanks
Dan
 
Old 10-06-2008, 04:06 PM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What is your physical setup?

The simple issue is the "inet_interfaces" variable, but how to fix it without making yourself an open relay depends on your setup.

This tells postfix what interfaces to listen on, so at the moment it is only listening on localhost.

The second issue will be to tell postfix which clients to trust and how to do that.

Easy to fix, just need some more info.

Last edited by billymayday; 10-06-2008 at 04:09 PM.
 
Old 10-07-2008, 04:39 AM   #7
Wheddod
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Hi Billy,
I think that i understand what you are saying about the inet_interfaces. I have now added 10.32.0.0/16 (ip addresses here start 10.32). How would i tell postfix which clients to trust, would this be where the transport file comes in to play?
Thanks in Advance.
 
Old 10-07-2008, 04:48 AM   #8
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
No, not transport.

What's your setup (as in how many NICs, IPs, etc)
 
Old 10-07-2008, 05:08 AM   #9
Wheddod
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quite a simple setup, X86 machine with RHEL5, with one nic, one IP address, no firewalls on an office LAN
Many Thanks
Dan

(apologies if that isn't the right information, also i really appreciate your help)

Last edited by Wheddod; 10-07-2008 at 05:14 AM.
 
Old 10-07-2008, 05:51 AM   #10
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
The standard approach would be to have 2 NICs, listen on both but only relay from one.

That clearly won't work here, but two ways to deal with it.

First, you could use authentication, so clients give a password to the smtp daemon to relay mail. The Postfix site has a number of howtos for SASL authentication (you shouldn't need TLS on an internal LAN). You will need to leave inet_interfaces at the default (comment it out).

Second, if you use private IPs (class A/B/C), then if you can ensure that no spoofed addresses can get in (ie by your external firewall dropping any such packets) you can allow relaying for local IPs. In this case you would also set mynetworks to the default (ie comment it out).
 
  


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 configure the dns server in rhel5? priyank123 Linux - Server 2 10-02-2008 10:35 AM
mail server postfix with mysql at rhel5 rajinfokiit Linux - Newbie 2 09-09-2008 04:23 AM
Postfix: help required to configure postfix to redirect email. Wheddod Linux - Software 3 08-20-2008 07:55 AM
I want to configure RHEL5 as a router using two NICs vijay.gulge Linux - Networking 3 04-10-2008 08:50 AM
How to configure Clustering in RHEL5 alokaryan Linux - Newbie 2 03-28-2008 05:14 AM


All times are GMT -5. The time now is 12:29 AM.

Main Menu
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