Hi,
Originally I had a working version of Postfix, But due to clients' clicking and downloading things they shouldn't our mailserver was getting blacklisted to often.
I proceeded to implement the Amavis-New instructions as per this this site:
https://help.ubuntu.com/community/PostfixAmavisNew
eventually I was able to set up the server today, but receive the following errors at bootup:

Jul 19 17:23:45 mail spamass-milter[3544]: spamass-milter 0.3.1 starting
Jul 19 17:23:45 mail postfix/smtp[3550]: fatal: unexpected command-line 
argument: 127.0.0.1:10025

When checking the mail queue I see incoming mail has the following error:

744D236FA213 <https://mail.airnet.ca:10000/postfix/view_mailq.cgi?id=744D236FA213> 2009/07/19 17:25 moni...@airnet.ca s...@airnet.ca 475 bytes mail transport unavailable

requeuing it will get the email delivered

Here follows my main.cf and master.cf

MAIN.CF

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = mxxx.xxxxxx.xx
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = xxxxx.xx, xxxx.xxxxxx.xx, localhost.xxxxxx.xx, localhost
mynetworks = mysql:/etc/postfix/mysql/mynetworks.cf
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +

local_recipient_maps = $alias_maps $virtual_mailbox_maps 
proxy:unix:passwd.byname
#mynetworks = mysql:/etc/postfix/mysql/mynetworks.cf
#mynetworks = /etc/postfix/mynetworks
alias_maps = hash:/etc/aliases
home_mailbox = Maildir/
mail_spool_directory = /var/spool/mail
#mailbox_command = procmail -a "$EXTENSION"
#mailbox_command = /usr/bin/maildrop
mailbox_command = /usr/bin/maildrop

smtpd_helo_required = yes
disable_vrfy_command = yes
smtpd_etrn_restrictions = reject
smtpd_data_restrictions = reject_unauth_pipelining, permit
show_user_unknown_table_name = no

#local_header_rewrite_clients = permit_mynetworks,
#       permit_sasl_authenticated, permit_tls_clientcerts,
#       check_address_map hash:/etc/postfix/pop-before-smtp

# Virtual Hosts config

# Allow Proxy config for maps:
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps
 $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains
 $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps
 $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
 $virtual_mailbox_limit_maps $virtual_uid_maps $virtual_gid_maps


# Custom Virtual Domain configuration:
message_size_limit = 20971520
transport_maps = proxy:mysql:/etc/postfix/mysql/vdomain.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/vmailbox.cf
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/alias.cf 
hash:/etc/mailman/aliases
virtual_uid_maps = proxy:mysql:/etc/postfix/mysql/vuid.cf
virtual_gid_maps = proxy:mysql:/etc/postfix/mysql/vgid.cf
virtual_mailbox_base = /
virtual_mailbox_limit = 209715200
virtual_mailbox_extended = yes
virtual_create_maildirsize = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql/vmlimit.cf
virtual_mailbox_limit_override = yes
virtual_mailbox_limit_inbox = no
virtual_overquote_bounce = yes
virtual_minimum_uid = 1

# Mail Queue optimizations:
maximal_queue_lifetime = 1d
bounce_queue_lifetime = 4h
delay_warning_time = 1h
biff = no
append_dot_mydomain = no
qmgr_message_active_limit = 500

# SASL Stuff:
smtpd_sasl_auth_enable = yes
#smtpd_sasl_local_domain = $myhostname
smtpd_sasl_local_domain = $mydomain
broken_sasl_auth_clients = yes
#  permit_mynetworks,
smtpd_helo_restrictions = permit_sasl_authenticated  check_helo_access 
hash:/etc/postfix/helo_access reject_non_fqdn_hostname 
reject_unknown_reverse_client_hostname permit
#  warn_if_permit permit_mynetworks
#  deleted this - reject_unknown_hostname
smtpd_sender_restrictions = permit_sasl_authenticated  permit_mynetworks  
reject_non_fqdn_sender   permit
#  reject_unverified_sender
#  reject_rhsbl_sender relays.ordb.org
#  reject_rhsbl_sender opm.blitzed.org
#  reject_rhsbl_sender dun.dnsrbl.net
#  reject_unknown_client_hostname
#  reject_rbl_client opm.blitzed.org
#  check_policy_service unix:private/policy
#  check_recipient_access hash:/etc/postfix/access.cf
#  check_recipient_access mysql:/etc/postfix/mysql/vdomain-access.cf 
hash:/etc/postfix/access.cf
#smtpd_client_connection_rate_limit = 1
#smtpd_client_recipient_rate_limit = 1
smtpd_client_restrictions = check_client_access hash:/etc/postfix/client_access 
permit_sasl_authenticated permit_mynetworks reject_unknown_client 
warn_if_reject reject_unknown_client_hostname 
reject_unknown_reverse_client_hostname reject_rbl_client cbl.abuseat.org 
reject_rhsbl_client cbl.abuseat.org permit
#  check_policy_service unix:/etc/postfix/policy.cf
# Expensive tests:
smtpd_recipient_restrictions = permit_sasl_authenticated check_sender_access 
hash:/etc/postfix/sender_access reject_unauth_destination
# permit_mynetworks
#  reject_unauth_pipelining
#  reject_non_fqdn_recipient
#  reject_unknown_recipient_domain
#  reject_unauth_destination

#  check_policy_service inet:127.0.0.1:2501

mydestination = $myhostname, www.$mydomain, ns1.$mydomain,      localhost, 
$mydomain, mail.$mydomain, ftp.$mydomain,    $transport_maps
fallback_relay = content_filter = smtp-amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings

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").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp    inet    n       -       n       -       -       smtpd
#submission inet n       -       n       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
-o content_filter=
-o receive_override_options=no_header_body_checks
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
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
        -o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     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/bin/maildrop -d ${recipient}
#
# 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=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
 flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} 
${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
 flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
 ${nexthop} ${user}

spfpolicy       unix    -       n       n       -       -       spawn
        user=nobody argv=/usr/bin/perl /usr/sbin/postfix-policyd-spf-perl
# ==========================================================================
# service   type  priv  unpriv  chroot  wakeup  maxproc command + args
#                 (yes)   (yes)   (yes) (never) (100)
# ==========================================================================
smtp-amavis unix - - y - 2 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 - y - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-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 mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-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_checks


Any help would be appreciated, thank you

--
You have a Good Day now,


Carl A Jeptha
http://www.airnet.ca
Office Phone: 905 349-2084
Office Hours: 9:00am - 5:00pm
skype cajeptha

Reply via email to