>Please do not top-post your replies. It makes your old thread much >harder to follow. Thank you. > >On Sun, Mar 04, 2012 at 11:58:26AM +0000, Luca Pacor wrote: >> Now postfix delivers everything @ that.domain to their mailer, also >> for the user I manage locally: >> >> Mar 4 12:24:07 server6 postfix/trivial-rewrite[7155]: warning: >> do not list domain that.domain in BOTH mydestination and >> virtual_alias_domains > >That is a plain-language warning which should have told you at least >one thing that you have done wrong. Apparently your munged domain >name is listed in BOTH mydestination and virtual_alias_domains. Pick >one or the other, no more than one address class per domain.
If that.domain is in mydestination everything @ that.domain is delivered locally (wrong), if it's in transport everything will be delivered to that.domain, including myuser (wrong) > >http://www.postfix.org/ADDRESS_CLASS_README.html > >[snip logs with nothing else of note] >> I am sure I did something wrong, but I am still too much of a >> bloody newbie in matter postfix to be able to discover what... :-( > >Start out by describing the problem and the ultimate goal in plain >terms. For any new Postfix install, this one might help: >From the beginning thenÅ I want to be able to manage locally one mail address of a certain domain (which is not managed by me) and to send all the mails to all the other addresses @ that domain to the internet. This is a small home network. Incoming Scenario: fetchmail -> postfix -> amavis -> postfix -> exchange This domain has been configured as local on exchange and the user has got an exchange mailbox. Everything works fine there. Outgoing Scenario: exchange -> postfix -> amavis -> postfix -> smarthost Now, which settings are necessary to make postfix deliver all mail for myuser@thatdomain locally and all the other to the smarthost? These are the settings I have: relay_recipients: myuser@that.domain OK sender_dependent_relayhost: myuser@that.domain smtp:[exchangeserver.local] transport: that.domain smtp:[that.domain] .that.domain smtp:[that.domain] [snip] ***************************** ***************************** This e-mail and any files transmitted with it may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-Mail in error) please notify the sender immediately and destroy this e-mail. unauthorized copying, disclosure or distribution of the material in this e-mail without the prior authorization of the sender is strictly forbidden. Please also note that while our own software systems have been used to try to ensure that this e-mail has been swept for viruses and other malicious contents using the latest virus signatures, we do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please make sure that your own checks are carried out before any attachments are opened. If you feel you have received this E-mail in error please e-mail postmas...@solid-con.com (c) Solid Consulting Limited & Co. KG 2012 ***************************** ****************************