Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Stop the smtp service on an Exchange 2007 server?

Reply
 
Old 07-19-2007   #11 (permalink)
Marco Shaw


 
 

Re: Stop the smtp service on an Exchange 2007 server?

SuneR wrote:
> "Rob Campbell" wrote:
>
>> I think this is going to have to come from the smtp service log to find the
>> 421 RC.
>> I believe the objective is not to bounce the email, but to defer any
>> delivery attempts for some period of time once a connection results in a 421,
>> not just for that email but for any email to that domain.

>
> This is exactly what I am trying to do. But with Marcos script below, I
> might be able to make something work. :-)


Exchange does not have a transport rule that will delay the delivery
though. That could be a feature request though.

I'd go with what Rob is saying with changing the hosts file and/or routing.

I'm not sure the hosts file would take effect immediately or not
(perhaps Exchange caches lookups?), but the routing change would effect
right away.

Need more help?

Marco

My System SpecsSystem Spec
Old 07-19-2007   #12 (permalink)
Glenn Wilson


 
 

Re: Stop the smtp service on an Exchange 2007 server?

What you might be able to do is create a SMPT Send connector for the hotmail
domain, then at the interval disable the connector for that domain.

Doing this will allow the rest of the mail traffic to continue flowing. I am
just starting to work more with E2007 and in researching have found that the
system has STMP Connectors for both send and recieve that you can configure
seperatly for different mail domains.

There are power shell scripts that ship with E2007 that will allow you to
disable and remove the connector as well ad add it back in. When you create
the connector in the GUI it displays the script in a text box, this script
can be called from powershell with the exchange commandlets enabled.

Glenn "Mykre" Wilson
http://www.virtaulrealm.com.au/blogs/mykre

"SuneR" <SuneR@discussions.microsoft.com> wrote in message
news:475ACC35-0683-441A-B740-F16D3E2F3F45@microsoft.com...
> We are in the process of getting a good mail reputation with hotmail.com,
> and
> hotmail.com wants us to stop sending them mail if they send us a 421 smtp
> code. That means we reached the limit, and that we should stop further
> sending to avoid getting a negative rep for that delivery.
>
> I am already looking into a solution with rules on an Exchange 2007 Edge
> Transport server, but so far no luck. But because I figure that no matter
> what, Powershell is a good approach to stop the mails from being sent to
> hotmail, that is why I ask here.
>
> What I have in mind is something like this:
>
> Make a powershell script that parses the logfile at intervals, and if it
> finds an smtp code 421 from hotmail, it will simply stop the smtp service
> on
> the server, I know that this means that mail to all other domains will be
> stopped also, but stopping mail to hotmail is top priority in this
> process,
> so a solution where the script stops the outgoing queue or enables a
> filter
> to stop outgoing mail to hotmail would be better but I dont know if thats
> easier/possible.
>
> However, I am not skilled enough to make this script without help - and I
> dont even know if this is a usable solution. So if anyone can give me some
> tips, a script that can do some or all of what I am looking for I would be
> very grateful!
>
> I know this is not an Exchange forum, but if someone knows about Exchange
> and knows of a better way to solve this, I am also very interested in
> learning more about it.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Set new primary SMTP-addresses in Exchange 2007 PowerShell
outlook 2007 and ms exchange server Vista performance & maintenance
Exchange 2007 Administration through 32-bit windows service. PowerShell
Microsoft Releases Public Betas of Exchange Server 2007 and Forefront Security for Exchange Server Vista News
Microsoft Releases Public Betas of Exchange Server 2007 and Forefront Security for Exchange Server Vista News


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46