Inpect and block outgoing emails.

Hello, I am new in Exchange Server Development. My task is to create TransportAgent that can inspect and sometimes block outgoing emails. It is important for me to inspect and block internal emails too(not only emails going out of organization). I need to
support Exchange 2010, 2013.
Thanks in advance,
Vitaly

As others have mentioned probably what you want can be done via Transport Rules.
However if you have some form of content that can't be caught with Rules and you want to use a Transport Agent then.
>> It is important for me to inspect and block internal emails too(not only emails going out of organization). I need to support Exchange 2010, 2013.
  Then using a routing agent
http://msdn.microsoft.com/en-us/library/office/aa563310(v=exchg.150).aspx (the OnSubmittedMessage is probably the most appropriate) and
http://msdn.microsoft.com/en-us/library/office/aa579261(v=exchg.150).aspx#Namespaces is the way to go as this will catch both Internal and External email. If you want to write one agent that will work on both 2010 and 2013 then you want compile with the
2010 binaries and then use the
http://technet.microsoft.com/en-us/library/jj591524(v=exchg.150).aspx on 2013 (or just compile a different version for 2010 and 2013).
Cheers
Glen

Similar Messages

  • Block outgoing email because of VPN server

    We have Cisco VPN on ASA for over 4 years. Recently, barracudacentral.org blocks our outgoing email because of these reasons: •Your email server contains a virus and has been sending out spam. •Your email server may be misconfigured. •Your PC may be infected with a virus or botnet software program. •Someone in your organization may have a PC infected with a virus or botnet program. •You may be utilizing a dynamic IP address which was previously utilized by a known spammer. •Your marketing department may be sending out bulk emails that do not comply with the CAN-SPAM Act. •You may have an insecure wireless network which is allowing unknown users to use your network to send spam. •In some rare cases, your recipient's Barracuda Spam Firewall may be misconfigured. This is the undeliverable message: barracudacentral.org rejected your message to the following e-mail addresses and  gave this error: Service unavailable; Client host [VPN IP address-illinois.hfc.comcastbusiness.net] blocked using Barracuda Reputation; http://bbl.barracudacentral.com/q.cgi?ip=VPN IP Address The IP address they blocks is our VPN server. Why?                   

    gmail issue
    Your post is the 4th one already this morning.
    This is a gmail issue, contact them.

  • Airport blocking outgoing emails?

    Hi, I have a new airport extreme and it seems that it is causing problems with outgoing email, I can recieve emails but can't send, when I try it says my smtp settings are wrong. My smtp settings are definitley right, is there a firewall interfering?. Any ideas how to fix this?
    Thanks
    Howie

    Did you change any of the ports on the AirPort Extreme, particularly port 25? Can you open up a terminal window and telnet to port 25 on your smtp server? If you don't know how to telnet to port 25 on your server, then let's suppose your smtp server's name is smtp.some.com, so you would type
    telnet smtp.some.com 25
    If that works when your Mac is directly connected to your network (no wi-fi), but fails when it is using wi-fi, there is indeed a problem. If it fails when directly connected, call your ISP to ask for assistance.

  • Blocked outgoing email in Exchange

    We are running SBS 2003 with Exchange Server 2003. The purpose of this question is more of an understanding how email works with exchange server. The problem started about two weeks ago when we switched ISP to Comcast. At that moment email was being blocked
    by Hotmail and Gmail. We would get the following message back.
    There was a SMTP communication problem with the recipient's email server. Please contact your system administrator.
    <nhnr.org #5.5.0 smtp;550 OU-002 (COL004-MC4F51) Unfortunately, messages from 73.189.0.xxx weren't sent. Please contact your Internet service provider since part of their network is on our block list. You can also refer your provider to <a href="http://mail.live.com/mail/troubleshooting.aspx#errors.>"
    target="_blank">http://mail.live.com/mail/troubleshooting.aspx#errors.>
    MXTOOLBOX says that the public ip address comes on one blacklist - Spamhaus ZEN.
    Here is the question. If I send mail through exchange to a hotmail account it will be bounced back and undeliverable with the above message. If I configure a POP account and send an email to hotmail it will successfully go through. Why does the POP work and
    not the Exchange?
    Thanks
    Chris

    Thanks for the reply.
    Are you configuring the Exchange server as your SMTP server for your POP3 client?
    That is correct.
    I'll also ask the following, to see if we can fix your Exchange delivery issue:
    Do you have an SPF record in DNS?
    Yes we do have an SPF record setup in DNS zone file.
    Have you configured your system to send through the COMCAST SMTP systems, or are you sending direct using DNS? If so, is the IP address of this system included in the SPF record you have in DNS?
    The mail is setup to be sent through DNS.  Are you talking about the public IP address or the IP address of the server?  Either way neither of those IP address are in the SPF record. 
    If not, is your own IP address included in your SPF record in DNS?
    The mail is hosted by Bluehost and their IP address is in the SPF record.
    Have you contacts SpamHaus to determine why your IP address is on their blocklist?
    No I have not contacted SpamHaus yet.  I initially thought that is was Comcast problem but then they said it was not.  Anyway after trying different things I setup an email account (not using exchange) and was able to send email to the
    previously blocked addresses.  So I thought it might be some config problem.

  • I upgraded to Yosemite and my outgoing email doesn't work.  What to do?

    I upgraded to Yosemite and now my outgoing email doesn't work.  What should I do?

    Try removing the email account in Mail's preferences. Then re-configure a new account with the correct information. Be sure you know what that information needs to be for your account.
    You can also just check your outgoing mail setup and be sure it's correct.

  • TS3899 iPhone 6   Junk box and blocking junk email from the inbox?

    iPhone 6 when I flag my email as junk it will not move into the junk box, instead it stays in the inbox. Also is there any way of blocking junk email from the inbox?

    What if you are connected to another wifi network assuming your are using that when in the office.

  • An incorrect email address I put in the BCC field has repeated itself infinitely and blocked outgoing messages. I can select but not delete the long list from the Warning. What can I do?

    I put an incorrect email address in the BCC field of an email. A 'Warning' dropped down where the address was repeated until it fell off the bottom of the screen. No closure button at the top so I can't close it. I can select all the repeat addresses but can't delete them. I can't shut down or restart the computer because Mail can't close. Any ideas, please?

    Aha! Pressed escape button and managed finally to close the Warning. Phew! I could then erase several hundred repeats of the mistaken address from the BCC field. Sorry to bother you all. Hellen.

  • Verzon Blocking Outgoing Email Server

    Have read on other posts regarding something like this. Its not the port as I have chanced between 25 and 587. There is no set up issue and no I do not need to reinstall Windows.
    I have three ISPs due to frequent travel. In the US I am able to send and reveive email from my Verizon account using Outlook without problems. Can even do this using a Verizon compeitor's servie to access the Internet.
    When abroad, incoming email using Verizon is OK. Outgoing is blocked. This is consistent.
    Can Verizon comment on this? Either admit it and I will find an alternative or provide a solution. A "whitelist" inquiry was made but unanswered. I read on another post where Verizon danced around a FIOS cussomers exact same complain.
    You have 2 business days or I'm filing an FCC complaint and encouraging everyone with the same problem to do so. It's not so much the blocking but hte failure to provide a workaround for legitimate use, failure to answer, and inclination to be indifferent while taking money form customers.

    If I understand your complaint correctly, you are unable to use Verizon's outgoing server (outgoing.verizon.net) on networks outside of the US.
    What error are you getting?
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • Does Verizon block outgoing email?

    I have three email accounts, one from gmail and two from owned domains.  I use Thunderbird to recieve and send email.  For the past week, I have not been able to send email from one of my email accounts.  This is the error that I receive:
    An error occurred while sending mail.  The mail server responded: Unauthorized relay msg rejected. Please check the message recipients and try again.
    I have checked my settings, and nothing has changed in the last week.  The only "work around" I have is to use send through one of my other email addresses.
    Email comes in fine for all three email addresses.  And I can send fine with two of them, gmail and one of my owned domains.
    Please let me know if Verizon has started to block the sending of some emails and what I might be able to do about it.
    Thank you,
    Anne Plouffe

    Verizon recently started implementing port 25 blocking as a way to combat spammers on their network. If you are using your non-verizon.net address to send via a pop3 client, this may be the cause of your issue.
    There is more information available at http://www.verizon.net/port25
    If you have any questions about the information found there just say so, and myself or one of the other forum members will do our best to find an answer for you.
    Hope this helps!
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • Blocking OUTGOING eMail to certain addresses

    In looking up this question, I found this http://discussions.apple.com/thread.jspa?messageID=3321398&#3321398 and was wondering if I could change the RegEx to:
    /^To: .*<annoying@domain\.com>/ DISCARD
    so as to deny the server from sending any email to the annoying eMail address?
    And instead of quietly, make it known to the sender that the address is not allowed, denied, can't be sent to, should not be disturbed, etc...

    Almost.... except that the "To:" header is not present when the message first goes from the mail client to your server (or at least that is what I have found).
    The only header which can be searched is the first one added by your server (this is the bottom one if you look at the Full Headers of an incoming email), e.g,...
    Received: from [10.0.0.105] (unknown [10.0.0.105]) by mail.panoramicscotland.com (Postfix) with ESMTP id 4D3AB45133 for <[email protected]>
    So your entry in the header_check file would be (for the above)...
    /^Received.for.<[email protected]>/ REJECT No sending to this address!
    The ".*" each side of the "for" will expand to the other text in the header.
    What the sender will get is an immediate "Error" message displayed by their email client, displaying the text after the REJECT text as the reason for the error.
    Give it a go - it's real easy to set up.
    Note you need to issue a 'postfix reload' after creating/editing the header_check file.
    -david
        Server 10.4.8

  • I have lost my keyboard sounds and my outgoing email sound?

    I have all sounds checked to be on and have also rebooted several times but no results. Any help would be very appreciated
    Thanks

    Try #2 and #3 in link below. If neither work, you most likely have a hardware issue.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • Ironport C170 Relay outgoing Email to External Server

    We have a new Ironport C170 and am only using the appliance for Encryption/DLP.  We wish to have incoming and outgoing Email to flow through this appliance.  All incoming Email will be relayed to our Exchange Server and all outgoing Email will be relayed to our SAAS Email Filtering System for processing and delivery.  The incoming part I believe is configured correctly but am having issues figuring out how to relay all outgoing to a specific domain in the cloud.
    Any assistance would be greatly welcomed,
    Stephen

    Hi Stephen,
    You can control all the outgoing mail from SMTP Route configuration, if is in GUI menu > Netowork > SMTP Route.
    You can define the route to next hop based on destination domain, as for default - all other domains (this is the one that goes to SaaS) you can enter your cloud SMTP address and the port number there.
    Hope this helps.
    Thanks,
    Donny

  • No outgoing email on ATT 3GS?

    God help me but I upgraded my iPhone 3GS to iOS5 and my outgoing email immediately crapped out. I had 2 email accounts set up. 1) my personal POP account @comcast.net and using smtp.comcast.net as outgoing server. I also had my work account, a IMAP account, set up using either the same outgoing server and.or the att server "cwmx.com."
    Until the upgrade and opening of an icloud account using my personal comcast account/Apple ID --- both worked fabulously.
    Post upgrade, I've deleted the @comcast account - I'm using a Comcast app to send and receive email there. Had it installed before upgrade and since it just duplicated everything, I kept it and deleted the email account. But I've repeatedly set up my IMAP account, with both prevously noted outging servers set up and on, and I cannot SEND email. Receive yes, send, no! Oddly enough I have the same email accounts set up on my ipad2 and it works as it does on my MacBookPro.
    I have smtp.comcast.net set as the primary outgoing server and cwmx.com as an "other", When I try to send I get an error message saying the cwmx server is not responding.
    I should also mention that I se a ATT signal booster or mini cell here at home so my utgoing calls are made over wifi but I don't know if that makes any difference.
    When I attempt to send a email I get the error message - The connection to the outgoing server "cwmx.com" failed.
    Incredibly frustrated. Any ideas???

    honestly, i really dont know. I would think it supports it as in other people can access eircom email on mobiles....
    when i start to setup on iphone it automatically sets up as POP but i have also tried as IMAP and this also does not work.
    the settings for incoming mail server automatically fills in when i click save on the first step.
    very sorry, i really dont understand any of this .......

  • Farm outgoing email multiple addresses

    Is it possible in SP2013 to configure multiple email accounts for the outgoing email?
    I wish to have one email address for each web application.

    Yes, You can.
    Go to the Central Admin > Application management > Web Application
    >Manage Web Application
    Click on the Web Application(which email address you want to change) and from Ribbion Click on the Setting Drop down and Hit Outgoing-Email.
    On Pop up you can enter outgoing email address.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Outgoing Emails fails after Port 25 blocked by email administrator

    Hi, our email team administrator has blocked the port 25 and restricted user to use SSL port 465 instead. The share point SMTP email setup page only shows TLS encryption check box (no ssl encryption check box available)
    Is this a limitation on share point 2010 that only TLS encryption available? Please kindly advice.
    Thank you.

    Hi Layman,
    According to your description, my understanding is that you want to configure the SMTP to use port 465 for outgoing email in SharePoint.
    Per my knowledge, Exchange server will secure communication over any port, but will not use SSL, so there is only TLS encryption in SMTP.
    To use port 465, we can add the port 465 under Network tab to the Receiver Connector for SharePoint Outgoing email. And then TCP port number on Outbound Connections in
    DSMTP Virtual Server properties.
    More references:
    http://blogs.technet.com/b/tirumals/archive/2012/03/17/step-by-step-configuration-of-outgoing-emails-from-sharepoint-to-microsoft-online.aspx
    http://support.microsoft.com/kb/829721/en-us
    http://social.technet.microsoft.com/Forums/exchange/en-US/8dc08cf8-8662-4a02-a181-f821e8d59d06/exchange-smtp-using-port-465?forum=exchangesvrgenerallegacy
    For more information, you can post your question to the forum for Exchange: http://social.technet.microsoft.com/Forums/exchange/en-US/home?category=exchangeserverlegacy .
    More experts will assist you, then you will get more information relation to Exchange.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for