Hi Noel Jones ,

Thank you very much for your valuable suggestions.....


Regards,
Kalyan



Noel Jones-2 wrote:
> 
> On 4/19/2012 6:33 AM, kalyanspeaks wrote:
>> 
>> Hello  Michael,
>> 
>> Thank you very much ...Its working.....great help...
>> 
> 
> Your expression is still broken.
> 
> /example.com$/ will still match
> anythingexample.com
> notexample1com
> example2com
> etc...
> 
> You need to anchor the beginning of the domain name, and periods
> should be escaped to prevent them from matching any single character.
> 
> /@example\.com$/
> 
> 
>   -- Noel Jones
> 
>> 
>> Regards,
>> Kalyan
>> 
>> 
>> 
>> 
>> 
>> 
>> Michael P. Demelbauer wrote:
>>>
>>> On Thu, Apr 19, 2012 at 03:33:16AM -0700, kalyanspeaks wrote:
>>>> Hi All,
>>>>
>>>> I have used abc.com ( Example ) domain emails to relay directly to one
>>>> exchange server by
>>>> mentioneing the same in transports file. and all other domain mails
>>>> should be relayed to another defualt relay server which i mentioned on
>>>> main.cf file .
>>>>
>>>>
>>>> The problem here is when iam sening email to abc.com.cn also it is
>>>> trying to relay to exchange server which is mentioned in transports
>>>> file...
>>>>
>>>>
>>>> Transport file is as below
>>>>
>>>>
>>>> /abc.com/ smtp:[IP Address of exchange server]
>>>>
>>>>
>>>> Can anybody help here...
>>>
>>> If I read the doc right, the regexp-implentation of the OS in use can
>>> also be used in the transport file.
>>>
>>> So you imo should write
>>> /abc.com$/ smtp:[IP address of exchange server]
>>>
>>> to only match lines that end with abc.com (under Linux regexps are
>>> documented in 'man 7 regex'
>>>
>>> As I don't have much clue of postfix, I'm not sure whether this is
>>> helpful. Apologizes if not.
>>>
>>> lG
>>> -- 
>>> Michael P. Demelbauer
>>> Systemadministration
>>> WSR
>>> Arsenal, Objekt 20
>>> 1030 Wien
>>> --------------------------------------------------------------------------------------------------------------
>>> root@blarozzo:/# apt-get moo
>>>          (__) 
>>>          (oo) 
>>>    /------\/ 
>>>   / |    ||   
>>>  *  /\---/\ 
>>>     ~~   ~~   
>>> ...."Have you mooed today?"...
>>>
>>>
>> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Problem-when-sending-to-suffix-domians-%28-example-%3A-abc.com.cn-%29-tp33713272p33732131.html
Sent from the Postfix mailing list archive at Nabble.com.

Reply via email to