I'll have this patched and on the site later this week.
Erik
On 11/8/06, Jean-Paul van de Plasse <[EMAIL PROTECTED]> wrote:
Sure, I kinda expected someone who can change the rpm's would pick it up as
it really is a small thing.
Anyways, the only file you need to patch is qmail-smtpd.c
I attached a new patch, since the previous one failed on a silly newline.
Making this work requires the following steps:
Save the patch in say /tmp
rpm -Uvh qmail-toaster*.src.rpm
cd /usr/src/redhat/SPECS (assuming you are using CentOS 4)
edit qmail-toaster.spec
find 'sleep 5' (should be line 606)
change 5 to 300 (5 seconds to 300 seconds)
rpmbuild -bb --with cnt40 qmail-toaster.spec
When the build process pauses, make your changes. You have 5 minutes.
cd /usr/src/redhat/BUILD/qmail- 1.03/
patch /tmp/qmail-require_auth.patch
Wait for the 300 seconds to expire and
watch it build.
cd ../RPMS/i386/
qmailctl stop
rpm -Uvh --replacefiles --replacepkgs qmail-*.rpm
qmailctl start
Now to enable this on a specific port you have to
cd /var/qmail/supervise
cp -rfa smtp smtp-submission
cd smtp-submission
edit run and add at least the line
export REQUIRE_AUTH=1
And change remove the rblcheck and change the port so the exec line becomes
like this :
exec /usr/bin/softlimit -m 12000000 \
/usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 587 \
$SMTPD $VCHKPW /bin/true 2>&1
Now cd log
and edit run so this smtpd goes to its own log dir ie:
exec /usr/bin/setuidgid qmaill /usr/bin/multilog t s$LOGSIZE n$LOGCOUNT
/var/log/qmail/smtp-submission 2>&1
qmailctl stop
qmailctl start
That should be it, if I missed something or am explaining it differently
then it should be please feel free to addon or adjust.
Regards,
Jean-Paul
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, November 08, 2006 11:07 PM
Subject: Re: [qmailtoaster] RBL blocks my roaming users
> Great news!
>
> Could you contribute a lil' howto in the wiki or to the list. (saying
> something like "patched against, this this and this file and not this"
> :-P)
>
> This would be great!
>
> ;-)
>
>> I made a small patch to have the REQUIRE_AUTH functionality.
>> If wanted I can add the REQUIRE_TLS part also..
>>
>> (I used parts of http://qmail.jms1.net/patches/combined-6c5.shtml btw )
>>
>> To enable it just add
>> export REQUIRE_AUTH=1
>> to the run script for your submission smtpd
>>
>> Jean-Paul
>>
>> ----- Original Message -----
>> From: "Eric "Shubes"" <[EMAIL PROTECTED]>
>> To: <[email protected]>
>> Sent: Wednesday, November 08, 2006 9:38 PM
>> Subject: Re: [qmailtoaster] RBL blocks my roaming users
>>
>>
>>> [EMAIL PROTECTED] wrote:
>>>> Not at all, but you must know that with the qmail-smtpd distributed
>>>> with
>>>> the toaster is not possible to accept _ONLY_ authenticated (and TLS as
>>>> an
>>>> option)
>>>
>>> When RELAYCLIENT is not set everyone must authenticate, no? Otherwise I
>>> think it'd be an open relay.
>>>
>>>> If you configure a smtpd server on 587 with current qmail-smtd and
>>>> disabling RBL you let spammers pass over your RBL checks!
>>>
>>> RBL checks yes, but not authentication, providing you don't set the
>>> RELAYCLIENT variable.
>>>
>>>> Someone has a working conf of submission for ONLY relay users ???
>>>
>>> Not me. I'm purely hypothetical! :) (not really)
>>>
>>>> I was working on patching an alternative qmail-smtpd but with not too
>>>> much
>>>> luck and no too much time now :-(
>>>
>>> I've not much time either, but qmailtoaster-plus is nearly ready for
>>> release. ;)
>>>
>>> --
>>> -Eric 'shubes'
>>>
>>> ---------------------------------------------------------------------
>>> QmailToaster hosted by: VR Hosted <http://www.vr.org>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>> ---------------------------------------------------------------------
>> QmailToaster hosted by: VR Hosted <http://www.vr.org>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> QmailToaster hosted by: VR Hosted <http://www.vr.org>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]