SV: Sendmail gateway using mailertable and access db

Johan.Hedlund at Johan.Hedlund at
Wed Nov 22 12:36:20 GMT 2006


If you're using Exchange as a mailserver you sure have a Active Directory, why not use sendmail with LDAP to verify you mailadresses ? 

There should be more material on the subject than using Access ;-)


-----Ursprungligt meddelande-----
Från: mailscanner-bounces at [mailto:mailscanner-bounces at] För Jens Ahlin
Skickat: den 22 november 2006 12:19
Till: mailscanner at
Ämne: OT: Sendmail gateway using mailertable and access db

Hi All,

I have a MailScanner box (CentOS 4) with sendmail-8.13.1-3 acting gateway in front of an Exchange server (Not my decision). Now all mails for all domains handled are scanned and forwarded to the exchange server. Lately the amount of mail for unknown recipients has exploded over the roof and I need to implement  a quick solution. The server is dying and I don't want to be "that guy" that send undeliverable reports for spam/virus.

I'm using access db for another installation and it works fine there but the MailScanner box is not a gateway. All mails are delivered locally. Now with a sendmail installation in gateway mode this doesn't work. I have a script that pulls all valid email addresses from the exchange server and want to use access db to block all but my valid users. I have looked at milter-ahead  but I could not figure out if this is the right thing for me.

My config using as domain and as the Exchange server IP address.

mailertable: smtp[]

access db:     RELAY     RELAY

TO:user at    RELAY         ERROR:5.1.1:550 User unknown

I have no "relay" FEATURE in my

Using this config results in all mails sent to user at are rejected with error 550 User unknown.

I have read the sendmail documentation regarding access db and tried a lot of different settings (Only TO:, Only Connect:, TO: and Connect:)

Any idea of how to do this?


MailScanner mailing list
mailscanner at

Before posting, read

Support MailScanner development - buy the book off the website! 

More information about the MailScanner mailing list