Postfix broken, PLEASE HELP

Discussion in 'Server Operation' started by CarbonCopy, Apr 25, 2010.

  1. CarbonCopy

    CarbonCopy New Member

    Postfix just broke and I have little clue whats happening. I'm getting

    Code:
    Apr 25 15:54:39 northernlightstechnology postfix/proxymap[32590]: fatal: open /etc/postfix/mysql-virtual_forwardings.cf: Permission denied
    Apr 25 15:54:39 northernlightstechnology postfix/proxymap[32591]: fatal: open /etc/postfix/mysql-virtual_forwardings.cf: Permission denied
    Apr 25 15:56:36 northernlightstechnology postfix/proxymap[384]: fatal: open /etc/postfix/mysql-virtual_forwardings.cf: Permission denied
    Apr 25 15:56:38 northernlightstechnology postfix/proxymap[385]: fatal: open /etc/postfix/mysql-virtual_forwardings.cf: Permission denied
    Apr 25 15:57:39 northernlightstechnology postfix/proxymap[403]: fatal: open /etc/postfix/mysql-virtual_forwardings.cf: Permission denied
    Apr 25 15:58:40 northernlightstechnology postfix/proxymap[411]: fatal: open /etc/postfix/mysql-virtual_forwardings.cf: Permission denied
    Apr 25 15:59:41 northernlightstechnology postfix/proxymap[437]: fatal: open /etc/postfix/mysql-virtual_forwardings.cf: Permission denied
    Apr 25 16:00:42 northernlightstechnology postfix/proxymap[452]: fatal: open /etc/postfix/mysql-virtual_forwardings.cf: Permission denied
    
    Code:
    # Some server info
    myhostname = smtp.northernlightstechnology.ca
    mydestination = smtp.northernlightstechnology.ca, localhost, localhost.localdomain
    mynetworks = 127.0.0.0/8
    message_size_limit = 30720000
    
    # This is to setup virtual domains and users
    virtual_alias_domains =
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
    alias_maps = hash:/etc/aliases
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_mailbox_base = /home/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    
    # This is authentication related
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    
    # Use TLS
    smtpd_use_tls = yes
    smtpd_tls_cert_file = /etc/postfix/smtpd.pem
    smtpd_tls_key_file = /etc/postfix/smtpd.pem
    smtpd_tls_CAfile = /etc/postfix/smtpd.pem
    
    # Some more virtual user stuff
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    virtual_transport = maildrop
    maildrop_destination_recipient_limit = 1
    
    # Other stuff??
    virtual_create_maildirsize = yes
    virtual_maildir_extended = yes
    virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_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
    #proxy_read_maps = $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_$
    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
    
    inet_interfaces = all
    
    ####### ANTI SPAM/VIRUS/WORM SETTINGS #######
    smtpd_delay_reject = yes
    
    smtpd_recipient_restrictions =
      reject_unauth_pipelining,
      reject_unknown_recipient_domain,
      permit_mynetworks,
      permit_sasl_authenticated,
      reject_unauth_destination,
      permit
    content_filter = amavis:[127.0.0.1]:10024
    readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    sample_directory = /usr/share/doc/postfix-2.3.3/samples
    sendmail_path = /usr/sbin/sendmail.postfix
    html_directory = /usr/share/doc/postfix-2.7.0-documentation/html
    setgid_group = postdrop
    command_directory = /usr/sbin
    manpage_directory = /usr/share/man
    daemon_directory = /usr/libexec/postfix
    newaliases_path = /usr/bin/newaliases.postfix
    mailq_path = /usr/bin/mailq.postfix
    queue_directory = /var/spool/postfix
    mail_owner = postfix
    unknown_local_recipient_reject_code = 450
    smtpd_sasl_path = smtpd
    smtpd_sasl_type = cyrus
    smtpd_sasl_security_options = noanonymous
    
    data_directory = /var/lib/postfix
    
    
    And this:"

    Code:
    Apr 25 16:17:46 northernlightstechnology postfix/master[1571]: warning: process /usr/libexec/postfix/proxymap pid 1749 exit status 1
    Apr 25 16:17:46 northernlightstechnology postfix/master[1571]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
    Apr 25 16:17:46 northernlightstechnology postfix/smtpd[1709]: warning: private/proxymap socket: service dict_proxy_open: Success
    Apr 25 16:17:46 northernlightstechnology postfix/master[1571]: warning: process /usr/libexec/postfix/proxymap pid 1750 exit status 1
    Apr 25 16:17:46 northernlightstechnology postfix/smtpd[1710]: warning: private/proxymap socket: service dict_proxy_open: Success
    
    What could be wrong? If i remove proxy: then I get another error saying it can't find the domain.
     
    Last edited: Apr 25, 2010
  2. CarbonCopy

    CarbonCopy New Member

    Ok, well somehow I managed to remove execute permissions from /etc. All I did was chmod 755 /etc and it's fixed
     

Share This Page