grep email regular expression
grep -E -o “[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,6}”
Read More grep email regular expressiongrep -E -o “[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,6}”
Read More grep email regular expressionCooked this up in a few minutes. Should return all proxyAddress that are SMTP and all SMTP default addresses for all users not disabled in a specified Organizational Unit. ldapsearch -x -h ldapserver.example.com -b ou=Users,ou=example,dc=example,dc=com -D exampleldapadmin -w s3cr3t ‘(& (objectClass=User)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))’ | grep -i ^mail|^proxyAddresses: SMTP: | grep -v mailNickname | sed ‘s/mail: //’ |…
Read More ldapsearch to get all SMTP email addressesI’ve recently setup a test Exchange 2013 environment and have been playing around with configuration. Here are the steps to apply a disclaimer to outbound email for a specific group. Ahead of time, I created a distribution group called Corporate Staff and added myself to it.
Read More Exchange 2013: Add a Disclaimer to Outbound EmailThis is a quick howto on adding an email address to the whitelist or Safe Senders list in Hotmail at http://www.hotmail.com/. 1) On the right side of the hotmail screen, there’s an “Options” link you can click on and then select “More options” 2) On this page, click on “Safe and blocked…
Read More How to Whitelist or add Email to Safe Sender in HotmailI set up a Cisco router to send an email whenever a VPN user connected. I did this for accounting purposes before I moved to RADIUS. I’ll put this up here because someone else may be interested in this for their own use. Step 1: Environment Variable Setup I like to configure variables to use…
Read More Cisco IOS EEM: Send Email on VPN ConnectionI needed to setup notification to be sent via email when a circuit went down and failed over to a backup circuit on a Cisco Router 2921. Here’s what I did. Create IP SLA I create my IP SLA to monitor ICMP of the internet… router(config)#ip sla 1 router(config)#icmp-echo 8.8.8.8 source-interface GigabitEthernet0/0 router(config)#ip sla schedule…
Read More Cisco EEM Applet – Send Email Notification on Internet Circuit Failure