Results 1 to 7 of 7

Thread: mta Stopped postfix is not running

  1. #1
    Join Date
    Nov 2013
    Location
    France, Aisne
    Posts
    7
    Rep Power
    1

    Thumbs up mta Stopped postfix is not running

    (I was about asking question, but while writing and looking around, I found answer by myself ... so I'm posting anyway, as it may help newbies too )

    Hello,

    I've install CentOS 6 (Basic server). ( ... create a user other than root, configure a static ip address and update the system)
    I've install dependencies :
    Code:
    sudo yum install nc libidn gmp openssh
    I've modified DNS configuration on my domain provider ( OVH ).
    I made mistake : I first create a host with a name "mail" before changing it to the name of my zimbra server.

    So the final DNS configuration is the following :
    Code:
    .mydomain.fr 	NS 	ns105.ovh.net
    .mydomain.fr	NS 	dns105.ovh.net
    .mydomain.fr	MX 10 	myserver.mydomain.fr
    .mydomain.fr	A 	EXTERNAL.IP.OF.MYROUTER
    www.mydomain.fr 	A 	EXTERNAL.IP.OF.MYROUTER
    myserver.mydomain.fr 	A 	EXTERNAL.IP.OF.MYROUTER
    I've configure my router to do NAT on port 25 to the local ip address of my zimbra server

    I've install DNSMasq on the zimbra server for DNS SPLIT
    /etc/dnsmasq.conf file :
    Code:
    server=8.8.8.8
    server=208.67.222.222
    domain=mydomain.fr
    mx-host=mydomain.fr,myserver.mydomain.fr,5
    listen-address=127.0.0.1
    /etc/hosts file :
    Code:
    127.0.0.1 localhost.localdomain localhost
    192.168.1.8    myserver.mydomain.fr myserver
    /etc/resolv.conf file :
    I know it shoud be :
    Code:
    search mydomain.fr
    nameserver 127.0.0.1
    But the file is configured by DHCP whith these value :
    Code:
    ; generated by /sbin/dhclient-script
    nameserver 208.67.222.222
    nameserver 208.67.220.220
    I put the install file 'zcs-NETWORK-8.0.5_GA_5839.RHEL6_64.20130910124005.tgz' and my XML licence in the home directory of the server.
    I have untar and launch './install.sh' to start the installation.

    I had error but was able to fix it ( I forget the hosts file ... )
    Finally, I configure the admin password, put the licence path and file name.

    Then I run some test :
    Code:
    su
    su - zimbra
    zmcontrol status
    that gave me

    Code:
    [zimbra@myserver ~]$ zmcontrol status
    Host myserver.mydomain.fr
    	antispam                Running
    	antivirus               Running
    	convertd                Running
    	ldap                    Running
    	logger                  Running
    	mailbox                 Running
    	memcached               Running
    	mta                     Stopped
    		postfix is not running
    	opendkim                Running
    	proxy                   Running
    	snmp                    Running
    	spell                   Running
    	stats                   Running
    	zmconfigd               Running
    Even after doing
    Code:
    zmcontrol start
    I did some more testing :
    Code:
    [myuser@myserver ~]$ dig mydomain.fr mx
    
    ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6 <<>> mydomain.fr mx
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59387
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;mydomain.fr.		IN	MX
    
    ;; ANSWER SECTION:
    mydomain.fr.	1571	IN	MX	1 mail.mydomain.fr.
    
    ;; Query time: 32 msec
    ;; SERVER: 208.67.222.222#53(208.67.222.222)
    ;; WHEN: Fri Nov 29 16:27:30 2013
    ;; MSG SIZE  rcvd: 56
    Two things that are wrong :
    This DNS server is still using my old hostname "mail" instead of "myserver" ... I think I have to wait for world wide DNS replication.
    The local machine is not using my local DNSMasq ... may be because of the resolv.conf file. That have to be fix through the DHCP server.

    ------

    Today, I've changed the network configuration to static IP on the server.
    I've also tested the dig command. External DNS now give the correct host name.
    But the internal DNS is not answering.
    I check the /etc/resolv.conf. the file contain the necessary information.
    I check the status of dnsmasq :
    Code:
    [myuser@myserver ~]$ sudo /etc/init.d/dnsmasq status
    [sudo] password for myuser: 
    dnsmasq is stopped
    Ok, dnsmask is not starting at boot ... I have to fix that

    If I do
    Code:
    [myuser@myserver ~]$ su
    Mot de passe : 
    [root@myserver myuser]# su - zimbra
    [zimbra@myserver ~]$ zmcontrol start
    I get :

    Code:
    Starting mta...Failed.
    Starting saslauthd...already running.
    postfix failed to start
    In the zimbra.log file i get this error:

    Code:
    myserver postfix/master[4711]: fatal: bind 0.0.0.0 port 25: Address already in use
    Code:
    [myuser@myserver ~]$ sudo lsof -i TCP:25
    [sudo] password for myuser: 
    COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
    master  1943 root   12u  IPv4  14783      0t0  TCP localhost.localdomain:smtp (LISTEN)
    master  1943 root   13u  IPv6  14785      0t0  TCP localhost.localdomain:smtp (LISTEN)
    What that master process ?

    This is the system postfix. Weird, is it install with the basic server centOS installation ?

    Code:
    [myuser@myserver ~]$ sudo /etc/init.d/postfix status
    [sudo] password for myuser: 
    master (pid  1943) is running...
    So I stop it.
    Code:
    [myuser@myserver ~]$ sudo /etc/init.d/postfix stop
    Stopping postfix :                                         [  OK  ]
    Code:
    [zimbra@myserver ~]$ zmcontrol start
    Host myserver.mydomain.fr
    	Starting zmconfigd...Done.
    	Starting logger...Done.
    	Starting convertd...Done.
    	Starting mailbox...Done.
    	Starting memcached...Done.
    	Starting proxy...Done.
    	Starting antispam...Done.
    	Starting antivirus...Done.
    	Starting opendkim...Done.
    	Starting snmp...Done.
    	Starting spell...Done.
    	Starting mta...Done.
    	Starting stats...Done.
    Now it looks like it should work better.
    I have to check if mails are going in and out in the real world.

    ------

    It' all good !
    And next time, for the production server, l'll install minimal version of CentOS not basic !!

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Well done on getting that running. You do, however, have one problem with the above configuration. A couple of points, in your resolv.conf you should only have the IP address of the LAN DNS server and no external DNS servers and your DNS server should be authoratitive for your domain. Your LAN DNS A record should point to the LAN IP address of the Zimbra server (if it doesn't already).
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Nov 2013
    Location
    France, Aisne
    Posts
    7
    Rep Power
    1

    Default

    Quote Originally Posted by phoenix View Post
    Well done on getting that running.
    Thank you Phoenix

    Quote Originally Posted by phoenix View Post
    You do, however, have one problem with the above configuration. A couple of points, in your resolv.conf you should only have the IP address of the LAN DNS server and no external DNS servers and your DNS server should be authoratitive for your domain.
    I found out why it kept an external DNS server in the resolf.conf file :
    I used the tool setup to changed my network configuration.
    In the DNS configuration, I put only one DNS server : 127.0.0.1
    In the Eth0 configuration, I had to put 2 time the DNS server 127.0.0.1, it didn't allow an empty DNS configuration, and automaticaly use the previous entry.

    And now, my resolv.conf file contain the following :
    Code:
    ; generated by /sbin/dhclient-script
    nameserver 127.0.0.1
    nameserver 127.0.0.1
    Quote Originally Posted by phoenix View Post
    Your LAN DNS A record should point to the LAN IP address of the Zimbra server (if it doesn't already).
    I check this and :

    Code:
    [monuser@monserveur ~]$ dig MX mondomain.fr
    
    ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6 <<>> MX mondomain.fr
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 710
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;mondomain.fr.		IN	MX
    
    ;; ANSWER SECTION:
    mondomain.fr.	0	IN	MX	5 monserveur.mondomain.fr.
    
    ;; ADDITIONAL SECTION:
    monserveur.mondomain.fr. 0	IN	A	192.168.1.8
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Wed Dec  4 09:25:09 2013
    ;; MSG SIZE  rcvd: 93
    Looks better, no?

    your DNS server should be authoratitive for your domain.
    About this point: can I (or should I) use the zimbra server as DHCP and DNS server for the whole lan ?
    I used dnsmasq as split DNS and the current DNS and DHCP server is on the ISP router.
    But I don't want to keep this service on the router.

    Also, can I also use the zimbra server as LDAP and samba server ?
    If I remember well, I read something about this ... that it wasn't a good idea or even not possible.

    Regards,
    Cyril

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by C-yril View Post
    Thank you Phoenix


    I found out why it kept an external DNS server in the resolf.conf file :
    I used the tool setup to changed my network configuration.
    In the DNS configuration, I put only one DNS server : 127.0.0.1
    In the Eth0 configuration, I had to put 2 time the DNS server 127.0.0.1, it didn't allow an empty DNS configuration, and automaticaly use the previous entry.

    And now, my resolv.conf file contain the following :
    Code:
    ; generated by /sbin/dhclient-script
    nameserver 127.0.0.1
    nameserver 127.0.0.1
    Are you using a fixed IP for the Zimbra server? I would have thought the DHCP client wouldn't be needed in those circumstances. If you're using DHCP you could use that to allocate a specific fixed to IP to the server (I do that).

    Quote Originally Posted by C-yril View Post
    I check this and :

    Code:
    [monuser@monserveur ~]$ dig MX mondomain.fr
    
    ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6 <<>> MX mondomain.fr
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 710
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;mondomain.fr.		IN	MX
    
    ;; ANSWER SECTION:
    mondomain.fr.	0	IN	MX	5 monserveur.mondomain.fr.
    
    ;; ADDITIONAL SECTION:
    monserveur.mondomain.fr. 0	IN	A	192.168.1.8
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Wed Dec  4 09:25:09 2013
    ;; MSG SIZE  rcvd: 93
    Looks better, no?
    yes, perfect.



    Quote Originally Posted by C-yril View Post
    About this point: can I (or should I) use the zimbra server as DHCP and DNS server for the whole lan ?
    I used dnsmasq as split DNS and the current DNS and DHCP server is on the ISP router.
    But I don't want to keep this service on the router.
    i guess the answer to that would depend on the resources you have for yoru Zimbra server although running DHCP & DNS servers wouldn't be that resource hungry. I run my DHCP & DNS servers for my LAN but do so on separate servers.

    Quote Originally Posted by C-yril View Post
    Also, can I also use the zimbra server as LDAP and samba server ?
    If I remember well, I read something about this ... that it wasn't a good idea or even not possible.
    By a Samba server", do you mean a domain controller or a file server?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    Join Date
    Nov 2013
    Location
    France, Aisne
    Posts
    7
    Rep Power
    1

    Default

    Quote Originally Posted by phoenix View Post
    Are you using a fixed IP for the Zimbra server? I would have thought the DHCP client wouldn't be needed in those circumstances. If you're using DHCP you could use that to allocate a specific fixed to IP to the server (I do that).
    Yes I'm using a static IP. I tried to use the DHCP to fix it, but I had issue with DNS server in the resolf.conf file.
    humm .. I may try again using the DHCP now I know how the file have to be.

    I think I'm not using the CentOS "setup" scrip correctly.

    Quote Originally Posted by phoenix View Post
    i guess the answer to that would depend on the resources you have for your Zimbra server although running DHCP & DNS servers wouldn't be that resource hungry. I run my DHCP & DNS servers for my LAN but do so on separate servers.

    By a Samba server", do you mean a domain controller or a file server?
    I would like to first install a file server that is Windows compatible. That's why I'm going to share folders with samba.

    I'm about using openLDAP as a domain controller but I may misunderstand "domain controller" in the Linux world. The domain contain both linux and windows workstations.

    I'm not afraid about ressources on the server. There's not that much users, about 6 users

  6. #6
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by C-yril View Post
    Yes I'm using a static IP. I tried to use the DHCP to fix it, but I had issue with DNS server in the resolf.conf file.
    humm .. I may try again using the DHCP now I know how the file have to be.

    I think I'm not using the CentOS "setup" scrip correctly.
    An easy method of managing a linux server is to use webmin, all your management is then done from a browser.

    Quote Originally Posted by C-yril View Post
    I would like to first install a file server that is Windows compatible. That's why I'm going to share folders with samba.

    I'm about using openLDAP as a domain controller but I may misunderstand "domain controller" in the Linux world. The domain contain both linux and windows workstations.

    I'm not afraid about resources on the server. There's not that much users, about 6 users
    I use a dedicated file server for my LAN and I would advise against using something like Samba on your mail server.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    Join Date
    Nov 2013
    Location
    France, Aisne
    Posts
    7
    Rep Power
    1

    Default

    Allright Bill,

    Thanks for your advises.

    I'll have a try with webmin and use another server for Samba !

    Regards,
    Cyril

Similar Threads

  1. mta Stopped postfix is not running
    By rausch in forum Administrators
    Replies: 7
    Last Post: 10-04-2013, 09:32 AM
  2. mta stopped postfix is not running
    By marcosjost in forum Administrators
    Replies: 4
    Last Post: 08-20-2013, 01:16 AM
  3. mta stopped postfix is not running
    By saurabh.pillai in forum Administrators
    Replies: 6
    Last Post: 07-15-2012, 11:48 AM
  4. mta Stopped postfix is not running
    By rausch in forum Installation
    Replies: 0
    Last Post: 04-14-2011, 06:22 AM
  5. mta stopped: Postfix is not running
    By infajb in forum Administrators
    Replies: 6
    Last Post: 12-04-2009, 04:30 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •