You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Upgrade to 10.10 breaks email server aliases

Hi,

I upgraded to OSX 10.10 and Server 4.03.


Users can still log in to email accounts but emails sent to aliases are "rejected by the server because the user is unknown".


The SMTP log has warnings "warning: database /etc/aliases.db is older than source file /etc/aliases"


I tried these

/usr/bin/newaliases

- postalias: fatal: open /Library/Server/Mail/Config/postfix/aliases.db: Permission denied


/etc/postfix/virtual_users

- postmap: warning: /etc/postfix/main.cf, line 690: overriding earlier entry: config_directory=/etc/postfix

postmap: fatal: open /etc/postfix/virtual_users: No such file or directory


sudo postfix reload

- postfix: warning: /etc/postfix/main.cf, line 690: overriding earlier entry: config_directory=/etc/postfix

/usr/sbin/postconf: warning: /etc/postfix/main.cf, line 690: overriding earlier entry: config_directory=/etc/postfix

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: use_sacl_cache=yes

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: imap_submit_cred_file=/Library/Server/Mail/Config/postfix/submit.cred

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: mydomain_fallback=localhost

postfix/postlog: warning: /etc/postfix/main.cf, line 690: overriding earlier entry: config_directory=/etc/postfix

postfix/postfix-script: refreshing the Postfix mail system

postsuper: warning: /etc/postfix/main.cf, line 690: overriding earlier entry: config_directory=/etc/postfix

xxxxx postsuper: warning: /etc/postfix/main.cf, line 690: overriding earlier entry: config_directory=/etc/postfix



Any ideas how to fix aliases?

Many Thanks

Suzanne

Posted on Jan 19, 2015 1:03 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 5, 2015 1:33 PM

I solved this...


postmap likes to look for a default install config directory


to get postmap to remap your /Library/Server/Mail/Config/postfix and to have it map the appropriate file...


sudo postmap -c /Library/Server/Mail/Config/postfix virtual_users


note, NO trailing slash on the config directory, and direct postmap to interrogate virtual_users instead of virtual


My guess is the newaliases command works similarly


- matthewk

8 replies
Question marked as Top-ranking reply

Apr 5, 2015 1:33 PM in response to Infinitybeach

I solved this...


postmap likes to look for a default install config directory


to get postmap to remap your /Library/Server/Mail/Config/postfix and to have it map the appropriate file...


sudo postmap -c /Library/Server/Mail/Config/postfix virtual_users


note, NO trailing slash on the config directory, and direct postmap to interrogate virtual_users instead of virtual


My guess is the newaliases command works similarly


- matthewk

Nov 8, 2015 10:25 AM in response to KrawNET

I updated from OS X 10.7.5 Server to OS X 10.11.1 with Server 5.0.15


I had to use KrawNET's solution:

sudo postmap -c /Library/Server/Mail/Config/postfix virtual_users


Plus I had to remake the virtual.db:

cd /etc/postfix

sudo postmap /etc/postfix/virtual

sudo postfix reload


Hope this others that are upgrading.


Big Thanks to KrawNET


Tom

May 12, 2016 6:56 AM in response to Boddie

Hey Boddie,


I just updated from OS X 10.8.5 Server to OS X 10.11.4 with Server 5.1.


I routinely run mailq or postqueue -p in terminal to make sure no spammers are trying to send and it getting refused and filling up the queue. But now when I run mailq, I get:

unknown: warning: /etc/postfix/main.cf, line 690: overriding earlier entry: config_directory=/etc/postfix


Is this something to worry about? If I run what you said above, will it fix this?


Thanks!

Nov 17, 2016 7:26 AM in response to Infinitybeach

Hello guys,


I am having the same problem here.


I came from Server app 3 and OSX 10.9.5 to OSX 10.11.6 to Server app 5 and OSX 10.12.1, and when i tried to reload postfix in this version, i receive several warnings,


remote:~ root# postfix reload

postfix: warning: /etc/postfix/main.cf, line 690: overriding earlier entry: config_directory=/etc/postfix

/usr/sbin/postconf: warning: /etc/postfix/main.cf, line 690: overriding earlier entry: config_directory=/etc/postfix

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: use_sacl_cache=yes

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: imap_submit_cred_file=/Library/Server/Mail/Config/postfix/submit.cred

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: mydomain_fallback=localhost

postfix/postlog: warning: /etc/postfix/main.cf, line 690: overriding earlier entry: config_directory=/etc/postfix

postfix/postfix-script: refreshing the Postfix mail system

postsuper: warning: /etc/postfix/main.cf, line 690: overriding earlier entry: config_directory=/etc/postfix


I have tried KrawNET and Boddie solutions and i continue to receive the same output.


I am using my mail service as it came by default, i have not made any configuration, with old settings that i was using before.


Inside of that /etc/postfix/main.cf there is no config_directory=/etc/postfix,


mydomain_fallback = localhost

message_size_limit = 10485760

biff = no

mynetworks = 127.0.0.0/8, [::1]/128

smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit

recipient_delimiter = +

smtpd_tls_ciphers = medium

inet_protocols = all

inet_interfaces = all

config_directory = /Library/Server/Mail/Config/postfix

server_config_directory = /Library/Server/Mail/Config/postfix

compatibility_level = 2


Other entries are in this file.


Dont know but that missing entry of config_directory=/etc/postfix could be the problem and from what i am seeing it could be a problem when someone come from a previous versions of Server App/OSX. The system must assume old values from previous configurations, and it fails in this new version. The best way to solve this it could be from comparing one fresh postfix installation dont know.


Any one knows other ways to solve this?

Nov 17, 2016 9:11 AM in response to Infinitybeach

And now i am having also a problem with command dig ... i am unable to use it, i am getting a big list with this:

del 0x1005a3070 size 112 file /Library/Caches/com.apple.xbs/Sources/bind9/bind9-45.101/bind9/lib/dns/message. c line 464 mctx 0x7f901cc0a9f0


Since i upgrade from a Server App with minimal services being use, i am gonna wipe this mac and do a fresh install to avoid forwarder problems, and i will never do again an upgrade in this OSX from now on, there is no insurance from what i am seeing. At least with me i cannot speak to much because i had to bought a new version of Server App an came from a very old OSX but from someone who already had Server app 4 or 5 and just did an OSX upgrade from the previous version, this is unbearable!

Upgrade to 10.10 breaks email server aliases

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.