Solved

Sendmail Active Directory script?

Posted on 2006-10-19
3
454 Views
Last Modified: 2008-02-26
Okay guys - need a solution. I need to reduce the amount of junk coming through our system.

Here's a quick outline of the problem;

1) Email gets sent to fred@domain.com
2) Exchange says, we don't have a fred@domain.com, lets send a bounce message.
3) Exchange sends a bounce message to the sender, who of course doesn't exist because it was spoofed, so the email sits on sendmails outgoing mail queue.
4) Times this by 25,000 and I have a problem.

Who has a script (or can send me to the right location) for sendmail that can check if the recipient email is valid in active directoy before forwarding it on?
0
Comment
Question by:JigsawTech
3 Comments
 
LVL 19

Accepted Solution

by:
alextoft earned 500 total points
ID: 17771822
Best way to do this is via LDAP, ie. to have your mailserver query AD for a valid user and bounce accordingly. However if you deal with a large quantity of mail, this can slow things up quite a lot. Here's a good way to do it; cron a regular job to retrieve all AD users and drop them into a sendmail access file:

http://www.mimedefang.org/kwiki/index.cgi?Exchange2Access

0

Featured Post

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Centos Rescue and NFS Share 4 65
What method is the best for measuring DNS query response time ? - time vs. dig output 2 78
Squid Connection Pools 3 47
SIP Trunk provider 20 116
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now