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 > smrsh / alias problems
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

smrsh / alias problems

Réponse
 
LinkBack Outils de la discussion
Vieux 06/05/2007, 16h21   #1
Captain Dondo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut smrsh / alias problems

I am trying to get dspam running on my new Debian install.
My problem is that I can't get sendmail to recognize the spam@... alias.

/etc/mail/aliases:
spam: "|/usr/local/bin/dspam --user root --class=spam --source=error"
notspam: "|/usr/local/bin/dspam --user root --class=innocent --source=error"

and when I try to send mail, I get:

----- The following addresses had permanent fatal errors -----
"|/usr/local/bin/dspam --user root --class=spam --source=error"
(reason: Service unavailable)
(expanded from: <spam@seiner.com>)

----- Transcript of session follows -----
451 4.0.0 putbody: write error: Broken pipe
smrsh: "dspam" not available for sendmail programs
554 5.0.0 Service unavailable

But in my /etc/mail/smrsh I have:

dionysus:/etc/mail/smrsh# ls -l
total 0
lrwxrwxrwx 1 root smmsp 20 2007-05-06 07:40 dspam -> /usr/local/bin/dspam

and sendmail.cf says:

dionysus:/etc/mail# grep smrsh sendmail.cf
##### $Id: smrsh.m4,v 8.14 1999/11/18 05:06:23 ca Exp $ #####
Mprog, P=/usr/lib/sm.bin/smrsh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, D=$z:/,
A=smrsh -c $u
# FEATURE(`smrsh',`/usr/lib/sm.bin/smrsh')dnl

grepping for smrsh on the smrsh binary seems to say that it's looking in /etc/mail/smrsh...

dionysus:/usr/lib/sm.bin# strings smrsh | sort | uniq | grep smrsh
/etc/mail/smrsh

Can anyone guess what might be going on?

--Yan
  Réponse avec citation
Vieux 06/05/2007, 17h56   #2
Bill Cole
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: smrsh / alias problems

In article <133rskl1jgf4s19@corp.supernews.com>,
Captain Dondo <yan@NsOeSiPnAeMr.com> wrote:

> I am trying to get dspam running on my new Debian install.
> My problem is that I can't get sendmail to recognize the spam@... alias.
>
> /etc/mail/aliases:
> spam: "|/usr/local/bin/dspam --user root --class=spam --source=error"
> notspam: "|/usr/local/bin/dspam --user root --class=innocent --source=error"
>
> and when I try to send mail, I get:
>
> ----- The following addresses had permanent fatal errors -----
> "|/usr/local/bin/dspam --user root --class=spam --source=error"
> (reason: Service unavailable)
> (expanded from: <spam@seiner.com>)
>
> ----- Transcript of session follows -----
> 451 4.0.0 putbody: write error: Broken pipe
> smrsh: "dspam" not available for sendmail programs
> 554 5.0.0 Service unavailable
>
> But in my /etc/mail/smrsh I have:
>
> dionysus:/etc/mail/smrsh# ls -l
> total 0
> lrwxrwxrwx 1 root smmsp 20 2007-05-06 07:40 dspam -> /usr/local/bin/dspam
>
> and sendmail.cf says:
>
> dionysus:/etc/mail# grep smrsh sendmail.cf
> ##### $Id: smrsh.m4,v 8.14 1999/11/18 05:06:23 ca Exp $ #####
> Mprog, P=/usr/lib/sm.bin/smrsh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL,
> R=EnvToL/HdrToL, D=$z:/,
> A=smrsh -c $u
> # FEATURE(`smrsh',`/usr/lib/sm.bin/smrsh')dnl
>
> grepping for smrsh on the smrsh binary seems to say that it's looking in
> /etc/mail/smrsh...
>
> dionysus:/usr/lib/sm.bin# strings smrsh | sort | uniq | grep smrsh
> /etc/mail/smrsh
>
> Can anyone guess what might be going on?


It looks like you are using strings and grep as an alternative to
reading documentation. That's not very productive.

--
Now where did I hide that website...
  Réponse avec citation
Vieux 07/05/2007, 00h53   #3
Captain Dondo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: smrsh / alias problems

V Sun, 06 May 2007 16:56:19 +0000, Bill Cole napsal(a):

> In article <133rskl1jgf4s19@corp.supernews.com>,
> Captain Dondo <yan@NsOeSiPnAeMr.com> wrote:
>
>> I am trying to get dspam running on my new Debian install.
>> My problem is that I can't get sendmail to recognize the spam@... alias.
>>
>> /etc/mail/aliases:
>> spam: "|/usr/local/bin/dspam --user root --class=spam --source=error"
>> notspam: "|/usr/local/bin/dspam --user root --class=innocent --source=error"
>>
>> and when I try to send mail, I get:
>>
>> ----- The following addresses had permanent fatal errors -----
>> "|/usr/local/bin/dspam --user root --class=spam --source=error"
>> (reason: Service unavailable)
>> (expanded from: <spam@seiner.com>)
>>
>> ----- Transcript of session follows -----
>> 451 4.0.0 putbody: write error: Broken pipe
>> smrsh: "dspam" not available for sendmail programs
>> 554 5.0.0 Service unavailable
>>
>> But in my /etc/mail/smrsh I have:
>>
>> dionysus:/etc/mail/smrsh# ls -l
>> total 0
>> lrwxrwxrwx 1 root smmsp 20 2007-05-06 07:40 dspam -> /usr/local/bin/dspam
>>
>> and sendmail.cf says:
>>
>> dionysus:/etc/mail# grep smrsh sendmail.cf
>> ##### $Id: smrsh.m4,v 8.14 1999/11/18 05:06:23 ca Exp $ #####
>> Mprog, P=/usr/lib/sm.bin/smrsh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL,
>> R=EnvToL/HdrToL, D=$z:/,
>> A=smrsh -c $u
>> # FEATURE(`smrsh',`/usr/lib/sm.bin/smrsh')dnl
>>
>> grepping for smrsh on the smrsh binary seems to say that it's looking in
>> /etc/mail/smrsh...
>>
>> dionysus:/usr/lib/sm.bin# strings smrsh | sort | uniq | grep smrsh
>> /etc/mail/smrsh
>>
>> Can anyone guess what might be going on?

>
> It looks like you are using strings and grep as an alternative to
> reading documentation. That's not very productive.
>


Hmmm... This same setup used to work. I set it up according to the docs
I could find....

The grep and strings deal was to confirm that the files were generated /
built per my expectations.

So... I set it up as per the docs. I confirmed that it was set up as per
the docs. It doesn't work.

I've also confirmed that there are no error/diag messages in maillog, and
that permissions on all the files look OK....

So I'm asking for .

Do you have any particular doc I should read?

--Yan
  Réponse avec citation
Vieux 08/05/2007, 15h45   #4
Captain Dondo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: smrsh / alias problems

V Sun, 06 May 2007 23:53:38 +0000, Captain Dondo napsal(a):

> V Sun, 06 May 2007 16:56:19 +0000, Bill Cole napsal(a):
>
>> In article <133rskl1jgf4s19@corp.supernews.com>,
>> Captain Dondo <yan@NsOeSiPnAeMr.com> wrote:
>>
>>> I am trying to get dspam running on my new Debian install.
>>> My problem is that I can't get sendmail to recognize the spam@... alias.
>>>
>>> /etc/mail/aliases:
>>> spam: "|/usr/local/bin/dspam --user root --class=spam --source=error"
>>> notspam: "|/usr/local/bin/dspam --user root --class=innocent --source=error"
>>>
>>> and when I try to send mail, I get:
>>>
>>> ----- The following addresses had permanent fatal errors -----
>>> "|/usr/local/bin/dspam --user root --class=spam --source=error"
>>> (reason: Service unavailable)
>>> (expanded from: <spam@seiner.com>)
>>>
>>> ----- Transcript of session follows -----
>>> 451 4.0.0 putbody: write error: Broken pipe
>>> smrsh: "dspam" not available for sendmail programs
>>> 554 5.0.0 Service unavailable
>>>
>>> But in my /etc/mail/smrsh I have:
>>>
>>> dionysus:/etc/mail/smrsh# ls -l
>>> total 0
>>> lrwxrwxrwx 1 root smmsp 20 2007-05-06 07:40 dspam -> /usr/local/bin/dspam
>>>
>>> and sendmail.cf says:
>>>
>>> dionysus:/etc/mail# grep smrsh sendmail.cf
>>> ##### $Id: smrsh.m4,v 8.14 1999/11/18 05:06:23 ca Exp $ #####
>>> Mprog, P=/usr/lib/sm.bin/smrsh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL,
>>> R=EnvToL/HdrToL, D=$z:/,
>>> A=smrsh -c $u
>>> # FEATURE(`smrsh',`/usr/lib/sm.bin/smrsh')dnl
>>>
>>> grepping for smrsh on the smrsh binary seems to say that it's looking in
>>> /etc/mail/smrsh...
>>>
>>> dionysus:/usr/lib/sm.bin# strings smrsh | sort | uniq | grep smrsh
>>> /etc/mail/smrsh
>>>
>>> Can anyone guess what might be going on?

>>
>> It looks like you are using strings and grep as an alternative to
>> reading documentation. That's not very productive.
>>

>
> Hmmm... This same setup used to work. I set it up according to the docs
> I could find....
>
> The grep and strings deal was to confirm that the files were generated /
> built per my expectations.
>
> So... I set it up as per the docs. I confirmed that it was set up as per
> the docs. It doesn't work.
>
> I've also confirmed that there are no error/diag messages in maillog, and
> that permissions on all the files look OK....
>
> So I'm asking for .
>
> Do you have any particular doc I should read?
>
> --Yan


Anybody?

This is really ridiculous and frustrating.

I've verified that my setup works - I can invoke procmail via smrsh just
fine.

But when I try to run dspam, I get:

May 8 07:42:37 dionysus sm-mta[16309]: l48EgFam016303: alias <spam@seiner.com> => "|dspam --user root --class=spam --source=error --stdout"
May 8 07:42:37 dionysus smrsh: uid 1: attempt to use "dspam --user root --class=spam --source=error --stdout"
May 8 07:42:37 dionysus sm-mta[16309]: l48EgFam016303: to="|dspam --user root --class=spam --source=error --stdout", ctladdr=<spam@seiner.com> (1/0), delay=00:00:01, xdelay=00:00:00, mailer=prog, pri=30592, dsn=5.0.0, stat=Service unavailable
May 8 07:42:37 dionysus sm-mta[16309]: l48EgFam016303: l48Egbam016309: DSN: Service unavailable

I've been through all the docs, I've done everything I can think of, and
dspam absolutely refuses to run...

--Yan
  Réponse avec citation
Vieux 08/05/2007, 16h48   #5
CptDondo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: smrsh / alias problems

Captain Dondo wrote:

> May 8 07:42:37 dionysus sm-mta[16309]: l48EgFam016303: alias <spam@seiner.com> => "|dspam --user root --class=spam --source=error --stdout"
> May 8 07:42:37 dionysus smrsh: uid 1: attempt to use "dspam --user root --class=spam --source=error --stdout"
> May 8 07:42:37 dionysus sm-mta[16309]: l48EgFam016303: to="|dspam --user root --class=spam --source=error --stdout", ctladdr=<spam@seiner.com> (1/0), delay=00:00:01, xdelay=00:00:00, mailer=prog, pri=30592, dsn=5.0.0, stat=Service unavailable
> May 8 07:42:37 dionysus sm-mta[16309]: l48EgFam016303: l48Egbam016309: DSN: Service unavailable


Never mind....

It was a group permissions issue.... sendmail runs as smmta and dspam
was set up to run as mail.... ARGHHH!!!!

Too much reliance on automated install scripts....
  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 03h14.


Édité par : vBulletin® version 3.7.2
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
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16272 seconds with 13 queries