Solved

Sendmail Active Directory script?

Posted on 2006-10-19
3
452 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

705 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

17 Experts available now in Live!

Get 1:1 Help Now