Problem releasing a message
Steen, Glenn
Glenn.Steen at AP1.SE
Fri Mar 11 09:48:53 GMT 2005
> -----Original Message-----
> From: MailScanner mailing list
> [mailto:MAILSCANNER at JISCMAIL.AC.UK] On Behalf Of Steve Freegard
> Sent: den 11 mars 2005 00:46
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Re: Problem releasing a message
>
>
> Glenn/Isi,
>
> Spotted a typo:
>
> $mail_param = array("localhost" => QUARANTINE_MAIL_HOST);
>
> should be
>
> $mail_param = array('host' => QUARANTINE_MAIL_HOST);
>
> Try that - it should work now...
Nope, that'll not work. Just tested on my box.
One might want to set them both perhaps, but you definitely need
change 'localhost' in the array... This is copied from the
pear/Mail/smtp.php file distributed with 0.5.1:
---------------------
/**
* Constructor.
*
* Instantiates a new Mail_smtp:: object based on the parameters
* passed in. It looks for the following parameters:
* host The server to connect to. Defaults to localhost.
* port The port to connect to. Defaults to 25.
* auth SMTP authentication. Defaults to none.
* username The username to use for SMTP auth. No default.
* password The password to use for SMTP auth. No default.
* localhost The local hostname / domain. Defaults to
localhost.
*
* If a parameter is present in the $params array, it replaces the
* default.
---------------------
Hm, this means that the setting is a bit of a misnomer. Bummer.
Ok, why not do it like:
$mail_param = array('host' => QUARANTINE_MAIL_HOST, 'localhost' =>
QUARANTINE_MAIL_HELO);
And of course in conf.php:
// Quarantine settings
define(QUARANTINE_MAIL_HOST, "mail.ap1.se");
define(QUARANTINE_MAIL_HELO, "apmx.ap1.se");
define(QUARANTINE_FROM_ADDR, 'postmaster at mail.ap1.se');
(Those are actual working tested settings on a system similarily setup
as Isis).
-- Glenn
>
> Cheers,
> Steve.
>
> On Thu, 2005-03-10 at 16:55 +0100, Steen, Glenn wrote:
> > > -----Original Message-----
> > > From: MailScanner mailing list
> > > [mailto:MAILSCANNER at JISCMAIL.AC.UK] On Behalf Of Isi Lawson
> > > Sent: den 10 mars 2005 16:30
> > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > Subject: Re: Problem releasing a message
> > >
> > >
> > > Glenn,
> > >
> > > I applied the patch to detail.php:
> > >
> > > // Fix by Glenn Steen, to set an arbitrary smtp host
> > > $mail_param = array("localhost" => QUARANTINE_MAIL_HOST);
> > > $body = $mime->get();
> > > $hdrs = $mime->headers($hdrs);
> > > $mail =& Mail::factory("smtp",$mail_param);
> > >
> > > and made the conf.php changes:
> > >
> > > // Quarantine settings
> > > define(QUARANTINE_MAIL_HOST, "smtp server FQDM");
> > >
> > > - i tried a number of things here
> > > - localhost, short name, full name
> > Hm, methinks you might have forgotten to reload or restart
> > httpd efter making the changes.
> > Set it to the FQDN and restart apache.
> >
> > -- Glenn
> > >
> > > and i am still getting this error:
> > >
> > > Mar 10 10:26:17 abaddon postfix/smtpd[20462]: connect from
> > > localhost.localdomain[127.0.0.1]
> > > Mar 10 10:26:17 abaddon postfix/smtpd[20462]: NOQUEUE:
> > > reject: RCPT from
> > > localhost.localdomain[127.0.0.1]: 504 <localhost>: Helo
> > > command rejected:
> > > need fully-qualified hostname; from=<postmaster at localhost>
> > > to=<demo at mydomain.net> proto=ESMTP helo=<localhost>
> > > Mar 10 10:26:17 abaddon postfix/smtpd[20462]: lost connection
> > > after RCPT
> > > from localhost.localdomain[127.0.0.1]
> > > Mar 10 10:26:17 abaddon postfix/smtpd[20462]: disconnect from
> > > localhost.localdomain[127.0.0.1]
> > >
> > > Any thoughs?
> > >
> > > Isi
> > >
> > > >> In this case you are rejecting "non-FQDN HELOs/EHLOs",
> > > which is IMO a
> > > >> good thing. You do this at MTA(postfix) level. Fine.
> > > >>
> > > >> Making the changes to MailWatch so that you can specify
> > > >> define(QUARANTINE_MAIL_HOST, 'abaddon.');
> > > >> in conf.php will cure your problem (think it's in cvs
> and will be
> > > >> in the (hopefully) imminent 0.6 release... Or look for
> messages by
> > > >> me around Feb 07 on the MW list... Really minor change, so
> > > you might
> > > >> as well do it "by hand").
> > > >>
> > >
> > > ------------------------ MailScanner list ------------------------
> > > To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
> > > 'leave mailscanner' in the body of the email.
> > > Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
> > > the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
> > >
> > > Support MailScanner development - buy the book off the website!
> > >
> >
>
> ------------------------ MailScanner list ------------------------
> To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
> 'leave mailscanner' in the body of the email.
> Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
> the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>
> Support MailScanner development - buy the book off the website!
>
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list