[OT] - Configure sendmail to drop incoming unknown user emails

Ken A ka at pacific.net
Thu May 20 22:45:22 IST 2010


In /etc/mail/access

To:validuser at somedomain.com             RELAY
To:validuser2 at somedomain.com            RELAY
To:somedomain.com                       DISCARD

System users may not need to be listed, but if you are pulling them from 
ldap.. then maybe. I've used this on relays, not mail hub.

Why would you want to create such a spam magnet anyway?

Ken


On 5/20/2010 2:28 PM, Miguel Koren O'Brien de Lacy wrote:
> Hi Eduardo,
>
> Thanks for the answer. For now I would be happy just to silently discard mails
> to users that are not linux users on the same server. But my real problem
> further down the road is in ldap (active directory). So users not in AD are
> considered invalid emails. I decided to approach this in steps ;-)
>
> Miguel
>
> Eduardo Casarero wrote:
>>
>>
>>  2010/5/20 Scott Silva<ssilva at sgvwater.com<mailto:ssilva at sgvwater.com>>
>>
>>      on 5-19-2010 5:57 PM Miguel Koren O'Brien de Lacy spake the following:
>>      >  Ladies and Gentlemen;
>>      >
>>      >  I need to configure sendmail to silently drop emails received for
>>      >  unknown users on the server. In other words I don't want the sender to
>>      >  thinks that the email was received and then I want to put it in
>>      >  /dev/null. This is not for special needs for an internal application and
>>      >  not for any real interset email server. I searched around about how to
>>      >  do this and found some links that seem to imply that it's possible but
>>      >  no real solution. Can anyone point me to the right place for this?
>>      >
>>      >  Thanks.
>>      >
>>      >  Miguel
>>      >
>>      Sendmail should be doing this already... You have changed something to make it
>>      NOT reject unknown users.
>>
>>
>>  Sendmail can "discard" the email, in fact in access.db you can setup for
>>  example "From: 1.2.3.4 DISCARD" so every email from that ip is silently
>>  discarded. How do you now if an user is either valid or not? Ldap?
>>
>>      --
>>      MailScanner mailing list
>>      mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanner.info>
>>      http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>
>>      Before posting, read http://wiki.mailscanner.info/posting
>>
>>      Support MailScanner development - buy the book off the website!
>>
>>
>>
>>  --
>>  Esta mensagem foi verificada pelo sistema de antivírus e
>>  acredita-se estar livre de perigo.
>
> --
> Esta mensagem foi verificada pelo sistema de antiv�rus e
> acredita-se estar livre de perigo.
>

-- 
Ken Anderson
Pacific Internet - http://www.pacific.net


More information about the MailScanner mailing list