This is a discussion on Re: virtual domain denied within the mailing.postfix.users forums, part of the Mail Servers and Related category; On Fri, Feb 18, 2005 at 02:41:23PM +0100, Sergi Asensio i Alb? wrote: > Now I want to ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Fri, Feb 18, 2005 at 02:41:23PM +0100, Sergi Asensio i Alb? wrote:
> Now I want to add a second domain, ?example.com?, the objective is that some > mail send two HYPERLINK "mailto:user1@firstdomain.com"user1@firstdomain.co m > go to HYPERLINK "mailto:user1@example.com"user1@example.com Please send plain text mail. Please follow the instructions at: http://www.postfix.org/DEBUG_README.html consider posting the output of "postfinger" (Google, download, run ...) > Nothing in mydestinations of main.cf and in virtual file something like this > > Seconddomain.com Virtual > @seconddomain.com @firstdomain.com This is not a good idea. You lose the ability to do recipient validation. You also need to "postmap the file" and add: virtual_maps = ${default_database_type}:/etc/postfix/virtual to main.cf, but don't do it this way. > Second Option > > Mydestinations = $mydomain, localhost.$mydomain, seconddomain.com, http://www.postfix.org/BASIC_CONFIGU...#mydestination http://www.postfix.org/postconf.5.html#mydestination Note the singular lower case parameter name! > And in virtual file > > @seconddomain.com @firstdomain.com > You generally don't need this to create this mapping, but a lot depends on the mailstore and its user database (delivery likely via "mailbox_transport"). Ideally the mailstore can be configured to accept both domains as equivalent for each user without any need for Postfix to perform rewrtiting. > Always after modified virtual file I do postmap and rcpostfix reload. > It is not generally necessary to reload in this case. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majordomo@postfix.org?body=unsubscribe%20p ostfix-users> |