[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 626
  • Last Modified:

Postfix on fedora how to start and config

Hi,
I installed Fedora Core, [linux 2.4.22-1] with graphic Gnum and many of applications it provides at install time.

So I also selected postfix at install time.
But it seems postfix is not running, but I could see some of its files at /etc/postfix.

I tried postfix reload, it say it is not running.

How can I make it run? do I need a fresh installation?
and on more quesion: I do most of my configuration in text mode. is it good to have gnum and xwindow or not? some one said they are not secure!

Thanks
Nav
0
Nav444
Asked:
Nav444
  • 3
1 Solution
 
owensleftfootCommented:
"chkconfig postfix on" followed by "service postfix start" should start it. If it doesnt, look at /var/log/maillog. As for xwindows & gnome, they are secure enough but take up memory.
0
 
aimhighCommented:
You most likely install Sendmail as well and your defualt MTA is sendmail. You can change your MTA to postfix with the following command:

alternatives --set mta /usr/sbin/sendmail.postfix

follow owensleftfoot to make sure the postfix service starts on reboot and is started now.
0
 
Nav444Author Commented:
thank guys, I tired all the commands you gave, but it still seems that it is not running,

I did this,

[root@localhost root]# chkconfig postfix on
[root@localhost root]# service postfix start
Starting postfix: postalias: warning: removing zero-length database file: /etc/postfix/aliases.db
                                                           [  OK  ]
[root@localhost root]# postfix reload
postfix/postfix-script: fatal: the Postfix mail system is not running
[root@localhost root]# set mta /usr/sbin/sendmail.postfix
[root@localhost root]# service postfix start
Starting postfix:                                          [  OK  ]
[root@localhost root]# postfix reload
postfix/postfix-script: fatal: the Postfix mail system is not running
[root@localhost root]# service postfix start
Starting postfix:                                          [  OK  ]
[root@localhost root]# service postfix stop
Shutting down postfix:                                     [FAILED]
[root@localhost root]#

I have a question, if I do not setup the main.cf properly, does postfix runs at all or not?

Thanks
0
 
Nav444Author Commented:
by the way, this is what maillog says, it seems other system is using port 25, how to stop it?

Oct 24 10:10:40 localhost postfix/postfix-script: starting the Postfix mail system
Oct 24 10:10:40 localhost postfix/master[7580]: fatal: bind 127.0.0.1 port 25: Address already in use
Oct 24 10:10:53 localhost postfix/postfix-script: fatal: the Postfix mail system is not running
Oct 24 10:11:35 localhost postfix/postfix-script: starting the Postfix mail system
Oct 24 10:11:35 localhost postfix/master[7638]: fatal: bind 127.0.0.1 port 25: Address already in use
Oct 24 10:11:52 localhost postfix/postfix-script: fatal: the Postfix mail system is not running
Oct 24 10:11:58 localhost postfix/postfix-script: starting the Postfix mail system
Oct 24 10:11:58 localhost postfix/master[7696]: fatal: bind 127.0.0.1 port 25: Address already in use
Oct 24 10:12:02 localhost postfix/postfix-script: fatal: the Postfix mail system is not running


0
 
Nav444Author Commented:
okay great, thanks Guys,
I just stoped send mail and then tried
service postfix start
and it worked.

Thank you very much.

So I guess I did not understand one thing very well. I was thinking, Postfix works with help of sendmail !! and I was wrong.

Thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now