Postfix Errors *.cf Permission denied

Discussion in 'Server Operation' started by themant, Apr 12, 2017.

  1. themant

    themant New Member

    I am new to ISPconfig, the setup went well but postfix does not work, when I look at the log, this what I see:
    Code:
    2017-04-12T18:42:01.411483+02:00 serv1 postfix/proxymap[29822]: error: open /etc/postfix/mysql-virtual_forwardings.cf: Permission denied
    2017-04-12T18:42:01.412600+02:00 serv1 postfix/proxymap[29822]: error: open /etc/postfix/mysql-virtual_email2email.cf: Permission denied
    2017-04-12T18:42:01.412800+02:00 serv1 postfix/proxymap[29822]: error: open /etc/postfix/mysql-virtual_mailboxes.cf: Permission denied
    2017-04-12T18:42:01.412959+02:00 serv1 postfix/proxymap[29822]: error: open /etc/postfix/mysql-virtual_sender_login_maps.cf: Permission denied
    When I try to send a test email, this is what is showing up in the logs:
    Code:
    2017-04-12T18:55:26.337912+02:00 serv1 postfix/proxymap[28594]: warning: mysql:/etc/postfix/mysql-virtual_domains.cf is unavailable. open /etc/postfix/mysql-virtual_domains.cf: Permission denied
    2017-04-12T18:55:26.338109+02:00 serv1 postfix/trivial-rewrite[29505]: warning: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf: table lookup problem
    2017-04-12T18:55:26.338283+02:00 serv1 postfix/trivial-rewrite[29505]: warning: virtual_mailbox_domains lookup failure
    2017-04-12T18:55:26.341216+02:00 serv1 postfix/smtpd[31150]: warning: table "mysql:/etc/postfix/mysql-virtual_client.cf": empty query string -- ignored
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Maybe your system uses a custom umask so that the files got created with a wrong mode. Which permissions do the files have, post e.g. the output of:

    ls -la /etc/postfix/mysql-virtual_forwardings.cf
     
  3. themant

    themant New Member

    Code:
    -rw-r----- 1 root postfix 317 Apr 12 18:27 /etc/postfix/mysql-virtual_forwardings.cf
     
  4. themant

    themant New Member

    i have even tried chmod 777 but the issue was not resolved, please help and thank you for responding.

    Code:
    :~ # ls -la /etc/postfix/mysql-virtual_*
    -rw-r----- 1 root postfix 231 Apr 12 18:27 /etc/postfix/mysql-virtual_client.cf
    -rw-r----- 1 root postfix 221 Apr 12 18:27 /etc/postfix/mysql-virtual_domains.cf
    -rw-r----- 1 root postfix 218 Apr 12 18:27 /etc/postfix/mysql-virtual_email2email.cf
    -rw-r----- 1 root postfix 317 Apr 12 18:27 /etc/postfix/mysql-virtual_forwardings.cf
    -rw-r----- 1 root postfix 216 Apr 12 18:27 /etc/postfix/mysql-virtual_gids.cf
    -rw-r----- 1 root postfix 288 Apr 12 18:27 /etc/postfix/mysql-virtual_mailboxes.cf
    -rw-r----- 1 root postfix 346 Apr 12 18:27 /etc/postfix/mysql-virtual_policy_greylist.cf
    -rw-r----- 1 root postfix 252 Apr 12 18:27 /etc/postfix/mysql-virtual_recipient.cf
    -rw-r----- 1 root postfix 224 Apr 12 18:27 /etc/postfix/mysql-virtual_relaydomains.cf
    -rw-r----- 1 root postfix 230 Apr 12 18:27 /etc/postfix/mysql-virtual_relayrecipientmaps.cf
    -rw-r----- 1 root postfix 249 Apr 12 18:27 /etc/postfix/mysql-virtual_sender.cf
    -rw-r----- 1 root postfix 320 Apr 12 18:27 /etc/postfix/mysql-virtual_sender_login_maps.cf
    -rw-r----- 1 root postfix 227 Apr 12 18:27 /etc/postfix/mysql-virtual_transports.cf
    -rw-r----- 1 root postfix 217 Apr 12 18:27 /etc/postfix/mysql-virtual_uids.cf
    
     
  5. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    try postfix set-permissions
     
  6. themant

    themant New Member

    Wow!! Thank you, the permission errors have been sorted now! I have been battling with this for so long!! :eek:
     

Share This Page