Hello all,
I wan to set up an additional domain in postfix, whereby, to the outside world it is considered a separate and distinct postfix domain. Internally I have two separate unix accounts set up: unixmaindomain and unixadditionaldomain. I want that all mail ([EMAIL PROTECTED], [EMAIL PROTECTED], etc...) for the additionaldomain to be delivered to the second unix account to be downloaded by my IMAP MTU account.

This is what I tried so far:-

1. mydestinations
•       All settings for main domain were left unchanged;
•       Added "additionaldomain.tld to mydestinations in main.cf;
• Added additionaldomain, comma separated, to RHS of etc/postfix/ aliases: e.g. "admin: maindomain, additionaldomain"

The result
• Continued to be able to send emails addressed from [EMAIL PROTECTED] and [EMAIL PROTECTED]; • Continued ability to receive mail from [EMAIL PROTECTED]; • However, could only receive mail to [EMAIL PROTECTED] (to the correct unix account). All mail to other destinations (e.g. [EMAIL PROTECTED]) is bounced "User unknown in local recipient table".

Is there something additional I am meant to do to achieve what I want, or is it not possible using mydestinations


2.      Virtual alias domains
•       All settings for main domain were left unchanged;
•       removed all references to additionaldomain from main.cf
•       removed all references to additionaldomain from aliases file
•       postaliases hash...
• Created virtual_alias_domains file containing: "additionaldomain.tld 2208081538"
        •       Postmap hash...
• Created virtual_alias_maps file containing: "additionaldomain.tld [EMAIL PROTECTED],
                                                                                
[EMAIL PROTECTED],
                                                                                
[EMAIL PROTECTED],
                                                                                
[EMAIL PROTECTED],
                                                                                
... etc
        •       postmap hash...
• Edited main.cf - added: virtual_alias_domains = hash:/etc/postfix/ virtual_alias_domains
                                                virtual_alias_maps = 
hash:/etc/postfix/virtual_alias_maps
•       Postfix reload

The result
• Incoming mail rejected for all mapped users of additionaldomain. The mail failure error was: User unknown in local recipient table
•       The logs error read:
Aug 22 22:41:05 rosario postfix/error[28924]: 09B862667D7: to=<[EMAIL PROTECTED]>, relay=none, delay=1, status=bounced (User unknown in virtual alias table) Aug 22 22:41:05 rosario postfix/local[28926]: warning: database /etc/ aliases.db is older than source file /etc/aliases

Is there something additional I am meant to do to achieve what I want, or is it not possible using virtual alias domains

3.      Virtual Mailbox domains
• was about to try this alternative but decided to stop and ask for help.
•       Please help!

Best Regards
Rupert



Reply via email to