Greetings everyone,
I'm transitioning a lot of my mail servers from Qmail to Postfix and
thus far it has gone very well.  I got Postfix 2.3 (from the CentOS 5.3)
up and running in a flash and then even got it all running with MySQL
virtual users!  My hats off to the Postfix devs.

However now I want to incorporate a few things like ClamAV, and
Spamassassin and it appears that Amavisd-new is the preferred way to do
it.  I installed it out of the RPMForge repositories and Spamassassin,
ClamAV, and amavisd-new all seem to be running correctly.  If I telnet
to port 10024 on localhost I can successfully see the Amavisd-new
prompts and commands.

When I startup Postfix and attempt to send mail through it, I get this
error in the maillog:

Sep 18 17:02:03 mail postfix/postfix-script: starting the Postfix mail
system
Sep 18 17:02:03 mail postfix/master[16470]: daemon started -- version
2.3.3, configuration /etc/postfix
Sep 18 17:02:03 mail postfix/qmgr[16473]: 8114A10D803B:
from=<t...@whootis.com>, size=364, nrcpt=1 (queue active)
Sep 18 17:02:03 mail postfix/qmgr[16473]: warning: connect to transport
scan: Connection refused
Sep 18 17:02:03 mail postfix/cleanup[16474]: fatal: unsupported
dictionary type: mysql
Sep 18 17:02:04 mail postfix/master[16470]: warning: process
/usr/libexec/postfix/cleanup pid 16474 exit status 1
Sep 18 17:02:04 mail postfix/master[16470]: warning:
/usr/libexec/postfix/cleanup: bad command startup -- throttling
Sep 18 17:02:40 mail postfix/smtpd[16475]: warning: dict_nis_init: NIS
domain name not set - NIS lookups disabled
Sep 18 17:02:40 mail postfix/smtpd[16475]: fatal: unsupported dictionary
type: mysql
Sep 18 17:02:41 mail postfix/master[16470]: warning: process
/usr/libexec/postfix/smtpd pid 16475 exit status 1
Sep 18 17:02:41 mail postfix/master[16470]: warning:
/usr/libexec/postfix/smtpd: bad command startup -- throttling

The log entry at 17:02:40 is my attempt to send an SMTP message into the
system.

Below are my main.cf and master.cf.  As I am relatively new to this
system I was hoping someone could offer some insight as to what I am
doing wrong.


-Geoff


$ cat main.cf
# local settings. Remember any domain you want treated as virtual
# can not be listed in either relay_domains or mydestination.
myhostname              = mail.whootis.net
mydomain                = whootis.net
myorigin                = $myhostname
inet_interfaces         = all
mydestination           = $myhostname, localhost.$mydomain, localhost
mynetworks_style        = subnet
mynetworks              = 127.0.0.0/8
#content_filter = scan:[127.0.0.1]:10025
content_filter          = amavisd:[127.0.0.1]:10024

# attachment filtering, optional
#mime_header_checks = regexp:/etc/postfix/mime_header_checks.regexp

# Size settings, optional
message_size_limit      = 112400000
mailbox_size_limit      = 224800000

# SASL settings
broken_sasl_auth_clients        = yes
smtpd_sasl_auth_enable          = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_security_options     = noanonymous
smtpd_sasl_local_domain         =

# TLS stuff - Enable if you want to use SMTP over SSL
smtpd_use_tls = no
#smtpd_tls_key_file = /etc/postfix/newkey.pem
#smtpd_tls_cert_file = /etc/postfix/newcert.pem
#smtpd_tls_CAfile = /etc/postfix/cacert.pem
#smtpd_tls_loglevel = 3 #### change to 0 after everything works
#smtpd_tls_received_header = yes
#smtpd_tls_session_cache_timeout = 3600s
#tls_random_source = dev:/dev/urandom

# transport Stuff, optional
#transport_maps = hash:/etc/postfix/transport
#relay_domains = proxy:mysql:/etc/postfix/mysql_relay_domains_maps.cf

# virtual stuff. We're going to punt and make all virtual mail users use
the same UID:GID of Postfix.
virtual_alias_maps      = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps        = static:89
virtual_mailbox_base    = /var/spool/postfix/virtual/
virtual_mailbox_domains =
mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit   = 112400000
virtual_mailbox_maps    =
mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid     = 89
virtual_transport       = virtual
virtual_uid_maps        = static:89

smtpd_recipient_restrictions =
        #reject_non_fqdn_recipient
        #reject_non_fqdn_sender
        reject_unknown_recipient_domain
        permit_mynetworks
        permit_sasl_authenticated
        #check_policy_service inet:127.0.0.1:2501, needed for sqlgrey
and optional
        reject_unauth_destination
        permit

# additional spam fighting checks, optional
#smtpd_helo_restrictions = reject_unknown_helo_hostname
#smtpd_sender_restrictions = reject_unknown_sender_domain
#smtpd_data_restrictions = reject_unauth_pipelining

readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail
html_directory = no
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/libexec/postfix
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
queue_directory = /var/spool/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 450




-------------------------
$ cat master.cf
#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
#
========================================================================
==
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
#
========================================================================
==
smtp      inet  n       -       n       -       -       smtpd

# Amavisd transport
amavisd   unix  -       -       n        -      4       smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use=20
127.0.0.1:10025 inet n    -       n       -       -     smtpd
    -o content_filter=
    -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o smtpd_data_restrictions=reject_unauth_pipelining
    -o smtpd_end_of_data_restrictions=
    -o smtpd_restriction_classes=
    -o mynetworks=127.0.0.0/8
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o
receive_override_options=no_header_body_checks,no_unknown_recipient_chec
ks,no_milters,no_address_mappings
    -o local_header_rewrite_clients=
    -o smtpd_milters=
    -o local_recipient_maps=
    -o relay_recipient_maps=

#submission inet n       -       n       -       -       smtpd
#  -o smtpd_enforce_tls=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject

#smtps     inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject

#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX
loops
relay     unix  -       -       n       -       -       smtp
        -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m
${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m
${extension} ${user}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop
$recipient

Reply via email to