Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have setup sympa with postfix. I am having problems with creating lists. Everytime I create a list I get this in my /var/log/apache2/error.log:

    postalias: fatal: open /etc/aliases.db: Permission denied  
    Failed to execute newaliases: Inappropriate ioctl for device

I tried removing aliases.db and manually using postalias, but alas. The problem doesn't show however when I restart postfix, so I think it is the fast cgi script trying to update the alias files for postfix.

share|improve this question

2 Answers 2

Ownership of /etc/aliases is usually root:root; this means a normal user cannot update it.

Try removing it and then running postalias with the apache user.

Also check the notes and configuration mentioned in the manual page for postalias

share|improve this answer
    
Ok, but to what should I remove it? –  Lucas Kauffman Mar 29 '12 at 15:09
    
/dev/null ??!!! –  mailq Apr 3 '12 at 16:01
up vote 1 down vote accepted

The fix is to add www-data to the sympa group, and after running postalias on /etc/aliases; chmod the rights of aliases.db to 660. Then chown root:sympa aliases.db.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.