Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
sendmail/cyrus accepts mails for "unknown users"
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Marcus Schopen  
View profile  
 More options Dec 1 2004, 10:34 am
Newsgroups: comp.mail.sendmail
From: Marcus Schopen <li...@localguru.de>
Date: Wed, 01 Dec 2004 16:34:16 +0100
Local: Wed, Dec 1 2004 10:34 am
Subject: sendmail/cyrus accepts mails for "unknown users"
Hi,

the info-cyrus maillingliste told me to place my question here:

I'm runnung sendmail 8.12.3 (Debian woody standard package) with
cyrusv2mailer (cyrusv2.m4,v 1.1 2002/06/01) and cyrus 2.1.17 (backport from
http://people.debian.org/~hmh/).
  Today I had a heavy spam attack caused by the fact, that sendmail accepts
mails for non existing users (all addresses are defined in aliases or
virtusertable). Emails those unknown accounts on local domains
(local-host-names) will be accepted and than(!) bounced. Is there a way to
stop/reject these mails at "rcpt to: user unknown"-point?

Thanks,
Marcus


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ingo Freund  
View profile  
 More options Dec 1 2004, 11:04 am
Newsgroups: comp.mail.sendmail
From: "Ingo Freund" <Rogge...@gmx.de>
Date: 1 Dec 2004 16:04:16 GMT
Local: Wed, Dec 1 2004 11:04 am
Subject: Re: sendmail/cyrus accepts mails for "unknown users"
Hi,

Marcus Schopen wrote:
> Hi,

> the info-cyrus maillingliste told me to place my question here:

> I'm runnung sendmail 8.12.3 (Debian woody standard package) with
> cyrusv2mailer (cyrusv2.m4,v 1.1 2002/06/01) and cyrus 2.1.17
> (backport from http://people.debian.org/~hmh/).
> Today I had a heavy spam attack caused by the fact, that sendmail
> accepts mails for non existing users (all addresses are defined in
> aliases or virtusertable). Emails those unknown accounts on local
> domains (local-host-names) will be accepted and than(!) bounced. Is
> there a way to stop/reject these mails at "rcpt to: user
> unknown"-point?

if you really have all your users in virtusertable (those with
local mailboxes too) you can do this:

virtusertable:

# for these users we accept mails (and maybe redirect)
us...@domain.com         user1
us...@domain.com         %...@domain.de
us...@domain.de          user3

# the rest must be unknown and can be rejected
@domain.com                     ERROR 5.5.0:"550 unknown user"
@domain.de                      ERROR 5.5.0:"550 unknown user"

did you already think about using greylisting against spam?
It is incredible.

Bye - Ingo.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcus Schopen  
View profile  
 More options Dec 1 2004, 12:01 pm
Newsgroups: comp.mail.sendmail
From: Marcus Schopen <li...@localguru.de>
Date: Wed, 01 Dec 2004 18:01:34 +0100
Local: Wed, Dec 1 2004 12:01 pm
Subject: Re: sendmail/cyrus accepts mails for "unknown users"

That doesn't work. As soon as the cyrusv2 mailer is used in sendmail.mc the
virtusertable seems not to be checkt at the "rcpt to:"-point any more. The
message is accepted and than bounced. It must have something to to with the
cyrusv2 mailer.

Andrzej Adam Filip posted me this link on the info-cyrus list:

  http://anfi.homeunix.net/sendmail/rtcyrus2.html

but there are no sendmail-8.13.x and Cyrus-2.2.x packages for Debian and I
don't want to build all that stuff from source. Isn't there another way?

Cheers,
Marcus


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ingo Freund  
View profile  
 More options Dec 1 2004, 2:28 pm
Newsgroups: comp.mail.sendmail
From: "Ingo Freund" <rogge...@gmx.de>
Date: 1 Dec 2004 19:28:17 GMT
Local: Wed, Dec 1 2004 2:28 pm
Subject: Re: sendmail/cyrus accepts mails for "unknown users"

I use cyrus and the config works.
Now let's see where we could find differences.
When I tell my sendmail to use the cyrusv2 mailer I can find
these Mailer specs in sendmail.cf

##################################################
###   Cyrus Mailer specification               ###
##################################################

#####  $Id: cyrus.m4,v 8.23 2001/11/12 23:11:34 ca Exp $ (Carnegie
Mellon)  #####

Mcyrus,         P=/usr/cyrus/bin/deliver, F=lsDFMnPqAh5@/:|, S=EnvFromL,
R=EnvToL/HdrToL,
                U=cyrus:mail, T=DNS/RFC822/X-Unix,
                A=deliver -e -m $h -- $u

Mcyrusbb,       P=/usr/cyrus/bin/deliver, F=lsDFMnPu, S=EnvFromL,
R=EnvToL/HdrToL,
                U=cyrus:mail, T=DNS/RFC822/X-Unix,
                A=deliver -e -m $u

#########################################
###   Cyrus V2 Mailer specification   ###
#########################################

#####  $Id: cyrusv2.m4,v 1.1 2002/06/01 21:14:57 ca Exp $  #####

Mcyrusv2,       P=[IPC], F=lsDFMnqXzA@/:|m,
                S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n,
                T=DNS/RFC822/SMTP,
                A=FILE /var/imap/socket/lmtp

The Mailer Flags

cyrus:   F=lsDFMnPqAh5@/:|
cyrusv2: F=lsDFMn qXzA@/:|m

differ for:   cyrus: P h 5
and         cyrusv2:       X z m

From sendmail-source-tree/doc/op/op.txt

P  Use  the route-addr style reverse-path in the SMTP
   "MAIL FROM:" command rather than just  the  return
   address; although this is required in RFC 821 sec-
   tion 3.1, many hosts do not process  reverse-paths
   properly.   Reverse-paths  are officially discour-
   aged by RFC 1123.

h  Upper case should be preserved in host names  (the
   $@  portion  of  the  mailer triplet resolved from
   ruleset 0) for this mailer.

5  If no aliases are found for this address, pass the
   address  through  ruleset 5 for possible alternate
   resolution.  This is intended to forward the  mail
   to an alternate delivery spot.

X  This  mailer wants to use the hidden dot algorithm
   as specified  in  RFC  821;  basically,  any  line
   beginning  with  a  dot  will  have  an  extra dot
   prepended (to be stripped at the other end).  This
   insures that lines in the message containing a dot
   will not terminate the message prematurely.

z  Run Local Mail Transfer  Protocol  (LMTP)  between
   sendmail  and the local mailer.  This is a variant
   on SMTP defined in RFC 2033 that  is  specifically
   designed for delivery to a local mailbox.

m  This mailer can send to multiple users on the same
   host  in  one transaction.  When a $u macro occurs
   in the argv part of the  mailer  definition,  that
   field will be repeated as necessary for all quali-
   fying users.  Removing this flag can defeat dupli-
   cate supression on a remote site as each recipient
   is sent in a separate transaction.

The only idea I have for this could be the different
flag "5" in the mailer spec.

So you might try:

MODIFY_MAILER_FLAGS(`CYRUSV2', `+5')dnl

in your .mc file

Bye - Ingo.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ingo Freund  
View profile  
 More options Dec 1 2004, 3:08 pm
Newsgroups: comp.mail.sendmail
From: "Ingo Freund" <rogge...@gmx.de>
Date: 1 Dec 2004 20:08:36 GMT
Local: Wed, Dec 1 2004 3:08 pm
Subject: Re: sendmail/cyrus accepts mails for "unknown users"

"Ingo Freund" wrote:

[...]

forget what I wrote before, it is definitly not the right way.

Bye - Ingo.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrzej Adam Filip  
View profile  
 More options Dec 1 2004, 5:16 pm
Newsgroups: comp.mail.sendmail
From: "Andrzej Adam Filip" <a...@priv.onet.pl> ( http://anfi.homeunix.net/ )
Date: Wed, 01 Dec 2004 22:16:00 +0000
Subject: Re: sendmail/cyrus accepts mails for "unknown users"

Take a look at http://anfi.homeunix.net/sendmail/localtab.html

It uses script to periodically dump info about cyrus mailboxes into "sendmail
useful" format.

Yet another option is to use modified "dump script" with "Cyrus Aliases" via
virtusertable  [ http://anfi.homeunix.net/sendmail/localNalias.html ].

virtusertable entries:
us...@cyrus.domain       user1@CYRUS
us...@cyrus.domain       user2@CYRUS
@cyrus.domain   error:nouser User unknown

--
Andrzej [en:Andrew] Adam Filip a...@priv.onet.pl a...@xl.wp.pl
Home Page http://anfi.homeunix.net/ [ PageRank 6 ]
*Random Epigram* :
A late Easter, a long cold spring.
        -- French Proverb


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexander Dalloz  
View profile  
 More options Dec 1 2004, 5:58 pm
Newsgroups: comp.mail.sendmail
From: Alexander Dalloz <ad+n...@uni-x.org>
Date: Wed, 01 Dec 2004 23:58:04 +0100
Local: Wed, Dec 1 2004 5:58 pm
Subject: Re: sendmail/cyrus accepts mails for "unknown users"
On Wed, 01 Dec 2004 22:16:00 +0000 Andrzej Adam Filip wrote:

But the question for me is: why does the setup which Marcus asks for run
properly on my Redhat / Fedora hosts (Sendmail 8.12) and a FreeBSD system
(Sendmail 8.13) without any special "tweaking" and not with the Sendmail
8.12.3 on the Debian Woody host? Simply getting the cyrusv2.m4 macro from
a non Debian stable system and using that with Woody seems to be a
problem. Maybe Debian's Sendmail maintainer did some changes in i.e.
proto.m4?

Alexander

--
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.9-1.6_FC2smp
Serendipity 23:50:33 up 11 days, 18:38, load average: 0.67, 1.38, 1.60


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrzej Adam Filip  
View profile  
 More options Dec 1 2004, 6:22 pm
Newsgroups: comp.mail.sendmail
From: "Andrzej Adam Filip" <a...@priv.onet.pl> ( http://anfi.homeunix.net/ )
Date: Wed, 01 Dec 2004 23:22:00 +0000
Subject: Re: sendmail/cyrus accepts mails for "unknown users"

Alexander Dalloz wrote:
> [...]
> But the question for me is: why does the setup which Marcus asks for run
> properly on my Redhat / Fedora hosts (Sendmail 8.12) and a FreeBSD system
> (Sendmail 8.13) without any special "tweaking" and not with the Sendmail
> 8.12.3 on the Debian Woody host? Simply getting the cyrusv2.m4 macro from
> a non Debian stable system and using that with Woody seems to be a
> problem. Maybe Debian's Sendmail maintainer did some changes in i.e.
> proto.m4?

Marcus,

Could you post result produced by the to tests of virtusertable given below:

# email with an entry in virtusertable
sendmail -d60.5 -bv us...@domain.com
# email catche by "all remaning" entry in virtusertable
sendmail -d60.5 -bv no-such-u...@domain.com

--
Andrzej [en:Andrew] Adam Filip a...@priv.onet.pl a...@xl.wp.pl
Home Page http://anfi.homeunix.net/ [ PageRank 6 ]
*Random Epigram* :
He that composes himself is wiser than he that composes a book.
        -- B. Franklin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcus Schopen  
View profile  
 More options Dec 1 2004, 7:04 pm
Newsgroups: comp.mail.sendmail
From: Marcus Schopen <li...@localguru.de>
Date: Thu, 02 Dec 2004 01:04:10 +0100
Local: Wed, Dec 1 2004 7:04 pm
Subject: Re: sendmail/cyrus accepts mails for "unknown users"

http://anfi.homeunix.net/ wrote:
> Alexander Dalloz wrote:
>> [...]
>> But the question for me is: why does the setup which Marcus asks for run
>> properly on my Redhat / Fedora hosts (Sendmail 8.12) and a FreeBSD system
>> (Sendmail 8.13) without any special "tweaking" and not with the Sendmail
>> 8.12.3 on the Debian Woody host? Simply getting the cyrusv2.m4 macro from
>> a non Debian stable system and using that with Woody seems to be a
>> problem. Maybe Debian's Sendmail maintainer did some changes in i.e.
>> proto.m4?

Interesting question ;-)

> Could you post result produced by the to tests of virtusertable given
> below:

of course, of course. here we go:

> # email with an entry in virtusertable
> sendmail -d60.5 -bv us...@domain.com

# sendmail -d60.5 -bv t...@schopen.net
map_lookup(dequote, schoppa, %0=schoppa) => NOT FOUND (0)
map_lookup(host, schopen.net, %0=schopen.net) => schopen.net. (0)
map_lookup(dequote, test, %0=test) => NOT FOUND (0)
map_lookup(virtuser, t...@schopen.net, %0=t...@schopen.net, %1=test) =>
schopen-net-test (0)
map_lookup(dequote, schopen-net-test, %0=schopen-net-test) => NOT FOUND (0)
t...@schopen.net... deliverable: mailer cyrusv2, user schopen-net-test

> # email catche by "all remaning" entry in virtusertable
> sendmail -d60.5 -bv no-such-u...@domain.com

I'm not sure what you mean by "all remaining", but this is the out put of an
non existing address.

# sendmail -d60.5 -bv x...@schopen.net
map_lookup(dequote, schoppa, %0=schoppa) => NOT FOUND (0)
map_lookup(host, schopen.net, %0=schopen.net) => schopen.net. (0)
map_lookup(dequote, xxx, %0=xxx) => NOT FOUND (0)
map_lookup(virtuser, x...@schopen.net, %0=...@schopen.net, %1=xxx) => NOT
FOUND (0)
map_lookup(virtuser, @schopen.net, %...@schopen.net, %1=xxx) => NOT FOUND (0)
x...@schopen.net... deliverable: mailer cyrusv2, user xxx

After that I created following entry in virtusertable (may be that's what
you mean by above "all remaining"):

/etc/mail/virtusertable:
@schopen.net schopen-net-test

The output of "sendmail -d60.5 -bv x...@schopen.net" now is:

map_lookup(dequote, schoppa, %0=schoppa) => NOT FOUND (0)
map_lookup(host, schopen.net, %0=schopen.net) => schopen.net. (0)
map_lookup(dequote, xxx, %0=xxx) => NOT FOUND (0)
map_lookup(virtuser, x...@schopen.net, %0=...@schopen.net, %1=xxx) => NOT
FOUND (0)
map_lookup(virtuser, @schopen.net, %...@schopen.net, %1=xxx) =>
schopen-net-test (0)
map_lookup(dequote, schopen-net-test, %0=schopen-net-test) => NOT FOUND (0)
x...@schopen.net... deliverable: mailer cyrusv2, user schopen-net-test

Thanks,
Marcus


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexander Dalloz  
View profile  
 More options Dec 1 2004, 7:34 pm
Newsgroups: comp.mail.sendmail
From: Alexander Dalloz <ad+n...@uni-x.org>
Date: Thu, 02 Dec 2004 01:34:41 +0100
Local: Wed, Dec 1 2004 7:34 pm
Subject: Re: sendmail/cyrus accepts mails for "unknown users"
On Thu, 02 Dec 2004 01:04:10 +0100 Marcus Schopen wrote:

To be sure. When you did this test, did you have there a virtusertable
entry for t...@schopen.net like

t...@schopen.net         test

or already the catch-all entry from below "@schopen.net    schopen-net-test"?
Because the last line should have shown

t...@schopen.net... deliverable: mailer cyrusv2, user <target>

where <target> is the RHS of the virtusertable map entry.

>> # email catche by "all remaning" entry in virtusertable sendmail -d60.5
>> -bv no-such-u...@domain.com

> I'm not sure what you mean by "all remaining", but this is the out put
> of an non existing address.

> # sendmail -d60.5 -bv x...@schopen.net map_lookup(dequote, schoppa,
> %0=schoppa) => NOT FOUND (0) map_lookup(host, schopen.net,
> %0=schopen.net) => schopen.net. (0) map_lookup(dequote, xxx, %0=xxx) =>
> NOT FOUND (0) map_lookup(virtuser, x...@schopen.net, %0=...@schopen.net,
> %1=xxx) => NOT FOUND (0)
> map_lookup(virtuser, @schopen.net, %...@schopen.net, %1=xxx) => NOT FOUND
> (0) x...@schopen.net... deliverable: mailer cyrusv2, user xxx

How looks your catch-all entry in the virtusertable? Should be like

@schopen.net            error:nouser no such user here

This one looks proper to me. More insights by Andrzej?

> Marcus

Alexander

--
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.9-1.6_FC2smp
Serendipity 01:25:53 up 11 days, 20:13, load average: 0.28, 0.34, 0.38


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrzej Adam Filip  
View profile  
 More options Dec 1 2004, 7:40 pm
Newsgroups: comp.mail.sendmail
From: "Andrzej Adam Filip" <a...@priv.onet.pl> ( http://anfi.homeunix.net/ )
Date: Thu, 02 Dec 2004 00:40:00 +0000
Subject: Re: sendmail/cyrus accepts mails for "unknown users"

Try the following virtusertable entry:
@schopen.net error:nouser User unknown

It should make sendmail reject in reply to "RCPT TO:" all addresses in
schopen.net not listed in virtusertable.
[ sendmail "strips" +detail during *some* virtusertable lookups]

Virtusertable redirects some addresses. Adresses not redirected by
virtusertable are handled "as usual" - in your case they are handled to
cyrusv2 mailer. Cyrusv2 mailer accepts all addresses.

--
Andrzej [en:Andrew] Adam Filip a...@priv.onet.pl a...@xl.wp.pl
Home Page http://anfi.homeunix.net/ [ PageRank 6 ]
*Random Epigram* :
Words have a longer life than deeds.
        -- Pindar


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcus Schopen  
View profile  
 More options Dec 1 2004, 8:32 pm
Newsgroups: comp.mail.sendmail
From: Marcus Schopen <li...@localguru.de>
Date: Thu, 02 Dec 2004 02:32:10 +0100
Local: Wed, Dec 1 2004 8:32 pm
Subject: Re: sendmail/cyrus accepts mails for "unknown users"

jippi, that's working!

Is there a way to add this as "default behaviour" to my sendmail config
instead of adding a "error:nouser User unknown"-catchall-entry to each
domain in virtusertable?

Thanks,
Marcus


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrzej Adam Filip  
View profile  
 More options Dec 2 2004, 7:10 pm
Newsgroups: comp.mail.sendmail
From: "Andrzej Adam Filip" <a...@priv.onet.pl> ( http://anfi.homeunix.net/ )
Date: Fri, 03 Dec 2004 00:10:00 +0000
Subject: Re: sendmail/cyrus accepts mails for "unknown users"

Marcus Schopen wrote:
> [...]
> Is there a way to add this as "default behaviour" to my sendmail config
> instead of adding a "error:nouser User unknown"-catchall-entry to each
> domain in virtusertable?

Have you investigated local table ? [I wrote about it in the thread]
http://anfi.homeunix.net/sendmail/localtab.html

*DO NOT* define cyrus* mailer as confLOCAL_MAILER when you use local table.

--
Andrzej [en:Andrew] Adam Filip a...@priv.onet.pl a...@xl.wp.pl
Home Page http://anfi.homeunix.net/ [ PageRank 6 ]
*Random Epigram* :
"In the long run, every program becomes rococo, and then rubble."
        -- Alan Perlis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »