Postfix malfunction

Discussion in 'Installation/Configuration' started by jag7720, Nov 8, 2007.

  1. jag7720

    jag7720 New Member

    I installed ISPConfig and all seems to be working except Postfix

    /var/log/maillog has this in it over and over

    Nov 8 11:35:47 kcmop35 postfix/proxymap[28059]: warning: empty macro name: "$local_recipient_maps $#mydestination $#virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps"
    Nov 8 11:35:47 kcmop35 postfix/proxymap[28059]: fatal: dictionary mail_dict: macro processing error
    Nov 8 11:35:48 kcmop35 postfix/master[25343]: warning: process /usr/libexec/postfix/proxymap pid 28059 exit status 1
    Nov 8 11:35:48 kcmop35 postfix/master[25343]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling

    And I can't send or receive.

    Any Ideas what is going on?
    Last edited: Nov 8, 2007
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the content of /etc/postfix/, comments stripped.
  3. jag7720

    jag7720 New Member

    Here you go...

    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    mail_owner = postfix
    inet_interfaces = all
    #mydestination =, localhost, localhost.localdomain

    unknown_local_recipient_reject_code = 550

    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    debug_peer_level = 2
    debugger_command =
    xxgdb $daemon_directory/$process_name $process_id & sleep 5

    sendmail_path = /usr/sbin/sendmail.postfix

    newaliases_path = /usr/bin/newaliases.postfix

    mailq_path = /usr/bin/mailq.postfix

    setgid_group = postdrop

    html_directory = no

    manpage_directory = /usr/share/man

    sample_directory = /usr/share/doc/postfix-2.2.10/samples

    readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES
    myhostname =
    mynetworks =
    virtual_alias_domains =
    #virtual_alias_maps = proxy:mysql:/etc/postfix/, mysql:/etc/postfix/
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/
    virtual_mailbox_base = /home/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_use_tls = yes
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    transport_maps = proxy:mysql:/etc/postfix/
    virtual_create_maildirsize = yes
    virtual_mailbox_extended = yes
    virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/
    virtual_mailbox_limit_override = yes
    virtual_maildir_limit_message = "The user you are trying to reach is over quota."
    virtual_overquota_bounce = yes
    proxy_read_maps = $local_recipient_maps $#mydestination $#virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
    smtpd_sasl_local_domain =
    smtpd_sasl_security_options = noanonymous
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    home_mailbox = Maildir/
    mailbox_command =

    virtual_maps = hash:/etc/postfix/virtusertable

    mydestination = /etc/postfix/local-host-names
  4. falko

    falko Super Moderator ISPConfig Developer

    Two problems: your mail server setup (virtual users with MySQL) is not compatible with ISPConfig, so you must reconfigure Postfix (according to the "Perfect Setup".

    Second problem:
    You must remove the # signs from that line.
  5. jag7720

    jag7720 New Member

    Thanks for the response. The Strange thing is I followed the "Perfect Setup"

    Does ISPConfig do anything with the Postfix that is installed when the server is built?
    Last edited: Nov 9, 2007
  6. falko

    falko Super Moderator ISPConfig Developer

    Yes, it adds/modifies two lines in /etc/postfix/ and then writes its configuration to /etc/postfix/local-host-names and /etc/postfix/virtusertable.
  7. jag7720

    jag7720 New Member

    The problem was I had a version of Postfix installed that was for mysql/postgresql.

    I uninstalled the RPM and installed the regular version.

    I copied the main.fc from HowToforge.

    Do I need to do anything manualy to etc/postfix/local-host-names and /etc/postfix/virtusertable? Or will they stay the same?

    If they need to change can you tell me what needs to be in them? It looks like they would stay the same.
  8. falko

    falko Super Moderator ISPConfig Developer

    These files are written by ISPConfig, so you don't have to touch them.

    But please run
    postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
    postconf -e 'mydestination = /etc/postfix/local-host-names'
    /etc/init.d/postfix restart
  9. jag7720

    jag7720 New Member

    [SOLVED] Postfix malfunction

    Thanks. I found those commands in another thread that you posted in...

    It is all cleared up now.


Share This Page