[SLUG] Problem with .forward with sendmail.

From: Aharon (aharon@superfreeway.com)
Date: Thu Mar 21 2002 - 01:01:58 EST


I have been scratching my head with this problem now for several hours.
What started as just getting the "Blackhole" anti spam utility setup has
now turned into an eternal quest on getting .forward to work the way it's
supposed to do.

System: RedHat 7.2

Installed BlackHole... Created a link to the blackhole executable in
/etc/srmsh, so the sendmail shell would properly run blackhole.

Created this .forward file in my "Aharon" home directory:

|/etc/smrsh/blackhole -Sendmail

Send myself a sample email:

[root@superfreeway BlackHole]# mail aharon@superfreeway.com
Subject: dfg
sdf
gs
dfg
sdgf
.
Cc:

Tailing the maillog outputs this:

Mar 21 00:50:28 superfreeway
sendmail[3638]: g2L5oSg03638: from=root, size=58, class=0, nrcpts=1,
msgid=<200203210550.g2L5oSg03638@superfreeway.com>, relay=root@localhost
Mar 21 00:50:28 superfreeway smrsh: uid 500: attempt to use
blackhole.-Sendmail
Mar 21 00:50:28 superfreeway sendmail[3641]: g2L5oSg03638:
to=|/etc/smrsh/blackhole -Sendmail, ctladdr=aharon@superfreeway.com
(500/500), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=30058,
dsn=5.0.0, stat=Service unavailable
Mar 21 00:50:28 superfreeway sendmail[3641]: g2L5oSg03638: g2L5oSf03641:
DSN: Service unavailable
Mar 21 00:50:28 superfreeway sendmail[3641]: g2L5oSf03641: to=root,
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30158, dsn=2.0.0,
stat=Sent

Basically it's complaining about having the command line option
"-Sendmail" in the .forward file.. I assume this becuase if I remove the
command line option and just have it run blackhole without it, it runs
properly.. Well, as properly as you can without my needed -Sendmail
option.

Are there any tricks to getting .forward or smrsh to allow me to use a
space for options in my .forward file?? (ie. /etc/smrsh/program
-options).

Thanks for your help.

Aharon

-- 
Sr Unix Administrator
Tampa, Florida

Websites: http://www.tamparacing.com http://www.tampaforums.com http://www.ls6.com http://www.lastgen.com http://www.xmbforum.com



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:26:46 EDT