Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Mar 2005 11:26:52 -0500 (EST)
From:      "Jim Trigg" <jtrigg@spamcop.net>
To:        "Bart Silverstrim" <bsilver@chrononomicon.com>
Cc:        freebsd-questions Questions <freebsd-questions@freebsd.org>
Subject:   Re: postfix on FreeBSD
Message-ID:  <55289.128.222.32.10.1110385612.squirrel@mail.scadian.net>
In-Reply-To: <a3a41bf2be38045b61441aaed6309228@chrononomicon.com>
References:  <a3a41bf2be38045b61441aaed6309228@chrononomicon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, March 9, 2005 10:43 am, Bart Silverstrim said:
> In the /usr/local/etc/postfix/main.cf file, I added the line:
> smtpd_recipient_restrictions = check_recipient_access
> hash:/usr/local/etc/postfix/access
>
> Then using tail -f /var/log/maillog, I got the error:
> Mar  9 10:28:48 myserver postfix/smtpd[73796]: fatal: parameter
> "smtpd_recipient_restrictions": specify at least one working instance
> of: check_relay_domains, reject_unauth_destination, reject, defer or
> defer_if_permit
>
> I put in a hash mark for the smtpd_ line in main.cf and ran another
> postfix stop and start to get mail working again, but what am I doing
> wrong with the file?

Read the error message - currently you are configured to accept *any*
message presented except those going to the specified users.  That
includes spam intended for completely unrelated domains.  I would
recommend using the following as a *bare* minimum:

smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination, check_recipient_access
hash:/usr/local/etc/postfix/access

I would also recommend looking at
http://www.postfix.org/SMTPD_ACCESS_README.html and
http://jimsun.linxnet.com/misc/postfix-anti-UCE.txt -- they will help you
understand what should be in your smtpd_*_restrictions.

Jim
-- 
Jim Trigg, Lord High Everything Else  O-   /"\
Hostmaster, Huie Kin family website        \ /  ASCII RIBBON CAMPAIGN
Verger and System Administrator,            X    HELP CURE HTML MAIL
All Saints Church - Sharon Chapel          / \




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55289.128.222.32.10.1110385612.squirrel>