Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Mar 2005 10:43:05 -0500
From:      Bart Silverstrim <bsilver@chrononomicon.com>
To:        freebsd-questions Questions <freebsd-questions@freebsd.org>
Subject:   postfix on FreeBSD
Message-ID:  <a3a41bf2be38045b61441aaed6309228@chrononomicon.com>

next in thread | raw e-mail | index | archive | help
I'm trying to set up postfix to reject messages to two specific 
usernames on our domains.  The FreeBSD server is taking the messages, 
checking them for spam and viruses, then forwarding them on to our 
internal mail server.

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

I then added to the file /usr/local/etc/postfix/access:
username1@ REJECT
username2@ REJECT

I then ran the commands
postmap /usr/local/etc/postfix/access
postfix stop && postfix start

Then using tail -f /var/log/maillog, I got the error:
Mar  9 10:28:16 myserver postfix/postfix-script: stopping the Postfix 
mail system
Mar  9 10:28:16 myserver postfix/master[66263]: terminating on signal 15
Mar  9 10:28:17 myserver postfix/postfix-script: starting the Postfix 
mail system
Mar  9 10:28:17 myserver postfix/master[73766]: daemon started -- 
version 2.1.5
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
Mar  9 10:28:49 myserver postfix/master[73766]: warning: process 
/usr/local/libexec/postfix/smtpd pid 73796 exit status 1
Mar  9 10:28:49 myserver postfix/master[73766]: warning: 
/usr/local/libexec/postfix/smtpd: bad command startup -- throttling

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?



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