Postfix config

Jim Douglas jdz99 at hotmail.com
Mon Jul 7 18:42:38 UTC 2008



I can't send/recieve email and recently installed Kubuntu on my box.  I added spamassasin, clamav and amavis, as advised here.

https://help.ubuntu.com/community/PostfixAmavisNew


( I am also using dbmail.)

I have no problem starting those services and it seem postfix can't find the amavis transport.  I can't figure out why.

...below is log output and config settings, 

Thank for your help,
Jim


postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
disable_vrfy_command = yes
html_directory = no
inet_interfaces = all
local_recipient_maps = mysql:/etc/postfix/sql-recipients.cf
mail_owner = postfix
mailbox_transport = dbmail-lmtp:localhost:24
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost. myDomainName.com
mydomain = myDomainName.com
myhostname = mail.myDomainName.com
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
receive_override_options = no_address_mappings
relayhost = [smtp-auth.no-ip.com]:3325
sample_directory = /usr/share/doc/postfix-2.2.2/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_sender_dependent_authentication = yes
smtpd_data_restrictions = reject_unauth_pipelining,    permit
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,   permit_mynetworks,   reject_unauth_destination,    reject_invalid_hostname,    reject_non_fqdn_hostname,    r                                     eject_non_fqdn_sender,    reject_non_fqdn_recipient,    reject_unknown_sender_domain,    reject_unknown_recipient_domain,    permit_mynetworks,    reject_rbl_client list                                     .dsbl.org,    reject_rbl_client sbl.spamhaus.org,    reject_rbl_client cbl.abuseat.org,    reject_rbl_client dul.dnsbl.sorbs.net,    reject_rbl_client opm.blitzed.org,                                         reject_rbl_client dnsbl.njabl.org,    reject_rbl_client blackholes.wirehub.net,    reject_rbl_client list.dsbl.org
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550




- error log
Jul  7 13:50:42 sa-desktop postfix/qmgr[6797]: warning: connect to transport amavis: No such file or directory


- warning log
Jul  7 13:50:03 sa-desktop amavis[24815]: Found decoder for    .exe  at /usr/bin/arj
Jul  7 13:50:03 sa-desktop amavis[24815]: Using primary internal av scanner code for ClamAV-clamd
Jul  7 13:50:03 sa-desktop amavis[24815]: Using primary internal av scanner code for check-jpeg
Jul  7 13:50:03 sa-desktop amavis[24815]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Jul  7 13:50:03 sa-desktop amavis[24815]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.32, libdb 4.6
Jul  7 13:50:42 sa-desktop postfix/smtpd[24868]: connect from cpe-22-235-145-16.phi.res.rr.com[22-235-145-16]
Jul  7 13:50:42 sa-desktop postfix/smtpd[24868]: C6D6C202408: client=cpe-22-235-145-16.phi.res.rr.com[22-235-145-16]
Jul  7 13:50:42 sa-desktop postfix/cleanup[24871]: C6D6C202408: message-id=<1215453042.17753.2.camel at sa-desktop>
Jul  7 13:50:42 sa-desktop postfix/qmgr[6797]: C6D6C202408: from=<phi at mydomain.com>, size=496, nrcpt=1 (queue active)
Jul  7 13:50:42 sa-desktop postfix/qmgr[6797]: warning: connect to transport amavis: No such file or directory
Jul  7 13:50:42 sa-desktop postfix/smtpd[24868]: disconnect from cpe-22-235-145-16.phi.res.rr.com[22-235-145-16]
Jul  7 13:50:42 sa-desktop postfix/error[24872]: C6D6C202408: to=<jd at yahoo.com>, relay=none, delay=0.11, delays=0.06/0.03/0/0.02, dsn=4.3.0, status=deferred (mail transport unavailable)




this is the entry in main.cf,

content_filter = smtp-amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings



This is my master.cf

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

#submission inet n      -       n       -       -       smtpd
#    -o smtpd_etrn_restrictions=reject
#    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps    inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission   inet    n       -       n       -       -       smtpd
#  -o smtpd_etrn_restrictions=reject
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#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
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

# Added for dbmail support
##dbmail-lmtp     unix    -       -       n       -       -       lmtp
#If you want verbose output in the mail log, add -v to lmtp, like this:
dbmail-lmtp     unix    -       -       n       -       -       lmtp 
#-v


# Added 7/17/08 for amavis support
#[...]
smtp-amavis     unix    -       -       -       -       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       -       -       -       -       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 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

# END Added for amavis support



#
# ====================================================================
# 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}

# added for dbmail support 3/5/06
##dbmail-smtp    unix  -       n       n       -       -       pipe
##    flags=  user=<dbmail:<dbmail> 
##    argv=/usr/local/sbin/dbmail-smtp -d ${recipient} -r ${sender}

#
# 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
retry     unix  -       -       n       -       -       error

mailman      unix    -    n    n    -    -    pipe
  flags=FR user=list argv=/etc/mailman/postfix-to-mailman.py ${nexthop} ${mailbox} 







_________________________________________________________________
It’s a talkathon – but it’s not just talk.
http://www.imtalkathon.com/?source=EML_WLH_Talkathon_JustTalk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20080707/9d5b22a4/attachment.html>


More information about the ubuntu-server mailing list