Okay, the INSTALL file is fairly decent-a lot better than the online wiki. I now have apache up and serving pages, php+perl installed. There's a section on /etc/aliases, that refers to a "newaliases" command, which I don't seem to have. I'm running Centos 6.4 (minimal). Do I need to install Sendmail or something else? My primary mail infrastructure is Exchange 2010; I can set it to either send SMTP email to spamikaze, or drop the mail as files to a directory. -- ERIC HENSON Solutions Architect for Systems Organization PFSweb | www.pfsweb.com<http://www.pfsweb.com/> p: 972.881.2900 x3104 m: 972.948.3424
Hi Eric, Yes it should be needing sendmail. I had been running spamikaze for about 1 year on CentOS 6.x with Qmail, thus I am unable to get this part right. I am now doing manual formail -s /path/passivetrap.pl < $I Regards Nic From: spamikaze-bounces@kernelnewbies.org [mailto:spamikaze-bounces@kernelnewbies.org] On Behalf Of Eric Henson Sent: Friday, 28 June, 2013 4:33 AM To: spamikaze@kernelnewbies.org Subject: Install instructions Okay, the INSTALL file is fairly decent―a lot better than the online wiki. I now have apache up and serving pages, php+perl installed. There’s a section on /etc/aliases, that refers to a “newaliases” command, which I don’t seem to have. I’m running Centos 6.4 (minimal). Do I need to install Sendmail or something else? My primary mail infrastructure is Exchange 2010; I can set it to either send SMTP email to spamikaze, or drop the mail as files to a directory. -- ERIC HENSON Solutions Architect for Systems Organization PFSweb | <http://www.pfsweb.com/> www.pfsweb.com p: 972.881.2900 x3104 m: 972.948.3424
Okay, sendmail is receiving email. However, the script isn’t running, here’s the error: The original message was received at Thu, 27 Jun 2013 18:01:46 -0500 from prodcasht02.pfsweb.com<http://prodcasht02.pfsweb.com/> [10.1.1.204] ----- The following addresses had permanent fatal errors ----- | /opt/spamikaze/scripts/passivetrap.pl<http://passivetrap.pl/> (reason: Service unavailable) (expanded from: <passive@antispam.pfsweb.com<mailto:passive@antispam.pfsweb.com>>) ----- Transcript of session follows ----- smrsh: "passivetrap.pl<http://passivetrap.pl/>" not available for sendmail programs (stat failed) 554 5.0.0 Service unavailable Original-Recipient: rfc822;passive@pfsweb.com<mailto:rfc822%3Bpassive@pfsweb.com> Final-Recipient: RFC822; passive@antispam.pfsweb.com<mailto:passive@antispam.pfsweb.com> X-Actual-Recipient: X-Unix; |/opt/spamikaze/scripts/passivetrap.pl<http://passivetrap.pl/> Action: failed Status: 5.5.0 Diagnostic-Code: X-Unix; 69 Last-Attempt-Date: Thu, 27 Jun 2013 18:01:46 -0500 -- ERIC HENSON Solutions Architect for Systems Organization PFSweb | www.pfsweb.com<http://www.pfsweb.com/> p: 972.881.2900 x3104 m: 972.948.3424 From: 鱼 [mailto:nicholas@10122112.com] Sent: Thursday, June 27, 2013 3:47 PM To: Eric Henson; spamikaze@kernelnewbies.org Subject: RE: Install instructions Hi Eric, Yes it should be needing sendmail. I had been running spamikaze for about 1 year on CentOS 6.x with Qmail, thus I am unable to get this part right. I am now doing manual formail -s /path/passivetrap.pl < $I Regards Nic From: spamikaze-bounces@kernelnewbies.org<mailto:spamikaze-bounces@kernelnewbies.org> [mailto:spamikaze-bounces@kernelnewbies.org] On Behalf Of Eric Henson Sent: Friday, 28 June, 2013 4:33 AM To: spamikaze@kernelnewbies.org<mailto:spamikaze@kernelnewbies.org> Subject: Install instructions Okay, the INSTALL file is fairly decent―a lot better than the online wiki. I now have apache up and serving pages, php+perl installed. There’s a section on /etc/aliases, that refers to a “newaliases” command, which I don’t seem to have. I’m running Centos 6.4 (minimal). Do I need to install Sendmail or something else? My primary mail infrastructure is Exchange 2010; I can set it to either send SMTP email to spamikaze, or drop the mail as files to a directory. -- ERIC HENSON Solutions Architect for Systems Organization PFSweb | www.pfsweb.com<http://www.pfsweb.com/> p: 972.881.2900 x3104 m: 972.948.3424 ------------------------ This email was scanned by BitDefender.
On Thu, Jun 27, 2013 at 4:04 PM, Eric Henson <ehenson@pfsweb.com> wrote:
Okay, sendmail is receiving email. However, the script isn’t running, here’s the error:
----- The following addresses had permanent fatal errors ----- | /opt/spamikaze/scripts/passivetrap.pl (reason: Service unavailable) (expanded from: <passive@antispam.pfsweb.com>)
----- Transcript of session follows ----- smrsh: "passivetrap.pl" not available for sendmail programs (stat failed) 554 5.0.0 Service unavailable
You have the sendmail restricted shell enabled which is a way of keeping sendmail from calling programs that the sysadmin doesn't know about (thus keeping any number of user controlled programs from being called from .forward files that could damage things). Find in your sendmail config where the smrsh directory is defined (/etc/smrsh/ in most configurations that I've ever come across), then go into that subdirectory and make a symlink to the file passivetrap.pl. That tells sendmail that you allow that program to be called by sendmail in normal operation. ...Todd -- The total budget at all receivers for solving senders' problems is $0. If you want them to accept your mail and manage it the way you want, send it the way the spec says to. --John Levine
Thanks--I tried the symbolic links, but it wouldn't work. I ended up turning off the secure shell, and then doing a chmod 777 passivetrap.pl. New error message. Passivetrap.pl line 19 references the Spamikaze.pm file. Spamikaze.pm line 19 says: use Env qw( HOME ); ======== Can't locate Config/IniFiles.pm in @INC (@INC contains: /opt/spamikaze/scripts /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /opt/spamikaze/scripts/Spamikaze.pm line 19. BEGIN failed--compilation aborted at /opt/spamikaze/scripts/Spamikaze.pm line 19. Compilation failed in require at /opt/spamikaze/scripts/passivetrap.pl line 19. BEGIN failed--compilation aborted at /opt/spamikaze/scripts/passivetrap.pl line 19. 554 5.3.0 unknown mailer error 2 ========= I probably have some things in the wrong locations.
Install rpm-forge and yum install perl-Config-IniFiles Regards nic -----Original Message----- From: spamikaze-bounces@kernelnewbies.org [mailto:spamikaze-bounces@kernelnewbies.org] On Behalf Of Eric Henson Sent: Friday, 28 June, 2013 8:57 AM To: Todd Lyons Cc: spamikaze@kernelnewbies.org Subject: RE: Install instructions Thanks--I tried the symbolic links, but it wouldn't work. I ended up turning off the secure shell, and then doing a chmod 777 passivetrap.pl. New error message. Passivetrap.pl line 19 references the Spamikaze.pm file. Spamikaze.pm line 19 says: use Env qw( HOME ); ======== Can't locate Config/IniFiles.pm in @INC (@INC contains: /opt/spamikaze/scripts /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /opt/spamikaze/scripts/Spamikaze.pm line 19. BEGIN failed--compilation aborted at /opt/spamikaze/scripts/Spamikaze.pm line 19. Compilation failed in require at /opt/spamikaze/scripts/passivetrap.pl line 19. BEGIN failed--compilation aborted at /opt/spamikaze/scripts/passivetrap.pl line 19. 554 5.3.0 unknown mailer error 2 ========= I probably have some things in the wrong locations. _______________________________________________ Spamikaze mailing list Spamikaze@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/spamikaze
participants (3)
-
Eric Henson -
Todd Lyons -
鱼