|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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... |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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.... |
|
![]() |
| Outils de la discussion | |
|
|