Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-27-2004, 02:17 PM   #1
LQ Newbie
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
How to setup postfix on Fedora

I'm stumped. I want to use Postfix on redhat/Fedora Core, but am not having much luck. I can send mail, but can't receive it and I can't tell why. I wish it were just the firwall, but it isn't blocking connections to port 25.

What I want:
My new server is to be used for hosting a small number of virtual websites and email accounts. I want my 5-10 remote users to be able to access their mail on the server using IMAP.

What I can do:
I can telnet to localhost port 25 on the machine and all is well
I can send mail from localhost
Receive mail sent to a local user from localhost
See no dropped packets in var/log/messages
See imap logins in the maillog every 3 minutes

What I cannot do:
receive any outside mail
telnet to IP address, host.dominname, FQDN or domainname on 25

I think this is a virtual mail/destinations issue, but can't tell.

Any other clues would be much appreciated.

Old 04-28-2004, 11:02 PM   #2
Registered: Mar 2002
Location: Houston
Distribution: FC3, Manrake 10.x, various others at times
Posts: 113

Rep: Reputation: 18
You've probably already done this, but just to be sure: Red Hat (and Fedora) default to Sendmail (or at least used to), so you might need to run redhat-switch-mail to switch to Postfix.

That out of the way, I'm no Postfix guru, but I do have a few notes on what I did. I think that the above, editing /etc/postfix/aliases, running postalias, editing /etc/postfix/, and restarting postfix were all that I did.

Among other things in that look like they might be needed I:

changed this: mydestination = $myhostname, localhost.$mydomain
to this: mydestination = $myhostname, localhost.$mydomain, $mydomain

defined "mydomain" and "myhostname"

changed this: inet_interfaces = localhost
to this: inet_interfaces = all

and defined mynetworks like this: mynetworks =,
where the 192 network above is the one that my boxes are all on.

Probably something like one of the above changes followed by a "service postfix restart" will do it, though as I say I'm not a Postfix expert.


Old 05-08-2004, 12:19 PM   #3
LQ Newbie
Registered: May 2004
Location: London, England
Distribution: Fedora Core 1
Posts: 3

Rep: Reputation: 0
I'm in the middle of trying to set up an email solution using Postfix on FC1 too. I was getting all ready to install Postfix from scratch, and overwrite the default sendmail installation, when I spotted people talking about this 'redhat-switch-mail'. So I've used that to switch over to Postfix, and it seems to be working.

However, I was wondering what exactly redhat-switch-mail does when it switches from sendmail to Postfix (or the other way around!). While it's great that we have utilities like redhat-switch-mail, I'm always a bit wary of relying on graphical programs and not really understanding what's going on under the hood. So, just to satisfy my curiosity, what would I have to do to 'switch' from sendmail to Postfix manually at the command line?

Specifically: what config files need to be changed to switch between MTAs? Something in xinetd so that the correct mail programs are invoked? What else? And what does redhat-switch-mail do with the sendmail binaries? Does it just back-up the sendmail versions and overwrite them with the Postfix versions, or does it do something more sophisticated?

Yes, I'm a newbie.


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
Postfix setup help Charles Daniel Linux - Security 4 10-31-2004 12:24 PM
Postfix setup vladimir-dk Linux - Newbie 9 04-20-2004 08:56 PM
Postfix Setup Help shaggystyle Linux - Networking 1 12-22-2003 01:21 PM
Postfix Setup Help shaggystyle Linux - Newbie 1 12-22-2003 12:49 PM
Postfix setup questions Phaethar Linux - Networking 1 10-15-2003 03:29 PM > Forums > Linux Forums > Linux - Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration