Re: Broke my mail server

From: Joshua J. Kugler <joshua@eeinternet.com>
Date: Tue Jul 04 2006 - 17:20:17 AKDT

On Tuesday 04 July 2006 16:29, Damien Hull wrote:
> I broke my mail server about an hour ago. I tried to add Dspam to the
> mix. Now I can't send or receive mail. :'(
>
> Why is it that none of the instructions you find on the web work? I
> followed the postfix instructions that came with Dspam. No luck. These
> are the instructions that come with the software. How can instructions
> that come with the software not work?
>
> Looks like it's going to be a long day.

Saw your message on the postfix list a bit ago. I followed the insructions=
 in=20
the DSPAM docs, and it worked fine. Here are some config file excerpts:

In my master.cf:
smtp inet n - - - - smtpd
                -o receive_override_options=3D
                -o smtpd_client_restrictions=3D$eei_smtpd_client_restrictio=
ns

=46rom here, you could use the "content_filter" parameter that is in the do=
cs,=20
and that's what I did at first, and it worked. But, I didn't want dspam to=
=20
filter outgoing mail too, so we have:

In main.cf:
eei_smtpd_client_restrictions =3D reject_rbl_client bl.spamcop.net
        reject_rbl_client sbl-xbl.spamhaus.org
        reject_rbl_client relays.ordb.org
        cidr:/etc/mail/client.cidr

The important part of that is the cidr: line. client.cidr contains:

# This file determines which e-mail goes through our content filter (dspam)
# and which does not

XXX.XXX.XXX.XXX/XX OK
0.0.0.0/0 FILTER lmtp:unix:/tmp/dspam.sock

That XXX...XXX is a netmask defining our the IP's of our network. If it co=
mes=20
from anywhere but our internal network, it gets sent to DSPAM.

Later on in master.cf:
# For injecting mail back into postfix from DSPAM
127.0.0.1:10025 inet n - n - 16 smtpd
        -o content_filter=3D
        -o=20
receive_override_options=3Dno_unknown_recipient_checks,no_header_body_check=
s,no_addr
ess_mappings
        -o smtpd_helo_restrictions=3D
        -o smtpd_client_restrictions=3D
        -o smtpd_sender_restrictions=3D
        -o smtpd_recipient_restrictions=3Dpermit_mynetworks,reject
        -o mynetworks_style=3Dhost
        -o smtpd_authorized_xforward_hosts=3D127.0.0.0/8

In my dspam.conf:
DeliveryHost 127.0.0.1
DeliveryPort 10025
DeliveryIdent localhost
DeliveryProto SMTP
=2E
=2E
=2E
ServerDomainSocketPath "/tmp/dspam.sock"

And that pretty much sums it up. If you have any more questions feel free =
to=20
ask, as we have a working install here.

j

=2D-=20
Joshua Kugler =20
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/ ID 0xDB26D7CE
PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax: 907-456-3111
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Tue Jul 4 17:20:58 2006

This archive was generated by hypermail 2.1.8 : Tue Jul 04 2006 - 17:20:58 AKDT