PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > Mail sorting question
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

Mail sorting question

Réponse
 
LinkBack Outils de la discussion
Vieux 22/03/2008, 21h38   #1
J.J. Day
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Mail sorting question

Hi all,

I am new to sendmail and have a mailserver using sendmail 8.14.2 with
cyrus 2.3. Due to the number of valid mail messages that are received
mis-addressed, I would like to receive all mail for bad addresses to a
catchall mailbox for review rather than bounce them. The documentation
and postings specify the use of:
define(`LUSER_RELAY',`local:someuser@your.domain')
for this purpose. I added
define(`LUSER_RELAY',`local:catchall@mail.domain.i nt')
but I have not been able to get it to work. (I also remade the cf file
and restarted sendmail of course.)

I don't know if any of features implemented have any effect on the
LUSER_RELAY behaviour, but the following may be relavent:
- All accounts are in cyrus SASL
- No mail users have logon accounts on the server.
- The catchall user and mailbox have been created with cyrus and can
receive mail when addressed to it
- The mail server is in an internal domain behind a firewall
- masquerade_as is specified as the public domain with
allmasquerade and masquerade_envelope features specified
- relay_domain clauses are specified for both the internal and public
domains
- local-host-names lists the internal and public domain names with and
without the hosts specified

This will obviously let a lot of trash into the system. So, as part of
the project, I would also like to redirect all messages marked as spam by
SpamAssassin to a separate mailbox and anything identified by MIMEDefang
as containing a virus to a third mailbox.

But first,

From this, can anyone tell me what I have done wrong and how to make the
LUSER_RELAY function?

TIA

J.J.
---- Posted via Pronews.com - Premium Corporate Usenet News Provider ----
http://www.pronews.com offers corporate packages that have access to 100,000+ newsgroups
  Réponse avec citation
Vieux 23/03/2008, 16h46   #2
Bill Cole
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Mail sorting question

In article <Xns9A698A7CC1125dayjayjgmailcom@38.119.100.119> ,
"J.J. Day" <NOSPAM..Day.jayJ@gmail.com> wrote:

> Hi all,
>
> I am new to sendmail and have a mailserver using sendmail 8.14.2 with
> cyrus 2.3. Due to the number of valid mail messages that are received
> mis-addressed, I would like to receive all mail for bad addresses to a
> catchall mailbox for review rather than bounce them.


Is that a reality-based motivation? Have you looked at the overall
picture quantitatively and found that you really have enough legitimate
mail with misspelled user names to matter and little enough
randomly-addressed spam that anyone could hope to find the legitimate
mail in that sewer?

For all of the domains that I've worked with over the past few years,
even ones with just a handful of real users, the spam targeting
non-existent users has numbered in the hundreds per day and up, with
'up' reaching millions per day for a couple of domains that are
associated with prominent brand names. In no case that I've seen in
recent years has it made sense to do what you're talking about, because
it takes a human to figure out which of the messages in the junk box are
in fact worth looking at. If you don't have someone doing that
diligently, looking at all of the messages every day, you are doing a
*worse* job of informing legitimate senders about their typos than if
you reject attempts to mail non-existent recipient addresses. The worst
possible approach is to use Cyrus and Sendmail in their default setup,
where you accept mail for all users in Sendmail and pass it to Cyrus,
which then generates a bounce that you have to try to deliver, because
then you be handling a lot of bounces aimed at people whose addresses
were forged on spam...


> The documentation
> and postings specify the use of:
> define(`LUSER_RELAY',`local:someuser@your.domain')
> for this purpose. I added
> define(`LUSER_RELAY',`local:catchall@mail.domain.i nt')
> but I have not been able to get it to work. (I also remade the cf file
> and restarted sendmail of course.)
>
> I don't know if any of features implemented have any effect on the
> LUSER_RELAY behaviour, but the following may be relavent:
> - All accounts are in cyrus SASL


SASL is about SMTP authentication for senders, not routing of recipient
addresses.

> - No mail users have logon accounts on the server.


That's a critical clue.

If you use Cyrus and strictly 'virtual' users, Sendmail does not know
which user addresses exist and which do not. There are ways to make that
information known to Sendmail, but since you have not mentioned using
any of them, I assume that you have the standard setup, which means that
you generate a lot of harmful 'backscatter' bounces. That can be
adequate reason to set up a catchall in Cyrus that you just empty
regularly without any rationale about finding the sender typos.

> - The catchall user and mailbox have been created with cyrus and can
> receive mail when addressed to it


Then you probably need to figure out how to make *Cyrus* use it as a
catchall. Sendmail has no way to know that an address it routes to Cyrus
isn't valid, so to get this to work you need to make *Cyrus* handle the
catchall.

--
Now where did I hide that website...
  Réponse avec citation
Vieux 23/03/2008, 22h52   #3
J.J. Day
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Mail sorting question

Bill Cole <bill@scconsult.com> wrote in news:bill-E297F6.11462123032008
@news.det.sbcglobal.net:

> In article <Xns9A698A7CC1125dayjayjgmailcom@38.119.100.119> ,
> "J.J. Day" <NOSPAM..Day.jayJ@gmail.com> wrote:
>
>> Hi all,
>>
>> I am new to sendmail and have a mailserver using sendmail 8.14.2
>> with cyrus 2.3. Due to the number of valid mail messages that are
>> received mis-addressed, I would like to receive all mail for bad
>> addresses to a catchall mailbox for review rather than bounce them.

>
> Is that a reality-based motivation?


Yes

>
>> The documentation and postings specify the use of:
>> define(`LUSER_RELAY',`local:someuser@your.domain')
>> for this purpose. I added
>> define(`LUSER_RELAY',`local:catchall@mail.domain.i nt')
>> but I have not been able to get it to work. (
>>
>> I don't know if any of features implemented have any effect on the
>> LUSER_RELAY behaviour, but the following may be relavent:

>
>> - No mail users have logon accounts on the server.

>
> That's a critical clue.
>
> If you use Cyrus and strictly 'virtual' users, Sendmail does not know
> which user addresses exist and which do not. There are ways to make
> that information known to Sendmail,


How can I do that?

> but since you have not mentioned
> using any of them, I assume that you have the standard setup, which
> means that you generate a lot of harmful 'backscatter' bounces.


From reading the documentation, I think the setup is standard. This is
the bounce message for an email received from an external source. It
appears to come from sendmail as part of the smtp dialogue rather than
from cyrus after the message has been accepted. The masquerade has been
removed but the LUSER_RELAY has not been applied - shouldn't that be
done as soon as the "550-Mailbox unknown" determination is made?
----- Transcript of session follows -----
.... while talking to localhost:
>>> STARTTLS dialogue

<<< 500 5.5.2 Syntax error
>>> DATA

<<< 550-Mailbox unknown. Either there is no mailbox associated with
this
<<< 550-name or you do not have authorization to see it.
<<< 550 5.1.1 User unknown
550 5.1.1 <badusername@public.org>... User unknown
<<< 503 5.5.1 No recipients

Final-Recipient: RFC822; badusername@public.org
X-Actual-Recipient: RFC822; badusername@mail.domain.int
Action: failed
Status: 5.1.1
Diagnostic-Code: SMTP; 550-Mailbox unknown. Either there is no mailbox
associated with this
Last-Attempt-Date: Sat, 22 Mar 2008 10:30:56 -0600 (MDT)

---- Posted via Pronews.com - Premium Corporate Usenet News Provider ----
http://www.pronews.com offers corporate packages that have access to 100,000+ newsgroups
  Réponse avec citation
Vieux 24/03/2008, 00h58   #4
J.J. Day
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Mail sorting question

Subject: Re: Mail sorting question
From: "J.J. Day" <NOSPAM..Day.jayJ@gmail.com>
Newsgroups: comp.mail.sendmail

Bill Cole <bill@scconsult.com> wrote in news:bill-E297F6.11462123032008
@news.det.sbcglobal.net:

> In article <Xns9A698A7CC1125dayjayjgmailcom@38.119.100.119> ,
> "J.J. Day" <NOSPAM..Day.jayJ@gmail.com> wrote:
>
>> Hi all,
>>
>> I am new to sendmail and have a mailserver using sendmail 8.14.2
>> with cyrus 2.3. Due to the number of valid mail messages that are
>> received mis-addressed, I would like to receive all mail for bad
>> addresses to a catchall mailbox for review rather than bounce them.

>
> Is that a reality-based motivation?


Yes

>
>> The documentation and postings specify the use of:
>> define(`LUSER_RELAY',`local:someuser@your.domain')
>> for this purpose. I added
>> define(`LUSER_RELAY',`local:catchall@mail.domain.i nt')
>> but I have not been able to get it to work. (
>>
>> I don't know if any of features implemented have any effect on the
>> LUSER_RELAY behaviour, but the following may be relavent:

>
>> - No mail users have logon accounts on the server.

>
> That's a critical clue.
>
> If you use Cyrus and strictly 'virtual' users, Sendmail does not know
> which user addresses exist and which do not. There are ways to make
> that information known to Sendmail,


How can I do that?

After looking at the output of:
sendmail -v baduser@mail.internal.int <test

>>> MAIL From:<root@sys1.internal.int> SIZE=566

250 2.1.0 <root@sys1.internal.int>... Sender ok
>>> RCPT To:<baduser@mail.internal.int>
>>> DATA

250 2.1.5 <baduser@mail.internal.int>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .

250 2.0.0 m2NMWVJg089259 Message accepted for delivery
baduser@mail.internal.int... Sent (m2NMWVJg089259 Message
accepted for delivery)

it is obvious that Sendmail doesn't know that the user is invalid. So, if
there is a way for Cyrus to pass its mailbox list to Sendmail, that would
seem the missing part to make LUSER_RELAY operate.

> but since you have not mentioned
> using any of them, I assume that you have the standard setup,


From reading the documentation, I think the setup is standard.


JJ
---- Posted via Pronews.com - Premium Corporate Usenet News Provider ----
http://www.pronews.com offers corporate packages that have access to 100,000+ newsgroups
  Réponse avec citation
Vieux 24/03/2008, 01h18   #5
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [sendmail,cyrus,LUSER_RELAY] Mail sorting question

"J.J. Day" <NOSPAM..Day.j...@gmail.com> wrote:
> I am new to sendmail and have a mailserver using sendmail 8.14.2 with
> cyrus 2.3.
> Due to the number of valid mail messages that are received
> mis-addressed, I would like to receive all mail for bad addresses to a
> catchall mailbox for review rather than bounce them. The documentation
> and postings specify the use of:
> define(`LUSER_RELAY',`local:someu...@your.domain')
> for this purpose. I added
> define(`LUSER_RELAY',`local:catch...@mail.domain.i nt')
> but I have not been able to get it to work. (I also remade the cf file
> and restarted sendmail of course.)
>
> I don't know if any of features implemented have any effect on the
> LUSER_RELAY behaviour, but the following may be relavent:
> - All accounts are in cyrus SASL
> - No mail users have logon accounts on the server.
> - The catchall user and mailbox have been created with cyrus and can
> receive mail when addressed to it
> - The mail server is in an internal domain behind a firewall
> - masquerade_as is specified as the public domain with
> allmasquerade and masquerade_envelope features specified
> - relay_domain clauses are specified for both the internal and public
> domains
> - local-host-names lists the internal and public domain names with and
> without the hosts specified
>
> This will obviously let a lot of trash into the system. So, as part of
> the project, I would also like to redirect all messages marked as spam by
> SpamAssassin to a separate mailbox and anything identified by MIMEDefang
> as containing a virus to a third mailbox.
>
> But first,
>
> From this, can anyone tell me what I have done wrong and how to make the
> LUSER_RELAY function?


Which method of cyrus & sendmail integration do you use in sendmail.cf?

Standard implementation of LUSER_RELAY in sendmail.cf has been designed
for "OS accounts based local mailer" - achieving similar functionality
for "OS account less" mailbox system requires some "tweaking".

You can easily modify RTCyrus available at
http://open-sendmail.sourceforge.net/ to get
LUSER_RELAY functionality - in FEATURE(`anfi/vcyrus') replace error
mailer for "user unknown" with selecting specific cyrus mailbox.

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Business is a good game -- lots of competition and minimum of rules.
You keep score with money.
-- Nolan Bushnell, founder of Atari
  Réponse avec citation
Vieux 25/03/2008, 01h49   #6
Bill Cole
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Mail sorting question

In article <Xns9A6AAC6BA1032dayjayjgmailcom@38.119.100.119> ,
"J.J. Day" <NOSPAM..Day.jayJ@gmail.com> wrote:

> Subject: Re: Mail sorting question
> From: "J.J. Day" <NOSPAM..Day.jayJ@gmail.com>
> Newsgroups: comp.mail.sendmail
>
> Bill Cole <bill@scconsult.com> wrote in news:bill-E297F6.11462123032008
> @news.det.sbcglobal.net:
>
> > In article <Xns9A698A7CC1125dayjayjgmailcom@38.119.100.119> ,
> > "J.J. Day" <NOSPAM..Day.jayJ@gmail.com> wrote:
> >
> >> Hi all,
> >>
> >> I am new to sendmail and have a mailserver using sendmail 8.14.2
> >> with cyrus 2.3. Due to the number of valid mail messages that are
> >> received mis-addressed, I would like to receive all mail for bad
> >> addresses to a catchall mailbox for review rather than bounce them.

> >
> > Is that a reality-based motivation?

>
> Yes
>
> >
> >> The documentation and postings specify the use of:
> >> define(`LUSER_RELAY',`local:someuser@your.domain')
> >> for this purpose. I added
> >> define(`LUSER_RELAY',`local:catchall@mail.domain.i nt')
> >> but I have not been able to get it to work. (
> >>
> >> I don't know if any of features implemented have any effect on the
> >> LUSER_RELAY behaviour, but the following may be relavent:

> >
> >> - No mail users have logon accounts on the server.

> >
> > That's a critical clue.
> >
> > If you use Cyrus and strictly 'virtual' users, Sendmail does not know
> > which user addresses exist and which do not. There are ways to make
> > that information known to Sendmail,

>
> How can I do that?


There are multiple options:

1. Sendmail can use a mailertable with full addresses as keys, and you
could build that table from a list of valid users, routing them to
Cyrus, with a default entry routed to the 'error' mailer.

2. Sendmail has an access map. You could use it to allow relay to Cyrus
for all valid addresses and default the rest of the domain to reject.

3. There is a set of sendmail.cf rules packaged as
'RTCyrus' available via http://open-sendmail.sourceforge.net/ which is
supposed to check with Cyrus directly.

I have not worked with Cyrus recently so I can't vouch for #1 or #3 and
know that #2 was a pain to maintain many years ago.

--
Now where did I hide that website...
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h10.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16884 seconds with 14 queries