Postfix hangs on startup script

Discussion in 'Server Operation' started by ernie49, Aug 4, 2009.

  1. ernie49

    ernie49 New Member

    Hello everyone,

    I lease a virtual machine on Virtuozzo. The installation is:
    CentOS 5.3, MySQL, postfix with virtual domains and users, postfixadmin, amavisd-new, spamassassin, clamav, sasl for authentication and Zarafa community.
    My problem is that Postfix hangs on:
    /etc/init.d/postfix start
    Starting postfix:
    And that's it. No [OK]. No error, no log, nothing. And if I press "Enter key" 2 times then [OK] appears. If i do a telnet all seems to be fine.

    220 mail.exemple.com ESMTP Postfix
    ehlo toto
    250-mail.exemple.com
    250-PIPELINING
    250-SIZE 15728640
    250-ETRN
    250-STARTTLS
    250-AUTH LOGIN PLAIN
    250-AUTH=LOGIN PLAIN
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN

    Then I wrote a mail to the mail server and I send a mail from the mail server. The first mail never arrives and the second won't never be sent. There is no log in maillog. I take a look in /var/spool/postfix/deferred and see the mail.
    Is there someone who can help me please?

    Here my main.cf:

    inet_interfaces = all
    mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
    myhostname = mail.exemple.com
    mynetworks = xxx.xxx.xxx.xxx/32, 127.0.0.0/8
    relay_domains = $mydestination
    biff = no
    virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
    virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf
    virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
    allow_min_user = no
    #mailbox_size_limit = 15728640
    message_size_limit = 15728640
    virtual_minimum_uid = 5000
    virtual_mailbox_base = /home/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    transport_maps = mysql:/etc/postfix/mysql_transport_maps.cf
    virtual_create_maildirsize = yes
    virtual_maildir_extended = yes
    virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
    virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
    virtual_mailbox_limit_override = yes
    virtual_maildir_limit_message = "The user you are trying to reach is over quota."
    virtual_overquota_bounce = yes
    sender_bcc_maps = mysql:/etc/postfix/mysql_sender_bcc_maps_domain.cf, mysql:/etc/postfix/mysql_sender_bcc_maps_user.cf
    recipient_bcc_maps = mysql:/etc/postfix/mysql_recipient_bcc_maps_domain.cf, mysql:/etc/postfix/mysql_recipient_bcc_maps_user.cf
    smtpd_sender_login_maps = mysql:/etc/postfix/mysql_sender_login_maps.cf
    receive_override_options = no_address_mappings
    smtpd_data_restrictions = reject_unauth_pipelining
    smtpd_reject_unlisted_recipient = yes
    delay_warning_time = 0h
    policy_time_limit = 3600
    maximal_queue_lifetime = 1d
    bounce_queue_lifetime = 1d
    smtpd_helo_required = yes
    minimal_backoff_time = 300s
    maximal_backoff_time = 4000s
    enable_original_recipient = no
    disable_vrfy_command = yes
    strict_rfc821_envelopes = yes
    smtpd_delay_reject = no

    unknown_local_recipient_reject_code = 554
    unknown_address_reject_code = 554
    unknown_hostname_reject_code = 554
    unknown_client_reject_code = 554
    unverified_sender_reject_code = 550

    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtp_sasl_security_options = noanonymous
    smtpd_sasl_local_domain = $myhostname
    smtpd_recipient_restrictions =
    reject_rbl_client zen.spamhaus.org
    reject_rbl_client bl.spamcop.net
    reject_rbl_client dnsbl.sorbs.net
    reject_rbl_client rhsbl.sorbs.net
    reject_rbl_client db.wpbl.info
    reject_rbl_client ix.dnsbl.manitu.net
    reject_unlisted_sender
    reject_unlisted_recipient
    reject_unauth_pipelining
    reject_invalid_hostname
    reject_invalid_helo_hostname
    reject_unknown_recipient_domain
    reject_unknown_sender_domain
    reject_non_fqdn_sender
    reject_non_fqdn_recipient
    permit_sasl_authenticated
    permit_mynetworks
    reject_unauth_destination
    permit

    smtpd_use_tls = yes
    smtpd_sasl_tls_security_options = noanonymous
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_security_level = may
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    tls_daemon_random_source = dev:/dev/urandom

    content_filter = amavis:[127.0.0.1]:10024

    mailbox_transport = zarafa:
    zarafa_destination_recipient_limit = 1



    Here my master.cf:

    #
    # Postfix master process configuration file. For details on the format
    # of the file, see the master(5) manual page (command: "man 5 master").
    #
    # ==========================================================================
    # service type private unpriv chroot wakeup maxproc command + args
    # (yes) (yes) (yes) (never) (100)
    # ==========================================================================
    smtp inet n - n - - smtpd
    #submission inet n - n - - smtpd
    # -o smtpd_enforce_tls=yes
    # -o smtpd_sasl_auth_enable=yes
    # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #smtps inet n - n - - smtpd
    # -o smtpd_tls_wrappermode=yes
    # -o smtpd_sasl_auth_enable=yes
    # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #628 inet n - n - - qmqpd
    pickup fifo n - n 60 1 pickup
    cleanup unix n - n - 0 cleanup
    qmgr fifo n - n 300 1 qmgr
    #qmgr fifo n - n 300 1 oqmgr
    tlsmgr unix - - n 1000? 1 tlsmgr
    rewrite unix - - n - - trivial-rewrite
    bounce unix - - n - 0 bounce
    defer unix - - n - 0 bounce
    trace unix - - n - 0 bounce
    verify unix - - n - 1 verify
    flush unix n - n 1000? 0 flush
    proxymap unix - - n - - proxymap
    smtp unix - - n - - smtp
    # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
    relay unix - - n - - smtp
    -o fallback_relay=
    # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq unix n - n - - showq
    error unix - - n - - error
    discard unix - - n - - discard
    local unix - n n - - local
    virtual unix - n n - - virtual
    lmtp unix - - n - - lmtp
    anvil unix - - n - 1 anvil
    scache unix - - n - 1 scache
    #
    # ====================================================================
    # Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # Many of the following services use the Postfix pipe(8) delivery
    # agent. See the pipe(8) man page for information about ${recipient}
    # and other message envelope options.
    # ====================================================================
    #
    # maildrop. See the Postfix MAILDROP_README file for details.
    # Also specify in main.cf: maildrop_destination_recipient_limit=1
    #
    maildrop unix - n n - - pipe
    flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
    #
    # The Cyrus deliver program has changed incompatibly, multiple times.
    #
    old-cyrus unix - n n - - pipe
    flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
    # Cyrus 2.1.5 (Amos Gouaux)
    # Also specify in main.cf: cyrus_destination_recipient_limit=1
    cyrus unix - n n - - pipe
    user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
    #
    # See the Postfix UUCP_README file for configuration details.
    #
    uucp unix - n n - - pipe
    flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    #
    # Other external delivery methods.
    #
    ifmail unix - n n - - pipe
    flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp unix - n n - - pipe
    flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
    #
    #
    amavis unix - - - - 2 smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes

    127.0.0.1:10025 inet n - - - - smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
    -o smtpd_bind_address=127.0.0.1

    zarafa unix - n n - 10 pipe
    flags= user=vmail argv=/usr/bin/zarafa-dagent ${user}


    Thanks.

    Ernie
     
  2. falko

    falko Super Moderator ISPConfig Developer

    There's nothing in /var/log/maillog?
    What's the output of
    Code:
    netstat -tap
    ?
    Does the MX record of your domain point to the correct server?
     
  3. ernie49

    ernie49 New Member

    No there's nothing in /var/log/maillog. 0 kb. Empty.

    For the moment I have Axigen (All in One mail server) running on this server and always when I want to test the other config I stop axigen server. I do a "netstat -an" and I see that all service for mail server arre stopped.Then I start postfix.

    Here the netstat -tap

    netstat -tap
    Aktive Internetverbindungen (Server und stehende Verbindungen)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:smtp *:* LISTEN 22438/master
    tcp 0 0 localhost.localdomain:10024 *:* LISTEN 11977/amavisd (mast
    tcp 0 0 localhost.localdomain:10025 *:* LISTEN 22438/master
    tcp 0 0 *:mysql *:* LISTEN 1851/mysqld
    tcp 0 0 localhost.local:dyna-access *:* LISTEN 13372/clamd
    tcp 0 0 localhost.localdomain:783 *:* LISTEN 1879/spamd.pid
    tcp 0 0 localhost.localdomain:10024 localhost.localdomain:40750 TIME_WAIT -
    tcp 0 0 localhost.localdomain:10024 localhost.localdomain:40749 TIME_WAIT -
    tcp 0 0 localhost.localdomain:mysql localhost.localdomain:54302 TIME_WAIT -
    tcp 0 0 localhost.localdomain:mysql localhost.localdomain:54303 TIME_WAIT -
    tcp 0 0 localhost.localdomain:mysql localhost.localdomain:54308 VERBUNDEN 1851/mysqld
    tcp 0 0 localhost.localdomain:mysql localhost.localdomain:54304 VERBUNDEN 1851/mysqld
    tcp 0 0 localhost.localdomain:mysql localhost.localdomain:54305 VERBUNDEN 1851/mysqld
    tcp 0 0 localhost.localdomain:mysql localhost.localdomain:54306 VERBUNDEN 1851/mysqld
    tcp 0 0 localhost.localdomain:mysql localhost.localdomain:54307 VERBUNDEN 1851/mysqld
    tcp 0 0 localhost.localdomain:54302 localhost.localdomain:mysql TIME_WAIT -
    tcp 0 0 localhost.localdomain:54308 localhost.localdomain:mysql VERBUNDEN 22464/trivial-rewri
    tcp 0 0 localhost.localdomain:54307 localhost.localdomain:mysql VERBUNDEN 22464/trivial-rewri
    tcp 0 0 localhost.localdomain:54306 localhost.localdomain:mysql VERBUNDEN 22460/cleanup
    tcp 0 0 localhost.localdomain:54305 localhost.localdomain:mysql VERBUNDEN 22463/cleanup
    tcp 0 0 localhost.localdomain:54304 localhost.localdomain:mysql VERBUNDEN 22464/trivial-rewri
    tcp 0 0 *:ssh *:* LISTEN 1730/sshd
    tcp 0 0 *:http *:* LISTEN 1999/httpd
    tcp 0 0 mail.exemple.com:http bigbrother2.keyweb.de:54095 TIME_WAIT -
    tcp 0 0 ns2.mail.exemple.com:ssh ::ffff:94.32.64.29:42226 VERBUNDEN 22491/sshd: [accept
    tcp 0 2664 mail.exemple.com:ssh myhomeconnection:46515 VERBUNDEN 19574/0
    tcp 0 0 mail.exemple.com:ssh myhomeconnection:46514 VERBUNDEN 19516/sshd: [email protected]

    Thanks for help.

    Ernie
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Postfix is listening on port 10025, but not on port 25...
     

Share This Page