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

Mavericks/Server 3.0 mail / postfix aliases not working?

OS X Mavericks/Server 3.0 Users,


Upgrading to Mavericks and Server 3.0 appears to have broken my mail aliases.


I had these configured using /etc/postfix/aliases


Now there appears to be postfix information in both: /etc/postfix and /Library/Server/Mail/Config/postfix


I made changes to both of these and run "postalias" and stop & started the mail system, but it does not appear to work.


Can someone please advise on how you can create aliases now.


Thanks,


Zebity.

Posted on Nov 10, 2013 8:23 AM

Reply
27 replies

Nov 11, 2013 4:43 AM in response to William Bowden1

Hi William,


thanks for the good suggestion.


I put in the symbolic links from /etc/postfix -> /Library/Server/Config/postfix for aliases and aliases.db like you suggested.


I then added new alias to aliases and ran:


#postalias aliases


It generated a new aliases.db file... but when I got to send mail to the acount it does not work.


I did stop/start on the mail service, but still no alias.


I did a check with postconf and it returns:


alias_database = hash:/etc/aliases

alias_map = has:/etc/aliases


So I am still baffled on why the aliases are not working.


Any other ideas?


Cheers,


Zebity.

Dec 5, 2013 11:35 PM in response to FlorianLeo

You can use workgroup but if you want an alias that does not relate to a users say a catchy itschristmas@ then aliases is the best area for that.

Note aliases is for the servers domain any other domain comes under virtual_users.

the correct format for aliases is


thealias: alocaluser,anonelocal@somwhere.com


once saved you must then do postalias aliases then postfix reload


the corect format for virtual_users is


thealiase@theotherdomain.com alocaluser,anonelocal@somwhere.com


onve saved you must do a postmap virtual_users followed by postfix reload.


Tip for users in more than one domain

To get vacation messaging to work use the workgroup manager and ensure that all there different email addresses are there.

Dec 6, 2013 2:33 PM in response to William Bowden1

Hello William


the solution I provided works even if you use the mailaddress (like in my example donald@cokl.eu) for many recipients - I've tried this as well. I've added donald@cokl.eu to several users as an alternative, an alias that they should receive emails for, and they all received the mail addressed for donald@cokl.eu. So - isn't that what an alias is supposed to do?! This works perfect for approaches like with the famous info@abcd.efg, or support@abcd.efg. Just add these mail-address to all the users who should receive email for these addresses. One interesting question arises though - lets say I had configured 3 with same alias - what if the first of them read the email? Will this emails be marked as "read" on the inboxes of the second and third, too?


And BTW - cokl.eu is a virtual domain on this server, and I didn't edit the virtual_users file with the donald-address. However, the primary address for every virtual user is in place in the file like:

howard@cokl.eu userid@localhost.


However, how is vacation messaging configured?!


There are several different mechanisms for hosting multiple domains. It is possible to mix techniques if you must handle different domains in different ways.

To determine which technique or techniques you need, you must decide how postfix should deliver messages for virtual domains. There are two important considerations that influence how you should configure postfix for hosting multiple domains:

  • Should your domains have separate namespaces? For esample, should mail for the two addresses info@blue.com and info@red.com go to the same mailbox or separate ones? If they go to the same mailbox name them shared domains, and if the are delivered into different mailboxes then call it seperate domains.
  • Does every user require a system account? We'll make the distinction between system accounts that are real Unix accounts on your system, and virutal accounts. With virtual accounts, users can have mailboxes on your server, but don't otherwise log in to the system and don't require an entry in /etc/passwd.

With all that said you can consider 4 ways how postfix can handle mail for virtual domains:

  • shared domains with system accounts
  • separate domains with system accounts
  • separate domains with virtual accounts
  • virtual domains with a proprietary message store not managed by postfix

Your POP/IMAP server will be a major factor in deciding which tehnique you need. If your POP/IMAP server does not understand virtual domains, then it will most likely require that you have asystem accounts for all addresses - that's not the case with dovecot which runs on mavericks.


More of what I just cited can be found in the book "Postfix: The Definitive Guide" available from O'Reilly, written by Kyle D. Dent - which I would recommend reading first before messing around with Apples implementation of postfix - which is a little different - so to say.

Dec 6, 2013 3:03 PM in response to William Bowden1

William - in context of postfix an alias is NEVER related to any account on a system - that's the beauty of it! ℹ

Let me explain:

In my example - there never was, there isn't, and never will be an user-account which the address donald@cokl.eu litterally belongs to! That's the difference to the address josef.prinz@cokl.eu which is OWENED by the user Josef and has an explicit mailbox as well. There's NO mailbox for the donald@cokl.eu - that's only an alias - and therefore can be given multiple times to as many users your server has an account, thus a mailbox for!


I agree that what you're saying was true with former versions of OS X Server. I had the same problem when I moved to Mavericks - suddenly alias wasn't working anymore. Somewhere over the rainbow I found an unguilty site in the interenet that said: "hey, add the alias via workgroupmanager".

Dec 9, 2013 6:05 AM in response to FlorianLeo

Hi FlorianLeo


Postfix has not changed im Mavericks all I have said use Workgroup Manager if you want but aliases is my prefered methode .

I have several 10.9 servers (in all i manage @25 mail server) running mail and had no issue with aliases to resolve the two aliases I simply

did


ln -s /Library/Server/Mail/Config/postfix/aliases aliases

ln -s /Library/Server/Mail/Config/postfix/aliases.db aliases.db



it works if others are having issues then we need to look at the process they are taking to create aliases.


as for

"William - in context of postfix an alias is NEVER related to any account on a system - that's the beauty of it! "

That is what I said

Mavericks/Server 3.0 mail / postfix aliases not working?

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