Project

General

Profile

Bug #334

Problems Sending Email After Joining To Active Directory

Added by Daniel Curtis almost 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Mail Server
Target version:
-
Start date:
02/10/2014
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

I encountered a problem after joining my mail server to my Active Directory domain. The problem was that email was not being delivered, despite being able to successfully log into an account on the mail server. To start I logged in to the mail server to view the mail server log file, to find the following error:

tail /var/log

Feb 10 09:51:10 mailserver postfix/pipe9738: fatal: get_service_attr: unknown group: vmail

  • While migrating the existing user information directory over to the Active Directory, I had to add a unique group name to the directory, the existing setup had a vmail user and a vmail group. This was to avoid a conflict between user and group identifier attributes, so I created a vmail user and a vmailgrp group. The problem was that I had not updated the group information in the postfix master configuration. I edited the /etc/postfix/master.cf file and changed the following line to the proper version:
    dovecot   unix  -       n       n       -       -       pipe
    flags=DROhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
    
    • Changed to:
      dovecot   unix  -       n       n       -       -       pipe
      flags=DROhu user=vmail:vmailgrp argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
      
  • And finally reloaded the postfix configuration:
    postfix reload
    

This fixed the problem and mail immediate began to deliver properly.

#1

Updated by Daniel Curtis almost 11 years ago

  • Status changed from Resolved to Closed
#2

Updated by Daniel Curtis almost 10 years ago

  • Project changed from 31 to GNU/Linux Administration
  • Description updated (diff)
  • Category set to Mail Server

Also available in: Atom PDF