| Main Archive Page > Month Archives > postfix-users archives |
On 26/03/2012 16:34, Alex wrote:
> Hi,
>
>>>>> I am trying to build a relay server using postfix-2.8.7 on fedora16
>>>>> for one domain and a few sub-domains. This server should only accept
>>>>> mail from two specific public-facing postfix servers that accept mail
>>>>> for these domains, process the mail with amavisd/spamassassin, then
>>>>> forward the resulting mail to this relay server.
>>>>>
>>>>> Once the mail has been received by this relay server, it should
>>>>> forward it into the internal Exchange server for the end-users.
>>>>>
>>>>> Do I just define a few transport maps for this? Currently I have this:
>>>>>
>>>>> mailrelay.example.com local:
>>>>> example.com smtp:mail.example.com
>>>>> dom1.example.com smtp:smtp.dom1.example.com
>>>>> .dom1.example.com smtp:smtp.dom1.example.com
>>
>> i would go to smtp:[smtp.dom1.example.com]25
>> in order to avoid mx record lookup for the domain.
>> adn the local: is not really needed.
>> just list the remote domains.
>> i would see some benefit with a main relay server that can be a redundant
>> point for the domain queue.
>
> Awesome, thanks for your help. I've also added the following for relay_domains:
>
> relay_domains = $mydestination, $transport_maps
you can't.
it's collision between directives...
remove the mydestination from relay domains.
domain is either one of three: local(mydestiation), virtual,relay
Regards,
Elizer
>
> Thanks,
> Alex
-- Eliezer Croitoru https://www1.ngtech.co.il IT consulting for Nonprofit organizations eliezer <at> ngtech.co.il